DNnlee Posted May 27, 2008 Posted May 27, 2008 if i set $k = random(0,10) mouseclick("left", $k, $k) mouseclick("left", $k, $k) mouseclick("left", $k, $k) does it get a random number everytime it reads $K, or does it read $k once, and use same numner over and over again?
Bert Posted May 27, 2008 Posted May 27, 2008 random every time. Did you test it with a msgbox? The Vollatran project My blog: http://www.vollysinterestingshit.com/
DNnlee Posted May 27, 2008 Author Posted May 27, 2008 random every time. Did you test it with a msgbox?i tested it with mousemove, and i'd gimmie same one everytime though
Zedna Posted May 27, 2008 Posted May 27, 2008 $k = random(0,10) mouseclick("left", $k, $k) $k = random(0,10) mouseclick("left", $k, $k) $k = random(0,10) mouseclick("left", $k, $k) or RandomClick() RandomClick() RandomClick() Func RandomClick() $k = random(0,10) mouseclick("left", $k, $k) EndFunc Resources UDF ResourcesEx UDF AutoIt Forum Search
DNnlee Posted May 27, 2008 Author Posted May 27, 2008 i tested it with mousemove, and i'd gimmie same one everytime thoughhow do i get it to do something like$K = random(6, 12)while 1 $J = 0 Do mouseclick("left", 100,100) sleep(1000) $J = $J+1 until $J = $Kwendi want a random $k everytime the loop finsihes
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