Results 1 to 6 of 6

Thread: iskeydown - need help

  1. #1
    Join Date
    Sep 2007
    Posts
    23
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default iskeydown - need help

    This is the code I made...
    But it isn't working as it should.
    It just keeps repeating the tk procedure even if the F12 key is pressed or not.

    Using Windows Vista Ultimate...

    Code:
    program New;
    
    procedure tk;
    begin
      if (isfkeydown(12)) then;
        begin
          sendkeys('/tk ')
          wait(1000)
        end;
    end;
    
    begin
    repeat
    tk;
    until(false)
    end.

  2. #2
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Dude 12 isn't f12

    You need "If IsFKeyDown(12) Then"

    Oh, sorry, didn't notice the lil lowcapz one

  3. #3
    Join Date
    Nov 2006
    Posts
    1,103
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    he has that?
    Infractions, reputation, reflection, the dark side of scripting, they are.

  4. #4
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    Do it twice to clear the keybuffer:
    SCAR Code:
    if (IsFKeyDown(12)) then
      if (IsFKeyDown(12)) then
    I made a new script, check it out!.

  5. #5
    Join Date
    Sep 2007
    Posts
    23
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Markus View Post
    Do it twice to clear the keybuffer:
    SCAR Code:
    if (IsFKeyDown(12)) then
      if (IsFKeyDown(12)) then
    Nop dosnt work....
    Pweeej help...

    Is it because i am on vista?
    I tried giving it admin privileges. and setting compatibility to xp sp 2...

  6. #6
    Join Date
    Jul 2007
    Location
    St. Louis, Missouri, USA.
    Posts
    575
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by l33t_h4x0r View Post
    This is the code I made...
    But it isn't working as it should.
    It just keeps repeating the tk procedure even if the F12 key is pressed or not.
    Code:
    program New;
    
    procedure tk;
    begin
      if (isfkeydown(12)) then;
        begin
          sendkeys('/tk ')
          wait(1000)
        end;
    end;
    
    begin
    repeat
    tk;
    until(false)
    end.
    get rid of the ; after then. If that doesn't work try this:

    SCAR Code:
    procedure TK;
    begin
      repeat
      Wait(100);
      Until(IsFKeyDown(12))
      TypeSend('/tk');
    end;

    begin
      repeat
        TK;
      until(false)
    end.

    Use TypeSend instead of SendKeys... SendKeys gets you banned. Also, work on your standards.
    -You can call me Mick-



Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Cases with IsKeyDown?
    By Sandstorm in forum OSR Help
    Replies: 4
    Last Post: 11-16-2008, 06:13 PM
  2. IsKeyDown
    By 666d3v1l666 in forum OSR Help
    Replies: 6
    Last Post: 08-29-2008, 11:34 AM
  3. What's IsKeyDown in C++ and how do I use it?
    By PwNZoRNooB in forum C/C++ Help and Tutorials
    Replies: 10
    Last Post: 08-14-2007, 05:49 AM

Posting Permissions

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