Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Waiting for the hidden program to exit
#1
Hello everyone, I want to wait for the hidden running program to quit unexpectedly, then pop-up prompt message "mspaint Has exited", Because the window is hidden, I can only rely on the program name, but I don't know how to set the wait dialog. the following code can not run successfully

I hope someone can help me think some methods, thanks in advance


Macro Macro4
Code:
Copy      Help
run "$system$\mspaint.exe" "" "" "" 16
mes "mspaint is Hidden running"
rep
,int w=wait(0 WP win("" "" "mspaint"))
,if w=0
,,mes "mspaint Has exited"
,,ret

I used the following code to run successfully, but I still want to know the above code, how to modify it can also run successfully. Exclamation

I think the problem is here (int w=wait(0 WP win("" "" "mspaint"))), but I don't know how to modify it.



Macro Macro4
Code:
Copy      Help
__Handle h=run("$system$\mspaint.exe" "" "" "" 16)
mes "mspaint is Hidden running"
wait 0 H h
mes "mspaint Has exited"


Attached Files Image(s)
   


Messages In This Thread
Waiting for the hidden program to exit - by win - 08-19-2018, 04:38 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)