Results 1 to 4 of 4

Thread: Basic Click Mouse Script?

  1. #1
    Join Date
    Jan 2009
    Location
    Tacoma,Wa
    Posts
    338
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Question Basic Click Mouse Script?

    Hello, I am really new to scripting and I created a basic move to x, y move mouse and click script. Well I basically wanted it to wait 5 seconds then go to the spot and click but that won't work, all it did was execute. Here is the code:

    Code:
    program click;
    
    procedure Click;
    begin
     wait(5000)
     ClickMouse(520, 271, True);
    end;
    
    begin
    end.
    If I am retarded and missed a big part into this, NOT MY FAULT! xD, I am very new to this.
    Last edited by ffcfoo; 06-22-2010 at 03:04 AM.

  2. #2
    Join Date
    Sep 2006
    Location
    Canada
    Posts
    1,124
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    need to put your procedure click into the main loop which is the end with the period

    begin
    click;
    end.

  3. #3
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    You never put your procedure in your main loop

    SCAR Code:
    program click;

    procedure Click;
    begin
     wait(5000)
     ClickMouse(520, 271, True);
    end;

    begin
      Click;
    end.
    Your main loop is that last begin..end nest. It is the code that is actually executed during runtime.

  4. #4
    Join Date
    Jan 2009
    Location
    Tacoma,Wa
    Posts
    338
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Quote Originally Posted by NCDS View Post
    You never put your procedure in your main loop

    SCAR Code:
    program click;

    procedure Click;
    begin
     wait(5000)
     ClickMouse(520, 271, True);
    end;

    begin
      Click;
    end.
    Your main loop is that last begin..end nest. It is the code that is actually executed during runtime.
    I TOTALY forgot! Thanks guys!

Thread Information

Users Browsing this Thread

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

Posting Permissions

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