Jump to content
Sign in to follow this  
Christopher Blue

Sending modified mouse clicks.

Recommended Posts

;~ VK_BACK (08)
;~     BACKSPACE key

;~ VK_TAB (09)
;~     TAB key

;~ VK_CLEAR (0C)
;~     CLEAR key

;~ VK_RETURN (0D)
;~     ENTER key

;~ VK_SHIFT (10)
;~     SHIFT key

;~ VK_CONTROL (11)
;~     CTRL key

;~ VK_MENU (12)
;~     ALT key

;~ VK_PAUSE (13)
;~     PAUSE key

;~ VK_CAPITAL (14)
;~     CAPS LOCK key

#include <Misc.au3>

While 1
    If _IsPressed("11") Then Clickity() ; Ctrl is pressed
    If _IsPressed("1B") Then Quit()
WEnd

Func Clickity()
    MouseClick("left")
EndFunc

Func Quit()
    Exit
EndFunc

Edited by gamepin126

Share this post


Link to post
Share on other sites

Strange it works for me when I use {CTRLDOWN} and {CTRLUP} but not when I use {CTRL DOWN} and {CTRL UP}.

Edited by Emperor

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  

×
×
  • Create New...