How can I quickly find the source code definition of the above LA function? I want to implement it using generic C# code and then use it in QM.
I tried the following QM code, but in actual use, the background program is a console application, and I need to continuously monitor the output text of the console program.
Macro Macro37
I tried the following QM code, but in actual use, the background program is a console application, and I need to continuously monitor the output text of the console program.
Macro Macro37
run "notepad.exe"
mac "sub.paint"
#sub paint
run "mspaint.exe" "" "" "" 2
rep
,0.5
,if sub.getProcN("notepad.exe")=0
,,ShutDownProcess "mspaint"
,,break
#sub getProcN
function str'proName
ARRAY(str) a; EnumProcessesEx 0 a 1
int n=0; str p=proName
for _i 0 a.len
,if a[_i].end(p)
,,n+1
ret n