Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
callback function receive output text lines in real time
#2
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
Code:
Copy      Help
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


Messages In This Thread
RE: callback function receive output text lines in real time - by Davider - 09-27-2024, 05:48 AM

Forum Jump:


Users browsing this thread: 7 Guest(s)