bf2forlife Posted June 16, 2008 Posted June 16, 2008 1.check this out $s = random(10, 15) sleep($s) sleep(?) So how i can put the second sleep in same sleep time as the first one? Like if the first is 13, the second would be 13 too? 2. How can you put random offset in mouse clicks? Thanks.
Shalm Posted June 16, 2008 Posted June 16, 2008 1.check this out $s = random(10, 15) sleep($s) sleep(?) So how i can put the second sleep in same sleep time as the first one? Like if the first is 13, the second would be 13 too? 2. How can you put random offset in mouse clicks? Thanks. 1.) Unless I totally missed what you are asking: $s = random(10, 15) sleep($s) sleep($s) 2.) MouseClickDelay(Random(#, #)) should work.. try it out and let me know.
bf2forlife Posted June 16, 2008 Author Posted June 16, 2008 ok i explain the first bit better. If i go with ur code, the first might be 12 and second 14. But we dont want that. We want that the second sleep time is same as the first.
Shalm Posted June 16, 2008 Posted June 16, 2008 (edited) $s = random(10, 15) sleep($s) sleep($s) With this code you are: 1) Declaring a variable named '$s' 2) Finding a Random number between 10-15 miliseconds 3) Assigning the value of the Random number to the $s variable 4) Sleeping for a amount of time based on the value found in the '$s' variable 5) AGAIN sleeping for a amount of time based on the value found in the '$s' variable **Note: '$s' does not change unless you reassign the value in the variable. Hope this helps.. Edited June 16, 2008 by Shalm
bf2forlife Posted June 16, 2008 Author Posted June 16, 2008 Oh thanks! I thought that the $s changes every time
Shalm Posted June 16, 2008 Posted June 16, 2008 (edited) Oh thanks! I thought that the $s changes every timeNope, variables only do as they are told.. Unlike me. Edited June 16, 2008 by Shalm
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