Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
callback function receive output text lines in real time
#6
Quote:QM does not have such function.

I seem to have found a built-in function called `RunConsoleCallback` that might solve my problem

https://www.quickmacros.com/forum/showth...0#pid27790

I tried the following code, and it seems to produce the desired result. Are there any areas in the code that need optimization? Thank you!
discovered one issue: After the main process ends, the ssh.exe process does not close.

Macro Macro38
Code:
Copy      Help
out

mac "sub.sshExc"

wait 10

#sub sshExc
ShutDownProcess "ssh"

int ec=RunConsoleCallback(&sub.OnConsoleOutput 0 "ssh -R 80:localhost:4455 serveo.net" "" 0x4801) 
out ec

#sub OnConsoleOutput
function# cbParam $s
out F"<{s}>"


Messages In This Thread
RE: callback function receive output text lines in real time - by Davider - 09-28-2024, 02:15 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)