DBPro code:
killProgram("Get Class Name")
function killProgram(programWindowTitle as string)
local dllId=1
local winHandle
load dll "user32.dll",dllId
if dll exist(dllId)
winHandle=call dll(dllId,"FindWindowA","TForm1",programWindowTitle)
if (winHandle>0)
call dll dllId,"SendMessageA",winHandle,0x10,1,0
else
print "Window Not Found - ";programWindowTitle
wait key
endif
else
print "Failed to load user32.dll"
wait key
endif
endfunction
Replace "Get Class Name" AND "TForm1" with your program's window title.
BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games. - Plus URL download, win dialogs.
Over 140 new commands