OpenURL() function under Windows

Discuss any general programming issues here
Post Reply
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

OpenURL() function under Windows

Post by djrikki »

Hello,

OpenURL() does nothing on my Windows XP or Windows 7 machine. Does Windows require third-party components of some sort?
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: OpenURL() function under Windows

Post by djrikki »

Surprised to see it run under Windows 8 (!).. same behaviour.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
fingus
Posts: 273
Joined: Fri Sep 16, 2011 9:53 am

Re: OpenURL() function under Windows

Post by fingus »

Here it is working with Windows XP SP3. It opens the domain in the defined "standard browser". Maybe in your case no browser is set as "default browser" so windows do not know what to do or where to open it.
User avatar
Allanon
Posts: 744
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

Re: OpenURL() function under Windows

Post by Allanon »

Here on Windows7 and Vista no problems at all, OpenURL() runs fine
----------------------------
[Allanon] Fabio Falcucci | GitHub (leaving) | Gitea (my new house) | My Patreon page | All my links
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: OpenURL() function under Windows

Post by djrikki »

Okay, I'll have to take a look.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
lazi
Posts: 650
Joined: Thu Feb 24, 2011 11:08 pm

Re: OpenURL() function under Windows

Post by lazi »

I have problems on xp pro sp2 too with urlopen.
I made this workaround and it works even on win7.
("localhost" is th url)

Code: Select all

        x=GetVersion()
        If x.platform="Win32"
           Run (ReplaceStr(ReadRegistryKey(#HKEY_CLASSES_ROOT,"http/shell/open/command/"),"%1","localhost"))
        Else
           OpenURL("localhost")
        EndIf                        
User avatar
airsoftsoftwair
Posts: 5933
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: OpenURL() function under Windows

Post by airsoftsoftwair »

OpenURL() is not really designed to handle URLs like "localhost". It expects http:// style URLs... if it really doesn't work with a http:// style URL, let me know :)
User avatar
lazi
Posts: 650
Joined: Thu Feb 24, 2011 11:08 pm

Re: OpenURL() function under Windows

Post by lazi »

It seems that it isn't so trusty. Sometimes just don't work, but after a reboot it works again.
Can't see how I could be more helpful :)

(Of course changed to http:// style)
User avatar
airsoftsoftwair
Posts: 5933
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: OpenURL() function under Windows

Post by airsoftsoftwair »

Hmm, strange. Is it clearly reproducable on your system? Then we could do some tests.
User avatar
lazi
Posts: 650
Joined: Thu Feb 24, 2011 11:08 pm

Re: OpenURL() function under Windows

Post by lazi »

Unfortunately no. I don't use regularly windows, so can't help currently.
Post Reply