open a url i n browser

Back to topics list To post a new topic, please log in or register
avatar
15
el3reef 2015.06.15 15:19
 

i'm trying to open a url in a web browser by a EA

i tried to search an a found this topic

 https://forum.mql4.com/14282

i think it is close from that i want but the code is not work because it is not tested and it made to open file not a url 

 

I hope to find help here

 

thanks  

avatar
13009
WHRoeder 2015.06.15 18:46 #
 

Since build 600 Feb 2014, all strings are Unicode. ShellExecuteA must be changed to ShellExecuteW. See also https://forum.mql4.com/67340

Write a text file with .URL extension and then shell that. The URL extension will open the default browser.

[InternetShortcut]
URL=https://forum.mql4.com/14282

avatar
15
el3reef 2015.06.15 23:46 #
 
it worked but i must make true on "allow dll imports"
i want to open url after clicking on script Immediately :(
avatar
Moderator
3206
angevoyageur 2015.06.15 23:58 #
 
el3reef:
it worked but i must make true on "allow dll imports"
i want to open url after clicking on script Immediately :(
You just have to change the default setting in menu Tools->Options, Experts Advisors tab. Do it at your own risks.
Back to topics list  

To add comments, please log in or register