Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LControl:: ; Make the A key into a hotkey (the $ symbol facilitates the "P" mode of GetKeyState below).
- if GetKeyState("CapsLock", "T")
- {
- Click down
- Loop ; Since no number is specified with it, this is an infinite loop unless "break" or "return" is encountered inside.
- {
- ; if not ( GetKeyState("RAlt", "P") and (GetKeyState("LControl", "P") ) ; If this statement is true, the user has physically released the F1 key.
- if not (GetKeyState("LControl", "P")) ; If this statement is true, the user has physically released the F1 key.
- break ; Break out of the loop.
- ; Otherwise (since the above didn't "break"), keep clicking the mouse.
- ;Click down ; Click the left mouse button at the cursor's current position.
- ;;Wait 10
- }
- Click up
- }
- else
- {
- Send {Lcontrol down}
- Loop ; Since no number is specified with it, this is an infinite loop unless "break" or "return" is encountered inside.
- {
- ; if not ( GetKeyState("RAlt", "P") and (GetKeyState("LControl", "P") ) ; If this statement is true, the user has physically released the F1 key.
- if not (GetKeyState("LControl", "P")) ; If this statement is true, the user has physically released the F1 key.
- break ; Break out of the loop.
- ; Otherwise (since the above didn't "break"), keep clicking the mouse.
- ;Click down ; Click the left mouse button at the cursor's current position.
- ;;Wait 10
- }
- Send {Lcontrol up}
- }
- return
- ;LControl & RAlt:: ; Make the A key into a hotkey (the $ symbol facilitates the "P" mode of GetKeyState below).
- LWin:: ; Make the A key into a hotkey (the $ symbol facilitates the "P" mode of GetKeyState below).
- if GetKeyState("CapsLock", "T")
- {
- Click middle, down
- Loop ; Since no number is specified with it, this is an infinite loop unless "break" or "return" is encountered inside.
- {
- ; if not ( GetKeyState("RAlt", "P") and (GetKeyState("LControl", "P") ) ; If this statement is true, the user has physically released the F1 key.
- if not (GetKeyState("LWin", "P")) ; If this statement is true, the user has physically released the F1 key.
- break ; Break out of the loop.
- ; Otherwise (since the above didn't "break"), keep clicking the mouse.
- ;Click down ; Click the left mouse button at the cursor's current position.
- ;;Wait 10
- }
- Click middle, up
- }
- else
- {
- Send {LWin down}
- Loop ; Since no number is specified with it, this is an infinite loop unless "break" or "return" is encountered inside.
- {
- ; if not ( GetKeyState("RAlt", "P") and (GetKeyState("LControl", "P") ) ; If this statement is true, the user has physically released the F1 key.
- if not (GetKeyState("LWin", "P")) ; If this statement is true, the user has physically released the F1 key.
- break ; Break out of the loop.
- ; Otherwise (since the above didn't "break"), keep clicking the mouse.
- ;Click down ; Click the left mouse button at the cursor's current position.
- ;;Wait 10
- }
- Send {LWin up}
- Send {Ctrl}
- }
- return
- ;LControl & RAlt:: ; Make the A key into a hotkey (the $ symbol facilitates the "P" mode of GetKeyState below).
- LAlt:: ; Make the A key into a hotkey (the $ symbol facilitates the "P" mode of GetKeyState below).
- if GetKeyState("CapsLock", "T")
- {
- Click right, down
- Loop ; Since no number is specified with it, this is an infinite loop unless "break" or "return" is encountered inside.
- {
- ; if not ( GetKeyState("RAlt", "P") and (GetKeyState("LControl", "P") ) ; If this statement is true, the user has physically released the F1 key.
- if not (GetKeyState("LAlt", "P")) ; If this statement is true, the user has physically released the F1 key.
- break ; Break out of the loop.
- ; Otherwise (since the above didn't "break"), keep clicking the mouse.
- ;Click down ; Click the left mouse button at the cursor's current position.
- ;;Wait 10
- }
- Click right, up
- }
- else
- {
- Send {LAlt down}
- Loop ; Since no number is specified with it, this is an infinite loop unless "break" or "return" is encountered inside.
- {
- ; if not ( GetKeyState("RAlt", "P") and (GetKeyState("LControl", "P") ) ; If this statement is true, the user has physically released the F1 key.
- if not (GetKeyState("LAlt", "P")) ; If this statement is true, the user has physically released the F1 key.
- break ; Break out of the loop.
- ; Otherwise (since the above didn't "break"), keep clicking the mouse.
- ;Click down ; Click the left mouse button at the cursor's current position.
- ;;Wait 10
- }
- Send {LAlt up}
- }
- return
- /*
- $D:: ; Make the A key into a hotkey (the $ symbol facilitates the "P" mode
- Click middle, down
- Loop ; Since no number is specified with it, this is an infinite loop unless "break" or "return" is encountered inside.
- {
- if not GetKeyState("D", "P") ; If this statement is true, the user has physically released the F1 key.
- break ; Break out of the loop.
- ; Otherwise (since the above didn't "break"), keep clicking the mouse.
- ;Click down ; Click the left mouse button at the cursor's current position.
- ;;Wait 10
- }
- Click middle, up
- return
- $F:: ; Make the A key into a hotkey (the $ symbol facilitates the "P" mode of GetKeyState below).
- Click right, down
- Loop ; Since no number is specified with it, this is an infinite loop unless "break" or "return" is encountered inside.
- {
- if not GetKeyState("F", "P") ; If this statement is true, the user has physically released the F1 key.
- break ; Break out of the loop.
- ; Otherwise (since the above didn't "break"), keep clicking the mouse.
- ;Click down ; Click the left mouse button at the cursor's current position.
- ;;Wait 10
- }
- Click right, up
- return
- */
Advertisement
Add Comment
Please, Sign In to add comment