Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Scripts and Functions (v2) • Re: AutoCorrect for v2

$
0
0

1) when I type something into a box and then tab to the next box, if the thing that I put into the first box is a hotkey then the translation mostly gets put into the second box.

I'm not sure I understand what you mean... First I want to make sure you mean "hotkey" such as #h::, rather than "hotstring" such as ::mytrigger::.
Also, when you say, "box," do you mean like the edit fields in a webform, where you type something, then press tab to go to the next field?


2) if I type the same hotkey twice in a row quickly, the second one doesn't get translated for some reason. if I wait a second or so, it does get translated.

Same question: Do you mean like hotstrings that are sent with the f() function, or is it more like:

CODE:

!+s::
{
Send "Some text."
}

If you are doing Send, then you might try using SendInput instead. (Though I think Send is supposed to work like SendInput by default anyway).

Also... Make sure that you are not accidentally running two instances of AutoCorrect2. The #SingleInstance directive at the top of the script is supposed to make that impossible, but I find that it still happens. In my experience, if one instance is running because I clicked the link in my Start Menu, then I open the script for editing in VSCode, and THEN I press Ctrl+F9 to run the script from there, I will often get two instances. It causes the script to do weird things and is super-annoying. You can usually tell by looking for the icons in the Windows SysTray.

Statistics: Posted by kunkel321 — Today, 20:34



Viewing all articles
Browse latest Browse all 579

Trending Articles