autohotkey - Why does "Browser_Back" not get reengaged when I release space? - Stack Overflow

admin2025-05-02  1

I am trying to if I hold down "Browser_Back" and press F or J move left or right, conversely while holding "Browser_Back" and then hold down space and press F or J I can select one letter left or right. Essentially using the "Browser_Back"/"Browser_Back" & space as modifier keys to perform Windows text navigation/selection operations.

I am facing an issue that I can't find a way around which can be reproduced with:

Browser_Back & f::
Sendinput, {Left}
return

#if GetKeyState("Browser_Back", "p")
   space & f::
   Sendinput, +{Left}
      return
#if

The issue is after I selected something "Browser_Back" + space + F and I release space with "Browser_Back" still down, pressing F types "f" rather than move the cursor one character left. In order to trigger Browser_Back & f I have to release "Browser_Back" and hold it back down again.

I am looking for a way to automatically reengage "Browser_Back" after I trigger space & f::.

转载请注明原文地址:http://www.anycun.com/QandA/1746144849a92125.html