CyberSlug Posted December 6, 2004 Posted December 6, 2004 The following works on Windows 2000/XP but not Windows 9x/Me .... Anyone have a solution for the GetKeyState issue on Windows 9x? $GUI = GuiCreate("Example") GuiSetState(@SW_HIDE) ToolTip("Sample script for" & @CRLF & "Shift+Click detection....", 0, 0) While 1 $msg = GuiGetMsg() If $msg = -3 Then ExitLoop $key = DllCall("user32", "int", "GetAsyncKeyState", "int", 0x10) $mouse = GuiGetCursorInfo() $p = MouseGetPos() If $key[0] And $mouse[2] Then MsgBox(4096,"Notify", "Shift+Click detected at (" & $p[0] & "," & $p[1] & ")") WEnd Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
CyberSlug Posted December 6, 2004 Author Posted December 6, 2004 ya know, a shift + click may be $key[0] = -32768Lar.<{POST_SNAPBACK}> If -32768 Then MsgBox(4096,"Nonzero","So this should print...") Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now