Last active
October 19, 2021 13:27
-
-
Save sergeylukin/691f5986bf41cb00d1ef to your computer and use it in GitHub Desktop.
Opening a Webpage in the default browser from within MetaTrader
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "shell32.dll" | |
int ShellExecuteW(int hwnd, string Operation, string File, string Parameters, string Directory, int ShowCmd); | |
#import | |
void OnStart() | |
{ | |
Shell32::ShellExecuteW(0, "open", "http://example.com", "", "", 3); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment