I have been testing with windows spy and paint but some of them click outside the box, when I want the clickcs to be inside the box.
Code: Select all
F12::
ExitApp
^t::
IfWinExist, box - Paint
WinActivate
else
WinActivate, Nothing
Loop 1000
{
MouseClick, left, % Rand(217, 593), % Rand(448, 691)
}
randsleep(min, max) {
sleep % rand(min, max)
}
rand(min, max) {
Random, rand, % min, % max
return rand
}