Yata Posted April 3, 2008 Posted April 3, 2008 Could someone please give me the code that could take a square area of pixels and click a random one each time, having a random time between the clicks? The time area would be between 2-5 seconds. Thank you.
weaponx Posted April 3, 2008 Posted April 3, 2008 RandomMouseClick(100, 100, 100, 100, 10, 2, 4) ;LL = Left ;TT = Top ;WW = Width ;HH = Height ;iNum = Number of clicks ;iMin = Lowest interval (in seconds) ;iMax = Highest interval (in seconds) Func RandomMouseClick($LL, $TT, $WW, $HH, $iNum, $iMin, $iMax) For $X = 1 to $iNum MouseClick ("left",Random($LL, $LL+$WW, 1),Random($TT, $TT+$HH, 1),1,0) Sleep(Random($iMin, $iMax,1) * 1000) Next EndFunc
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now