Advertisement
Guest User

Untitled

a guest
May 23rd, 2015
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. $process = "script.exe"
  2.  
  3. While 1
  4. WinWait ("Диспетчер задач Windows")
  5. $index = ControlListView ("Диспетчер задач Windows", "", 1009, "FindItem", $process)
  6. If $index = -1 Then
  7. Sleep(5)
  8. Else
  9. $hwnd = ControlGetHandle ("Диспетчер задач Windows", "", 1009)
  10. DllCall("user32.dll", "int", "SendMessage", "hwnd", $hwnd, "int", 0x1008, "int", $index, "int", 0)
  11. EndIf
  12. Wend
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement