ThumpieBunnyEve wrote:Nextron said:
Have you tried the function with higher delays and press duration,
yes as i indicated in my above post:
Well you didn't. I'm asking about the function parameters. You're showing the command and directive parameters.
Try this below, which is annoyingly slow, but should show whether speed is the culprit.
Code: Select all
Process,Priority,,A
#Hotstring XB0 ;Backspacing disabled (hotstrings must come below this line)
HotstringSend(Text, Delay:=200, PressDuration:=200){
bs:=StrLen(A_ThisHotkey A_EndChar)-InStr(A_ThisHotkey,":",0,1,2)
SetKeyDelay Delay, PressDuration
SendEvent {BackSpace %bs%}%Text%%A_EndChar%
}
::dont::HotstringSend("don't") ;Single line since AHK 1.1.28
the autocorrect.ahk which is downloadable from the AKH site, and my personal version which is about 5000 entries long,
both the official and mine use the format
::wodr::word
Nextrons version uses the format
::wodr::
HotstringSend("word")
Return
this would mean changing 5000 lines, to at-least 15000 lines. adding additional characters, and steer it away from compatibility with existing formats that (useing some scripts already on the site) automaticly generate new entries into a users personal autocorrect.ahk library.
Essentially your version breaks functionality with the standard set by other scripts that allows for automated appending of the autocorrect lib.
Agreed, using the native format is more legible and easier to use... but also non-functional in-game. The extensive (but limited) hotstring customization options do not allow this to be fixed for you (for me, setting SE
is sufficient), so a custom solution has to be used, which I supplied. That does entail implementing a non-native formatting. If applying this to an existing file through a couple of search&replaces is too much work or unwanted, you could have AHK parse a native hotstring script, regex the triggers and outputs and generate a new customized file or dynamically setup the hotstrings using
Hotstring(), but that's outside the scope of the original problem.