hotstrings not working using touch keyboard Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
drramimagdi
Posts: 11
Joined: 20 Sep 2021, 12:43

hotstrings not working using touch keyboard

Post by drramimagdi » 27 May 2022, 13:08

win 11 Version 21H2 (OS Build 22000.675)

hotstrings works using the physical keyboard


but it doesn't work using win 11 touch keyboard
how to make it work?


[touch keyboard pic from the internet]
Image

gregster
Posts: 8921
Joined: 30 Sep 2013, 06:48

Re: hotstrings not working using touch keyboard  Topic is solved

Post by gregster » 27 May 2022, 18:21

I guess the reason (and possibly the solution) is mentioned in the Remarks section of hotstrings docs:
https://www.autohotkey.com/docs/Hotstrings.htm#remarks wrote:By default, any click of the left or right mouse button will reset the hotstring recognizer. In other words, the script will begin waiting for an entirely new hotstring, eliminating from consideration anything you previously typed (if this is undesirable, specify the line #Hotstring NoMouse anywhere in the script).
But not sure, if these touches will will be registered as mouse clicks, and are the reason - I can't test it, I have neither a Windows touchpad, nor Win11.


Edit:
Even without the #Hotstring NoMouse directive, the Win10 OSK works for me (clicking the hotstring text with my mouse); the hotstring still replaces the typed text.
Perhaps there is a permissions issue - did you try to run your script as admin?

drramimagdi
Posts: 11
Joined: 20 Sep 2021, 12:43

Re: hotstrings not working using touch keyboard

Post by drramimagdi » 28 May 2022, 07:38

running as admin did the trick. thanks a million

Post Reply

Return to “Ask for Help (v1)”