Skip to content

Instantly share code, notes, and snippets.

@TLMcode
Last active December 12, 2018 02:52
Show Gist options
  • Save TLMcode/87ca3a685d335b52f6b191c8e78740ac to your computer and use it in GitHub Desktop.
Save TLMcode/87ca3a685d335b52f6b191c8e78740ac to your computer and use it in GitHub Desktop.
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