How call a system application in onTick and wait until it finishes sth like. ShellExecuteW or ShellExecuteA?

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I need an to call a python script in my expert adviser when OnTick occurs which I did via ShellExecuteW.
However, I need to EA to wait until ShellExecuteW finishes its job.
Is that doable ?
I have read this too... https://www.mql5.com/en/forum/285244
Apparently the right way is :
if (CreateProcessW()) WaitForSingleObject();
But I don't know what dlls to import and what functions to define.
Thanks for any clue/comments