WheelUp / WheelDown hotkeys stop working

Get help with using AutoHotkey and its commands and hotkeys
Alexander-5603
Posts: 1
Joined: 08 Feb 2017, 09:57

WheelUp / WheelDown hotkeys stop working

24 Sep 2017, 15:32

I have a simple hotkey, that only logs mouse wheel events:

Code: [Select all] [Download] (Untitled.ahk)GeSHi © Codebox Plus

~$WheelDown::
FileAppend, WheelDown`n, wheel-events.txt
return


After a some time of working, usually quite long (maybe several hours), the script stops intercepting WheelUp / WheelDown events. At the same time any other hotkeys located in that script continue working well.

The same issue I have with other applications, that use global mouse hook, that I have on my PC. They all stop receiving wheel events after some time, while anything else continues working well.

What can cause such behavior? Thanks in advance for any help.

Autohotkey verrsion is 1.1.24.04, OS is Windows XP SP3.
User avatar
Exaskryz
Posts: 2410
Joined: 17 Oct 2015, 20:28

Re: WheelUp / WheelDown hotkeys stop working

24 Sep 2017, 21:07

I wonder if the .txt file is getting too large for FileAppend?

When you notice this happens, check out the variables ErrorLevel and A_LastError. (A_LastError may need you to store it in another variable, which can be done just fine with like LastError:=A_LastError. Those may clue you into what is going wrong if it's anything to do wit FileAppend, as described in documentation.

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], euras, keitsuke, malcev, scriptor2016, Yahoo [Bot] and 39 guests