How to send Backspace?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Archimede
Posts: 464
Joined: 25 Nov 2021, 09:49
Location: Switzerland / Italy

How to send Backspace?

Post by Archimede » 12 Mar 2023, 12:08

Hallo.
I need to send the character BACKSPACE.
I tried to use
Send {Backspace}
but it no send anything.
Is it possible to send Backspace?

garry
Posts: 3740
Joined: 22 Dec 2013, 12:50

Re: How to send Backspace?

Post by garry » 12 Mar 2023, 12:27

Code: Select all

send,`b
;- or
transform,bs,chr,08
send,%bs%
https://www.autohotkey.com/docs/misc/EscapeChar.htm

Code: Select all

https://www.autohotkey.com/docs/misc/EscapeChar.htm

    HEX DEC
`n  0A   10   newline (linefeed/LF) 
`r  0D   13   carriage return (CR) 
`b  08   08   backspace 
`t  09   09   tab (the more typical horizontal variety) 
`v  0B   11   vertical tab -- corresponds to Ascii value 11. It can also be manifest in some applications by typing Control+K. 
`a  07   07   alert (bell) -- corresponds to Ascii value  7. It can also be manifest in some applications by typing Control+G. 
`f  0C   12   formfeed --     corresponds to Ascii value 12. It can also be manifest in some applications by typing Control+L. 

also can use :
    1A   26   End Of File (EOF)     Control+Z
transform,eof,chr,26
send,%eof%

CPager
Posts: 10
Joined: 13 Apr 2022, 15:45

Re: How to send Backspace?

Post by CPager » 22 Mar 2023, 15:20

Here's how I achieve this:

SendInput, {Backspace} ; Delete 1 character
SendInput, {Backspace 4} ; Delete 4 character
SendInput, requires curly braces { } .

Post Reply

Return to “Ask for Help (v1)”