Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SingleInstance, Force
- SetMouseDelay, 1
- CoordMode, Mouse, Screen
- Esc::
- Click up
- Reload
- Return
- ;((i * 2) + 2 + i)
- 9::
- MouseGetPos, xcenter, ycenter
- BlockInput MouseMove
- Skip:=13
- Nxt:=Skip + 1
- Pnt:=(2 * Skip) + 2 + Skip
- Theta:=0 ;I forget if I really have to initialize this
- x:=50*Cos(Theta) ;50 pixel radius
- y:=50*Sin(Theta)
- mx:=Round(xcenter+x)
- my:=Round(ycenter+y)
- MouseMove, mx, my
- Theta+=(Nxt * (360 / Pnt)) * (3.14159265 / 180) ;Nxt (while it's 2) says we skip to the second point when connecting the dots instead of the one next to it, which would just give us a pentagon
- Click down
- Loop, % Pnt ;x points to connect (In this case, 5 for a 5 pointed star)
- {
- x:=50*Cos(Theta) ;50 pixel radius
- y:=50*Sin(Theta)
- mx:=Round(xcenter+x)
- my:=Round(ycenter+y)
- MouseMove, mx, my
- Theta+=(Nxt * (360 / Pnt)) * (3.14159265 / 180)
- }
- Click up
- MouseMove, xcenter, ycenter
- BlockInput MouseMoveOff
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement