Mouse Twitching Script

Ask gaming related questions
0hans
Posts: 1
Joined: 04 Mar 2017, 18:51

Mouse Twitching Script

04 Mar 2017, 19:00

Since I am new to this program and lack skill in coding, I thought I'd ask people who know.

I'm looking for a script that will make the mouse "twitch". The mouse would move up, down, left, right really fast. It should also stay in the middle so example 1px up, 2 px down, 1px up, 1px left, 2px right, 1px left and then loop that. I also would want the script to work while holding down a button.

Thanks in advance.
John
Posts: 75
Joined: 10 Apr 2014, 08:59

Re: Mouse Twitching Script

07 Mar 2017, 09:03

Code: Select all

~$lbutton::
mousegetpos,mx,my
while(getkeystate(strreplace(a_thishotkey,"~$"),"P"))
	mousemove, mx + rand(-5,5), my + rand(-5,5), 0
return
rand(min,max) {
	random, r, % min, % max
	return % r
}
rshift::exitapp

Return to “Gaming”

Who is online

Users browsing this forum: faris1984 and 33 guests