Results 1 to 3 of 3

Thread: Looking for Help on Something Simple

  1. #1
    Join Date
    Mar 2006
    Location
    Northern Kentucky
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Angry Looking for Help on Something Simple

    program New;
    Var
    x, y:integer; //variables used
    Procedure 1;
    If Iskeydown(Need Ctrl Key Here)
    Then;
    begin; //begin
    getmousepos(x,y); //searches for mouse position
    end;

    Procedure 2;
    Begin;
    repeat;
    ClickMouse(x, y,False);
    Until(IsKeyUp(Need Ctrl Here);
    End;

    //-------Main Loop-------\\
    Begin;
    1;
    2;
    end. //end script

  2. #2
    Join Date
    Feb 2006
    Location
    Australia, NSW.
    Posts
    1,461
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Code:
    var
    x, y: integer;
    
    
    Procedure One; //Numbers can't be used first.
    begin //Begin is needed.
     if (IsFunctionKeyDown(1)) then //Control. There's no semicolon after "then"
      begin //No Semi colon after "begin"
       getmousepos(x, y);
      end;
    end; //end is needed to end the procedure.
    
    Procedure Two; //Numbers can't be used first.
    begin //No semi colon after "begin"
     repeat //No semi colon after repeat
       ClickMouse(x, y, false);
     Until(IsFunctionKeyDown(1)); //Control
    end;
    
    begin;
      One;
      Two;
    end.
    You don't put semi colons infront of:
    Code:
    begin
    then
    of
    is
    and
    Etc. Just don't put semi colons infront of any bolded words.

    Procedures can't start with a number, they must be a word.
    Happy to help. <3

  3. #3
    Join Date
    Mar 2006
    Location
    Northern Kentucky
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Can i dont know what i'd do without you man
    ya save my arse from carpol tunnel more times than i can count
    oh and thanks for last tip too i didnt know.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 03-26-2007, 07:57 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
  •