Results 1 to 4 of 4

Thread: RandomClick Procedure

  1. #1
    Join Date
    Jun 2007
    Posts
    785
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default RandomClick Procedure

    Quick made a Function that clicks with right mouse button or the left mouse button in random order..

    Didn't test it but it should work in theory I think...

    SCAR Code:
    function RandomClick(Option: string; active : boolean): boolean;
    var
      ClickStyle, x, y : integer;
    begin
      if (active) then
      begin
        for ClickStyle := 1 To 2 Do
        begin
          Case Clickstyle of
            1: Mouse(x, y, 3, 3, true);
            2: ChooseOption(Option);
          end;
          result := true;
        end;
      end;
    end;

    fill it in as:
    SCAR Code:
    RandomClick('ttack', true)

    'ttack' is right mouse option
    true should be true, otherwise it won't click

    gl

    [22:20] <[-jesus-]> freddy, go uninstall yourself

  2. #2
    Join Date
    Aug 2007
    Location
    England
    Posts
    734
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Why the active? surely if your running it you want it to work? You should include some failsafes such as looking for the right click box. And also you should Let the person set the random sizes. And finally let them pass in an X and Y so its

    function RandomClick(Option: string; Cx , Cy, Rx, Ry: integer): boolean;
    The truth finally came out...


  3. #3
    Join Date
    Sep 2007
    Location
    England
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Nice One dumpin really easy to use. I might use this in my new tut if its ok with you .

  4. #4
    Join Date
    Jun 2007
    Posts
    785
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by mat_de_b View Post
    Why the active? surely if your running it you want it to work? You should include some failsafes such as looking for the right click box. And also you should Let the person set the random sizes. And finally let them pass in an X and Y so its

    function RandomClick(Option: string; Cx , Cy, Rx, Ry: integer): boolean;
    people should add that themselves in the procedure, its just like you use mouse but then it right clicks to...


    SuperScripter, you can use it but credit plz

    [22:20] <[-jesus-]> freddy, go uninstall yourself

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Procedure TypeSendRandom & Procedure AutoResponder!
    By Ultra in forum Research & Development Lounge
    Replies: 12
    Last Post: 01-08-2008, 07:04 PM
  2. Randomclick
    By Siikanen in forum OSR Help
    Replies: 2
    Last Post: 11-02-2007, 03:46 PM
  3. Replies: 8
    Last Post: 05-24-2007, 11:57 PM
  4. Procedure that calls random procedure?
    By Secet in forum OSR Help
    Replies: 2
    Last Post: 03-03-2007, 03:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •