hi there
if anyone reading this has experience with c/c++ coding windows .dll's and could help me out with this:
https://www.mql5.com/en/code/11139
https://www.mql5.com/en/forum/28922#comment_9670539
its a couple years old and probably did work but it aint working now , if some kind dev can make it work it would be awesome .
----------------------
This is script calling library for MT4 build 600 and later.
This library is for callingl scripts from your indicator and expert advisors.
On earlier build of MT4, this can be achieved with this method.
Around build 509, message parameter may have been changed.
wParam is 0x11, and lParam is the ordinal of Navigator tree view, starts from 0 (the top script is 0).
This library includes DLL and a MQL class library.
Source:
Source is hosted on GitHub (CodeBase version might be outdated. Check here for new release).
If you are in trouble:
I'm welcome bug reports on GitHub Issue.
How to use:
if anyone reading this has experience with c/c++ coding windows .dll's and could help me out with this:
https://www.mql5.com/en/code/11139
https://www.mql5.com/en/forum/28922#comment_9670539
its a couple years old and probably did work but it aint working now , if some kind dev can make it work it would be awesome .
----------------------
This is script calling library for MT4 build 600 and later.
This library is for callingl scripts from your indicator and expert advisors.
On earlier build of MT4, this can be achieved with this method.
Around build 509, message parameter may have been changed.
wParam is 0x11, and lParam is the ordinal of Navigator tree view, starts from 0 (the top script is 0).
This library includes DLL and a MQL class library.
Source:
Source is hosted on GitHub (CodeBase version might be outdated. Check here for new release).
If you are in trouble:
I'm welcome bug reports on GitHub Issue.
How to use:
- Add the following include line to your indicator or expert advisor
#include <ScriptCaller.class.mqh> - Add the following code to initialize/deinitialize class instance.
ScriptCaller* g_scriptCaller = NULL; int OnInit() { g_scriptCaller = new ScriptCaller(); return INIT_SUCCEEDED; } void OnDeinit(const int reason) { if (g_scriptCaller) { delete g_scriptCaller; } } - Finally, put the following code to call script!
g_scriptCaller.callScript("ScriptName"); // Do not end with .mq4 - If the script shows input dialog, and you want to close it automatically, call as follows.
g_scriptCaller.callScript("ScriptName", true);