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

 

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 

Hold the program execution till ShellExecute is completed
Hold the program execution till ShellExecute is completed
  • 2018.10.24
  • www.mql5.com
I have the following code: The code is working fine. But after ShellExecuteW() command, I am getting a file which I have to load in OnInit...
Reason: