Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; CTRL+F2 = repeat right click on/off
- ; CTRL+F3 = hold left click on/off
- ; F4 = repeat pressing shift (twerk)
- ; CTRL+F4 = hold to twerk (legacy)
- ; holding shift with first 3 macros will disable them (twerk macro presses shift)
- ;-------
- ; AutoHotkey Version: 1.x
- ; Language: English
- ; Platform: Win9x/NT
- ; Author: A.N.Other <myemail@nowhere.com>
- ;
- ; Script Function:
- ; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
- ;
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- TogR:=false
- TogL:=false
- Toggle:= false
- instance1:=0
- #MaxThreadsPerHotkey 2
- #MaxHotkeysPerInterval 1000
- ^F4::
- SetKeyDelay 10,30
- if (!instance1)
- {
- instance1=1
- while GetKeyState("F4","P")
- {
- SendEvent {LShift}
- ;sleep 10
- }
- instance1=0
- }
- return
- F4::
- SetKeyDelay 10,30
- Toggle := !Toggle
- ;if Toggle
- ; SoundBeep,1600,100
- ;else
- ;SoundBeep,500,100
- While Toggle
- {
- SendEvent {LShift}
- sleep,80
- }
- return
- +F4::
- Toggle := false
- ;if Toggle
- ; SoundBeep,1200,200
- ;else
- ;SoundBeep,600,200
- return
- ^F2::
- TogR:=!TogR
- While TogR
- {
- Click right
- sleep,50
- }
- return
- +^F2::
- TogR:=false
- return
- ^F3::
- TogL:=!TogL
- if togL then
- Click down
- else
- Click up
- return
- +^F3::
- TogL:=false
- Click up
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement