Autohotkey on a Logitech Keyboard generates the wrong characters
Autohotkey on a Logitech Keyboard generates the wrong characters
On Windows 7 Ultimate 32bit, I am using Version 1.1.25.01 of AutoHotkey with a Logitech MK700/710 wireless keyboard, the matching wireless Logitech mouse and the Microsoft installed keyboard driver. The language setting is always US English and AutoHotkey is loaded automatically at startup. After a couple of hours, the keyboard starts generating the wrong characters. For example À instead of the vertical bar |, etc. Is there anything I can do to avoid the problem altogether? Also until now I avoided using the Logitech Setpoint software just in case it may compound the problem. Any advice is most appreciated.
Win 10 Professional 64bit 21H2 16Gb Ram AHK current as of 2021-12-26 .
Re: Autohotkey on a Logitech Keyboard generates the wrong characters
I don't know what you mean by starting AutoHotkey at startup since AutoHotkey is a language.
You can run AutoHotkey Scripts at startup and without knowing the specific Script we won't be able to guess what's the issue.
You can run AutoHotkey Scripts at startup and without knowing the specific Script we won't be able to guess what's the issue.
Recommends AHK Studio
Re: Autohotkey on a Logitech Keyboard generates the wrong characters
Edit - oops, replied to wrong post
Re: Autohotkey on a Logitech Keyboard generates the wrong characters
nnnik, this has nothing to do with the script loaded at start up. it has to do with a keyboard problem. But, to allay your concerns and satisfy your curiosity, this is the code line of the startup.bat in the startup folder. It is necessary because the autohotkey.ahk is not in the My Documents folder.nnnik wrote:I don't know what you mean by starting AutoHotkey at startup since AutoHotkey is a language.
You can run AutoHotkey Scripts at startup and without knowing the specific Script we won't be able to guess what's the issue.
Code: Select all
"c:\program files\autohotkey\autohotkey.exe" "d:\ahkfunctionslibrary\autohotkey.ahk"
Win 10 Professional 64bit 21H2 16Gb Ram AHK current as of 2021-12-26 .
Re: Autohotkey on a Logitech Keyboard generates the wrong characters
Do you use the ANSI or Unicode version? I'll assume Unicode. You can update to a newer version of AutoHotkey - usually can't hurt.
If it happens after a few hours and updating AutoHotkey doesn't help why not simply reload AutoHotkey every hour or so using a SetTimer. Yes it may be a kludge but if it resolves the problem I'd say go for it.
If it happens after a few hours and updating AutoHotkey doesn't help why not simply reload AutoHotkey every hour or so using a SetTimer. Yes it may be a kludge but if it resolves the problem I'd say go for it.
Code: Select all
SetTimer, AutoReload, 60000 ; 1000 * 60 = hour, place this line anywhere above your first hotkey or hotstring
; at the end of the script would be a good place
AutoReload:
Reload
Return
Who is online
Users browsing this forum: Theda and 275 guests