1) This is not working anymore (ASCII to ANSI):
int RegisterWindowMessageA(string MessageName); int PostMessageA(int hwnd, int msg, int wparam, string Name);
use (in general) the ...W(..)-functions instead:
int RegisterWindowMessageW(string MessageName); int PostMessageW(int hwnd, int msg, int wparam, string Name);
But check whether they exist!
2) Do you have the handle of the window of the function?
void StartScript(int hWnd,....
Hello Guys, i found the function StartScript to excute scrips over ea events
this is the function :
As stated by gooly your hWnd is not good. 0 is not a valid hWnd.
Why do you need to run a script from an EA ?
Why do you need to run a script from an EA ?
Button click event on chart, but that is not my problem :)
Button click event on chart, but that is not my problem :)
Hello c0ntr0x,
what did you do to tackle these import problems? I want to create a kind of script I would put in the Marketplace of Metatrader... Then the script would be available from an EA or an indicator.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello Guys, i found the function StartScript to excute scrips over ea events
this is the function :