Newby question: change Delete key

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
qltel
Posts: 1
Joined: 23 May 2024, 02:31

Newby question: change Delete key

Post by qltel » 23 May 2024, 02:36

Hello,

I want to change the function of the delete key (with and without shift) in typing texts.

I tried this:

Delete::
+Delete::
shift & delete::enter


I assume that the last 2 lines do the same, but it still don't work.

How can I change the function of the shift & delete key?

User avatar
boiler
Posts: 17393
Joined: 21 Dec 2014, 02:44

Re: Newby question: change Delete key

Post by boiler » 23 May 2024, 06:45

Code: Select all

#Requires AutoHotkey v2.0

Delete::
+Delete::Send '{Enter}'

Or more simply which allows other modifier keys as well (Ctrl, Alt, Win):

Code: Select all

#Requires AutoHotkey v2.0

*Delete::Send '{Enter}'

Post Reply

Return to “Ask for Help (v2)”