1. Open a web page.
- Posted by ssallen Jan 18, 2012
- 1102 views
Hello, I poked around the archives and couldn't find anything recent on this. I was wondering if there is an easy way of opening a website window in Eu? Basically all I want to do is have a user click a button in windows and it will launch their browser and take it to my website. That is all it needs to do. Any easy way to do this? Preferably something using win32lib and Eu 3.2? My project is several years running and way to big to port to 4.0+ at the moment.
Thanks! ssallen
2. Re: Open a web page.
- Posted by m_sabal Jan 18, 2012
- 1077 views
I haven't tested it with URLs, but in the click handler, I think this is all you need. It uses the standard file associations in Windows, and works for opening text files in Notepad for me.
shellExecute("open",url,SW_SHOWNORMAL)
3. Re: Open a web page.
- Posted by mattlewis (admin) Jan 18, 2012
- 1071 views
Hello, I poked around the archives and couldn't find anything recent on this. I was wondering if there is an easy way of opening a website window in Eu? Basically all I want to do is have a user click a button in windows and it will launch their browser and take it to my website. That is all it needs to do. Any easy way to do this? Preferably something using win32lib and Eu 3.2? My project is several years running and way to big to port to 4.0+ at the moment.
On windows, the command "start [url]" opens a url in the default browser, so something like:
system( "start http://openeuphoria.org", -2 )
...should work for your purposes.
Matt
4. Re: Open a web page.
- Posted by ssallen Jan 18, 2012
- 1076 views
Holy heck! That was fast and effective! Thanks gentlemen!
ssallen