Close process

Blitz3D Forums/Blitz3D Programming/Close process

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Okay, no I didn't use "appTitle"

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.