superbem Posted May 19, 2008 Share Posted May 19, 2008 I can get the PID easily: $activeWin=ProcessExists("sample.exe") but this don't work: $activeWin = WinGetHandle($activeWin) And I need it for this: DllCall("User32.dll", "int", "PostMessageA", "hwnd", $activeWin, "int", "0x0012", "int", "", "int", "") This is a quit program, and I need to exit the sample.exe with this wm_quit command, a kill process wont do. Thanks Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now