HotStrings: Not any backspacing that you do is considered

Report problems with documented functionality
Rohwedder
Posts: 7614
Joined: 04 Jun 2014, 08:33
Location: Germany

HotStrings: Not any backspacing that you do is considered

29 May 2017, 02:48

https://autohotkey.com/docs/Hotstrings.htm
"Any backspacing you do is taken into account for the purpose of detecting hotstrings. However, the use of arrow keys, PageUp, PageDown, Home, and End to navigate within an editor will cause the hotstring recognition process to reset. In other words, it will begin waiting for an entirely new hotstring"

But, if you press Ctrl+Backspace this is not taken into account!
https://autohotkey.com/boards/viewtopic.php?f=5&t=32394
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: HotStrings: Not any backspacing that you do is considered

29 May 2017, 20:50

Backspacing != Ctrl+Backspace. This is not a bug.

Backspace has standard behaviour virtually everywhere. Ctrl+Backspace does not. It does not erase word in a standard Windows Edit control, for example. Even programs which support Ctrl+Backspace do not handle it consistently - they have different ideas of where words start/end, or whether to delete adjoining whitespace/punctuation.
Rohwedder
Posts: 7614
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: HotStrings: Not any backspacing that you do is considered

29 May 2017, 23:44

But it should at least be considered! How about this: The use of control as modifikator will simple cause the hotstring recognition process to reset. If you are using this modifier, you do not want to continue to enter a hotstring.
User avatar
nnnik
Posts: 4500
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: HotStrings: Not any backspacing that you do is considered

30 May 2017, 01:45

Rohwedder same goes for Ctrl+Enter.
Recommends AHK Studio
20170201225639
Posts: 144
Joined: 01 Feb 2017, 22:57

Re: HotStrings: Not any backspacing that you do is considered

31 May 2017, 07:24

you could send {click up} to manually reset the buffer. see here:
https://autohotkey.com/boards/viewtopic.php?t=11017
Rohwedder
Posts: 7614
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: HotStrings: Not any backspacing that you do is considered

31 May 2017, 09:54

Hallo,
good to know! I added this to my scripts:

Code: Select all

~^BS:: ;HotString Delete and Reset
	SendLevel 1
	Send,{Click up}
Return

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 21 guests