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
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.
I think the problem is here (int w=wait(0 WP win("" "" "mspaint"))), but I don't know how to modify it.
Macro Macro4
I hope someone can help me think some methods, thanks in advance
Macro Macro4
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 Exclamation](https://www.libreautomate.com/forum/images/smilies/exclamation.png)
I think the problem is here (int w=wait(0 WP win("" "" "mspaint"))), but I don't know how to modify it.
Macro Macro4