Okay, no I didn't use "appTitle"
I tired a couple methods but I lean to this one...
And then I use this to terminate
And I have tried using closewindow, sendmessage, etc.
I like the sound of this command because it let's the program close on it's own instead of forcing it. And I use the user32.decls from the code archive so yes it's that one with a 0 as a class.
I tired a couple methods but I lean to this one...
ExecFile("calc.exe") Global exec=usr_FindWindow(0,"Calculator") If Not exec RuntimeError "ERROR!"
And then I use this to terminate
usr_PostMessage(exec,WM_CLOSE,0,0)
And I have tried using closewindow, sendmessage, etc.
I like the sound of this command because it let's the program close on it's own instead of forcing it. And I use the user32.decls from the code archive so yes it's that one with a 0 as a class.