I need a script to move and click my mouse in minecraft,
-
- Posts: 1
- Joined: 03 Sep 2022, 11:14
I need a script to move and click my mouse in minecraft,
I need a script to start from the centre of the screen, more 100 in the x axis 4 times with a 100ms sleep time, then go back to the centre of my screen and do it again in the opposite direction, then indefinetly repeat. F2 to stop and start the script. The script is for minecraft, Please help.
Re: I need a script to move and click my mouse in minecraft,
Welcome to this AutoHotkey forum!
Code: Select all
#MaxThreadsPerHotkey 2
F2::
CoordMode, Mouse
direction := -1, on := !on
While on {
MouseMove, A_ScreenWidth / 2, A_ScreenHeight / 2
direction *= -1
Loop, 4 {
Sleep, 100 * on
If on
MouseMove, 100 * direction, 0,, R
}
}
Return