myths224 Posted September 30, 2013 Share Posted September 30, 2013 hello been doing a small script to click at random points. when i first start it they are all random, but when the script loops the randoms dont change. just moves mouse within those cords and clicks, but never changes where it clicks from the first . Ive been looking to a while and have see 1 topic on here with same issue but their code was alot more advanced and was clueless. $first = 1 HotKeySet("=", "Start") HotKeySet("-", "Terminate") $posxa = random(411,500) $posya = random(72,85) Func Start() While $first = 1 Sleep(5000) mousemove($posxa,$posya) Sleep(Random(100,350)) MouseDown("left") sleep(Random(50,150)) MouseUp("left") WEnd EndFunc Link to comment Share on other sites More sharing options...
singbass Posted September 30, 2013 Share Posted September 30, 2013 I think you need to move these inside your while loop after your Sleep(5000) command. $posxa = random(411,500)$posya = random(72,85) Link to comment Share on other sites More sharing options...
myths224 Posted September 30, 2013 Author Share Posted September 30, 2013 (edited) I think you need to move these inside your while loop after your Sleep(5000) command. $posxa = random(411,500) $posya = random(72,85) thanks i will try that yes that did it, all the youtube vids i saw had them like i had them in first post, cant believe it was something so simple thanks alot. working great now. Edited September 30, 2013 by myths224 Link to comment Share on other sites More sharing options...
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