Download MetaTrader 5
To add comments, please log in or register
Copy the deals of successful traders. Subscribe to signals!
el3reef
178
el3reef 2015.06.15 13: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  

whroeder1
13627
whroeder1 2015.06.15 16:46  

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

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

el3reef
178
el3reef 2015.06.15 21:46  
it worked but i must make true on "allow dll imports"
i want to open url after clicking on script Immediately :(
Alain Verleyen
Moderator
28627
Alain Verleyen 2015.06.15 21: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.
/
To add comments, please log in or register