1. Open a web page.

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

new topic     » topic index » view message » categorize

2. Re: Open a web page.

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)

new topic     » goto parent     » topic index » view message » categorize

3. Re: Open a web page.

ssallen said...

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

new topic     » goto parent     » topic index » view message » categorize

4. Re: Open a web page.

Holy heck! That was fast and effective! Thanks gentlemen!

ssallen

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu