In windows when I press Ctrl + Delete in a text editor, a whole word in front of the cursor gets deleted and I want to remap this to the combination: Left Ctrl + Left Alt + P, which means when I press Left Ctrl + Left Alt + P, I want the word to be deleted also.
I am using AutoHotKey v2.0 to achieve this and I am using this script:
<^<!p::
{
Send("<^{Delete}")
}
And the issue is that now when I click Ctrl + Left Alt + P, it is being translated as if I am pressing Ctrl + Alt + Delete which shows a screen to Lock or switch user or show the task manager.
I tried to work around this by remapping Left Ctrl + Left Alt + Delete to do nothing:
<^<!Del::
{
return
}
But it is still showing the lock screen.
How can I solve this?