You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am experiencing a problem where my script will suddenly (and seemingly randomly) stop detecting my keyboard input. This happens upon switching away from my text editor. I'm not even getting to the code following the Input command. I know my script is still working because if I switch windows, my 100 ms timer to detect a window switch kicks in.
This did not happen with AutoHotKey 1.0.48.5.
As you can see from the pasted key history below, the keyboard hook is enabled. The reason I suspect the keyboard hook is two-fold:
There is no keyboard input in the below pasted keyboard history excerpt (I trimmed some entries, but they are all for the mouse). I switched to this window directly after typing some code in my text editor (which should be picked up by the script). When I was typing, the script was not paused and hotkeys were not suspended.
I selected some text and hit my defined hotkey Ctrl-Shift-C (which is a khook enabled hotkey). This adds the word to a list to be written to a file. The word was NOT written to the file upon exiting my script, so I believe that the hotkey never triggered.
[...pasted code omitted...]
The text was updated successfully, but these errors were encountered:
Basically, when suspending the hotkeys, AHK basic would uninstall the keyboard hook, even though the main thread was still waiting on the Input command. It should not have been doing this, but worked for my purposes. I didn't run into the situation of the Input breaking because my keyboard hook was regularly re-installed.
The solution is to call Input with no parameters before Suspending the hotkeys, allowing the keyboard hook to uninstall.
I am experiencing a problem where my script will suddenly (and seemingly randomly) stop detecting my keyboard input. This happens upon switching away from my text editor. I'm not even getting to the code following the Input command. I know my script is still working because if I switch windows, my 100 ms timer to detect a window switch kicks in.
This did not happen with AutoHotKey 1.0.48.5.
As you can see from the pasted key history below, the keyboard hook is enabled. The reason I suspect the keyboard hook is two-fold:
[...pasted code omitted...]
The text was updated successfully, but these errors were encountered: