I'm trying to close with task manager a process that crashed and keeps lingering on the background stopping its reopening, but the keys used to open the Task manager keep being held down after being sent up - unless the sleep command between send down and up is somewhat short I think - and once the Task manager is open I can't get the script to send down the arrow key to it so I can page down the process list for a search. The same happens with the wheel down send command.
What am I doing wrong? I know that there are other methods to close a process and I welcome being told how to, but for the sake of the information, what is wrong with this code?
Code: Select all
sleep, 250
send, {LControl down}{LShift down}{Esc down}
sleep, 50
send, {LControl up}{LShift up}{Esc up}
sleep, 2550
sleep, 1150
send, {Down down}
sleep, 150
send, {Down up}
sleep, 50
send, {Down down}
sleep, 150
send, {Down up}
return
Code: Select all
sleep, 250
send, {LControl down}{LShift down}{Esc down}
sleep, 50
send, {LControl up}{LShift up}{Esc up}
sleep, 2550
mousemove,500, 500
click,500 500
send, {wheeldown 7}
return
Best regards.