Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

Suspend script, strange thing on wake up

  • Please log in to reply
No replies to this topic
  • Members
  • 3 posts
  • Last active: Oct 26 2015 03:46 PM
  • Joined: 24 Oct 2015

I have hits script to turn computer into suspend mode:

	MsgBox, 4100, , Suspend mode?, 5
	IfMsgBox, No
	    Return  ; User pressed the "No" button.
	IfMsgBox, Timeout
	    Return ; Timed out.
	DllCall("PowrProf\SetSuspendState", "int", 0, "int", 0, "int", 0)

It works fine, but when I wake it, the mouse is not working - no mouse pointer on the screen, no reaction on clicks. But LED on mouse is lighting. When I pull out mouse USB connector and push it again - all begin to work as before. If I do not use this script to suspend (using a button on desktop tower or start menu) then all is fine. What's the matter?