Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv
- SendMode Play
- Q::Suspend
- ~LButton::
- Loop
- IfWinActive, Rust
- {
- If GetKeyState("LButton") {
- Sleep, 1
- moveAmount := (moveAmount = 2) ? 3 : 0
- mouseXY(moveAmount,2.5)
- }
- else
- break
- }
- LCtrl & ~LButton::
- Loop
- IfWinActive, Rust
- {
- If GetKeyState("LButton", "LCtrl") {
- Sleep, 1
- moveAmount := (moveAmount = 2) ? 3 : 0
- mouseXY(moveAmount,3)
- }
- else
- break
- }
- LShift & ~LButton::
- Loop
- IfWinActive, Rust
- {
- If GetKeyState("LButton", "LShift") {
- Sleep, 1
- moveAmount := (moveAmount = 2) ? 3 : 0
- mouseXY(moveAmount,3)
- }
- else
- break
- }
- Return
- mouseXY(x,y)
- {
- DllCall("mouse_event",int,1,int,x,int,y,uint,0,uint,0)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement