Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 18:06

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[question] Pascal/scar Divi

Discussion on [question] Pascal/scar Divi within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
SeafightSellShip's's Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 1,227
Received Thanks: 459
[question] Pascal/scar Divi



I'd like to know how to but a RandomWait into my script. I'd like to run a script which clicks non stop on some buttons and once in every 5-10 on a certain button, anyone knows how to do this?
SeafightSellShip's is offline  
Old 09/29/2015, 19:34   #2
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,137
Received Thanks: 573
Using function you can generate a number between 5 and 10, give it to in int variable, then you could do a while loop to press your buttons, counting your variable down, when it reaches 0 you press that special button, and generate a new number
something like this:
Code:
procedure Clickbuttons;
var
  c: Integer;
begin
  c := RandomRange(5, 10);
  While True do
  begin
    // Press your Buttons here
    dec(c);
    if c = 0 then
    begin
      //Press the special button here
      c := RandomRange(5, 10);
    end;
  end;
end;
warfley is offline  
Reply




All times are GMT +1. The time now is 18:07.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.