Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WatchDog Thread
#5
Try function IsHungAppWindow. Win 2000, XP and later. Read more in MSDN Library.

Code:
Copy      Help
dll user32 #IsHungAppWindow hWnd

int window_handle
run "notepad.exe" "" "" "" 0x800 "- Notepad" window_handle
rep
,1
,if(!IsWindow(window_handle)) break ;;closed
,if(IsHungAppWindow(window_handle))
,,ShutDownProcess window_handle


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)