SOLVED Help with url_open()

Hello and sorry for my dumb question....

The thing is that i have a button, and when its clicked, opens a Facebook Page Link, and when I click the link, the browser adress looks like:
HTML:
%22http//www.facebook.com/Example
Here´s the button code:
GML:
if (mouse_check_button_pressed(mb_left))
{
    url_open("https://www.facebook.com/Example")
}
i did some research ant the %22 its the URL encoding for ", but if i dont put the ¨ before and after the link, GMS doesnt recognizes it as a string.

Please help me, I know its a very easy thing but it should work, and it doesnt!!!! :(
 
Have you tried to simply adding a mouse event instead of doing it in the step event?
e.g. in Mouse Left Released event add the url script;
url_open("https://www.facebook.com/");
See if it works.
 
Have you tried to simply adding a mouse event instead of doing it in the step event?
e.g. in Mouse Left Released event add the url script;
url_open("https://www.facebook.com/");
See if it works.
Already tried it with no success, even i tried with url_open_ext(); and nothing:
(Mouse left released event):
GML:
url_open_ext("https://google.com", "_blank" );
 

chamaeleon

Member
Unfortunately, copying and pasting your code worked fine (changed the url to the google homepage, but no other change).
 
Can't see anything wrong with the script, Think the only possibility is your firewall or antivirus or the browser's setting preventing it from executing. So try checking on those, or maybe try changing your default browser if you've more than 1.
 
Can't see anything wrong with the script, Think the only possibility is your firewall or antivirus or the browser's setting preventing it from executing. So try checking on those, or maybe try changing your default browser if you've more than 1.
Thank you for your help!
I checked Proxy & Firewall settings and nothing supicious, but, i changed my default browser to Firefox, then to Chrome and then to Opera and everything went well, it went to the intended link in the three browsers without any problem :)

Ill close the thread now, thank you again :)
(faulty browser: Microsoft Edge Chromium Beta)
 

COWCAT

Member
Yes, thanks for this - I really didn't want to update GMS version when I'm about to make my game public ^^' (and it seems even the latest GMS 2.3 version doesn't fix it)
 

Japster

Member
All Chromium-based browsers will be affected eventually - the way command-line arguments are handled on Windows has changed.

As noted in the Reddit thread, my extension exists for workaround
https://yellowafterlife.itch.io/gamemaker-execute-shell-simple
@YellowAfterlife - just wanted to say THANKS man!! - As usual, you've saved my life! - I hit that stupid %22 URL bug, then found and bought your awesome extension - 2 mins, in and working!

Thanks again for making life less stressful for us all mate... :D
 

rIKmAN

Member
is this extension still needed as of today? (for url_open to work on chrome browsers)
url_open("https://www.google.com") works fine here using the latest beta version which is IDE v23.1.1.447 / Runtime v23.1.1.423 (tested using Windows VM).

If you are using a different version you can quickly test it yourself using that single line of code and see if it works in the version you are using or not.
 
Last edited:

Flaick

Member
Hi, I'm using this great extension since a year, really helpful!
I discovered it doesn't work with x64 runtime option enable. Do I miss something? Do I need the 64bit version?
 
Top