Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $process = "script.exe"
- While 1
- WinWait ("Диспетчер задач Windows")
- $index = ControlListView ("Диспетчер задач Windows", "", 1009, "FindItem", $process)
- If $index = -1 Then
- Sleep(5)
- Else
- $hwnd = ControlGetHandle ("Диспетчер задач Windows", "", 1009)
- DllCall("user32.dll", "int", "SendMessage", "hwnd", $hwnd, "int", 0x1008, "int", $index, "int", 0)
- EndIf
- Wend
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement