Jump to content
Sign in to follow this  

Shift+Click detection

Recommended Posts

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")

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] & ")")

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...