Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ;Weeaboos
- ; #Warn ; Gas Jews
- SendMode Input ; Idi
- SetWorkingDir %A_ScriptDir% ; Nahui
- #NoEnv
- SendMode, Input
- SetBatchLines -1
- CoordMode, Mouse, Screen
- mouseXY(x, y){
- DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0)
- }
- strafe(left){
- moveCount := 25
- sleepInterval := 2
- relativeMove := 15
- if(left){
- key := "a"
- move := -relativeMove
- } else {
- key := "d"
- move := relativeMove
- }
- Send, {Blind}{%key% down}
- DllCall("Sleep", "UInt", 5)
- Loop, %moveCount% {
- mouseXY(move, 0)
- DllCall("Sleep", "UInt", sleepInterval)
- }
- Send, {Blind}{%key% up}
- }
- *XButton1::
- while getkeystate("XButton1","P") {
- strafe(false)
- strafe(true)
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement