Arrow keys not working inside Task Manager Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Noo0B
Posts: 151
Joined: 26 Jan 2018, 19:54

Arrow keys not working inside Task Manager

Post by Noo0B » 12 Aug 2022, 14:00

Hi,
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
or this:

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
Any help will be much appreciated.
Best regards.

User avatar
mikeyww
Posts: 26871
Joined: 09 Sep 2014, 18:38

Re: Arrow keys not working inside Task Manager

Post by mikeyww » 12 Aug 2022, 15:04

I did not test, but it's possible that you need admin mode or UI access to make this work.

Noo0B
Posts: 151
Joined: 26 Jan 2018, 19:54

Re: Arrow keys not working inside Task Manager  Topic is solved

Post by Noo0B » 12 Aug 2022, 18:01

Thanks Mikeyww, I'll accept this as an answer.
Best regards.

Post Reply

Return to “Ask for Help (v1)”