Last active
December 12, 2018 02:52
-
-
Save TLMcode/87ca3a685d335b52f6b191c8e78740ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CoordMode Mouse, Screen | |
PosArr := [] | |
~LButton:: | |
MouseGetPos, mPosX, mPosY, mPosWin, mPosControl | |
PosArr.Push( mPosX, mPosY ) | |
return | |
F1:: | |
for i in PosArr | |
mouseclick,, % PosArr[ rand(i,i+1) ], % PosArr[ rand(i+1,i+2) ] | |
PosArr := [] | |
return | |
rand(mn,mx) | |
{ | |
random, res, % mn, % mx | |
return res | |
} | |
Esc::ExitApp ; << press escape to exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment