Curious bug, pc hibernates after mouse wheel scroll

Report problems with documented functionality
Posts: 1
Joined: 17 Mar 2020, 05:37
GitHub: silverqx

Curious bug, pc hibernates after mouse wheel scroll

17 Mar 2020, 06:11

I know about this bug months, I have to report this problem. I'm using a script like this:

Code: Select all

#UseHook On
#SingleInstance Force

; Suspend2Ram
~RButton & WheelUp::
    DllCall("PowrProf\SetSuspendState", "int", 0, "int", 0, "int", 0)

; Hibernate
~RButton & WheelDown::
    DllCall("PowrProf\SetSuspendState", "int", 1, "int", 0, "int", 0)
Whole code is at where is also .bat file with Ahk2Exe.exe etc.

I'm compiling this code with Ahk2Exe.exe and I'm calling this exe from task scheduler during logon.

The point is to hibernate / suspend2ram by right mouse button click and mouse wheel up/down, which works pretty well and I'm using this shortcut intensively almost year.

The problem is, when I wake up from suspend2ram or hibernate and I use the mouse wheel, so the pc is hibernated or suspended again, so after wake up I can't use the mouse wheel immediately.
To prevent this behavior I have to do right-click before ( few times ) and after this right-clicks is everything fine.

So if I use this shortcut to hibernate my pc and I wake up, the first thing which I have to do is mouse right-click, before I can use mouse wheel, if I I don't and I do some action with mouse wheel, my pc is hibernated immediately.

It looks like some info about right click is saved somewhere in autohotkey and after wake up it still looks, like this button is still pressed.

I hope I described it clearly, because this is really curious :D
Posts: 377
Joined: 24 Jan 2016, 13:54
Location: Pa., USA

Re: Curious bug, pc hibernates after mouse wheel scroll

17 Mar 2020, 09:25

Followed your link to github. I couldn't find the script there. And,if all that is there is a compiled script (which I also did not find), no one in this forum can help you. The last thing I would ever do is run someone else's compiled script.

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 6 guests