Hi everyone. I want to use the
Delete key to end a process in the Task Manager in Chrome. Both, the Task Manager and normal Google Chrome windows, have the same
ahk_class (Chrome_WidgetWin_1),
ahk_exe (chrome.exe) and
ahk_pid (12080). So to differentiate between them I made use of WinTitle.
Here is a screenshot: https i.imgur.com /xxi6fcU.png Broken Link for safety
This is the script I made to accomplish this:
Code: Select all
if WinActive(Task Manager - Google Chrome) ; Chrome Task Manager
Del::
Send {Tab}
Send {Enter}
Send {Tab}
return
However, the code gets executed even when I press
Delete key in normal Google Chrome windows. Am I missing something? Please help.