Results 1 to 9 of 9

Thread: Help me clicking...

  1. #1
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default Help me clicking...

    Why doesn't :

    SCAR Code:
    program New;

    var
      sx,sy,TTCs : string;
      x,y,TTC,TC : integer;
     
    Procedure GetCoords;
    begin
      sx := Readln('X coord = ');
      sy := Readln('Y coord = ');
      TTCs := Readln('Times to click :');
      Writeln('Coords chosen : '+sx+','+sy+'.');
      x := StrToInt(sx);
      y := StrToInt(sy);
      TTC := StrToInt(TTCs);
    end;

    Procedure ClickCoords;

    begin
      ClickMouse(x,y,true);
      Wait(1/1000);
    end;

    begin
      repeat
        ClickCoords;
        TC := TC+1;
      until(TC >= TTC);
    end.

    Work properly ?

  2. #2
    Join Date
    Aug 2009
    Location
    Inside the Matrix...yes it has me, and it has you too.
    Posts
    1,896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Maybeeeeeeeeeeeee cause you don't call 'GetCoords' at all in your main loop and it dosn't have a coordinant registered for the x, y in 'ClickCoords'?

    NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN

  3. #3
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by bionicle1800 View Post
    Maybeeeeeeeeeeeee cause you don't call 'GetCoords' at all in your main loop and it dosn't have a coordinant registered for the x, y in 'ClickCoords'?

    lold.
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  4. #4
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    Wow, obvious.

    Thanks alot, trying to get into scripting again.

  5. #5
    Join Date
    Aug 2009
    Location
    Inside the Matrix...yes it has me, and it has you too.
    Posts
    1,896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Dr D. Dervish View Post
    Wow, obvious.

    Thanks alot, trying to get into scripting again.
    lol np.

    Just checking something, does the 'TC := TC+1;' actually work? I've never seen that, shouldn't you use 'Inc(TC);'?
    NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN

  6. #6
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    Quote Originally Posted by bionicle1800 View Post
    lol np.

    Just checking something, does the 'TC := TC+1;' actually work? I've never seen that, shouldn't you use 'Inc(TC);'?
    That was what worked before Inc(TC) came .

  7. #7
    Join Date
    Aug 2009
    Location
    Inside the Matrix...yes it has me, and it has you too.
    Posts
    1,896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Dr D. Dervish View Post
    That was what worked before Inc(TC) came .
    Ah, k, Inc was old when i was new, so i don't know older methods
    NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN

  8. #8
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    Quote Originally Posted by bionicle1800 View Post
    Ah, k, Inc was old when i was new, so i don't know older methods
    Wrong about that sorry, heard it's been there for some time, so basically, before I've always been using X := X+1;

    So:

    Inc(X) = X := X+1

  9. #9
    Join Date
    May 2007
    Location
    Some where fun.
    Posts
    2,891
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by Dr D. Dervish View Post
    Wrong about that sorry, heard it's been there for some time, so basically, before I've always been using X := X+1;

    So:

    Inc(X) = X := X+1
    Ones faster then the other, but its so tiny, you couldnt come close to noticing with your eye.

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
  •