Results 1 to 4 of 4

Thread: How to use keyboard functions in a script..

  1. #1
    Join Date
    Jul 2007
    Location
    NSW, Australia
    Posts
    62
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    How to use keyboard functions in a script..

    Hey everyone,

    I'm working on an Auto Stun script, and was wondering how I can press F7 and, if possible, numlock 5.. (I specifically need F7, not Gametab(7))

    If you could help with either of these, please do so in a post.

    Thanks in advance

  2. #2
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    I don't think that's possible to push down F7 and not open up the 7th tab, considering they key is mapped to that tab.

    You can find a list of key codes here, that you can then use with KeyDown, KeyUp, and the like.
    :-)

  3. #3
    Join Date
    Jul 2007
    Location
    NSW, Australia
    Posts
    62
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Method View Post
    I don't think that's possible to push down F7 and not open up the 7th tab, considering they key is mapped to that tab.

    You can find a list of key codes here, that you can then use with KeyDown, KeyUp, and the like.

    Ok thanks heaps, I was after TypeByte(VK_F7). And I'll probs just use ClickMouse.

    Thanks again.

  4. #4
    Join Date
    Oct 2007
    Location
    england
    Posts
    200
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    all i know is u can do:
    SCAR Code:
    IsFKeyDown(7);
    thats if u press the F7 key ur self so you could use it like:
    SCAR Code:
    repeat
            if (FindColorTolerance(x, y, yellowdot, 1, 1, 571, 358, 5)) Then

              begin
              Mouse(x,y,2,2,true);
              wait(1000+random(500));

                end else
                  begin
                  GameTab(7);
                  wait(500);
                  end;
                 

                       
                        until (IsFKeyDown(7));

    and that would end the repeat loop
    i dont think i hav awnsered ur qustion but it must be a function like tht
    Quote Originally Posted by ham? View Post
    i didnt merder the fukin english language it im just talkin gangsta!!
    which none of u would no coz ur all fukin nerds

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Using your Keyboard in a Script.
    By Exist2inspire in forum OSR Help
    Replies: 5
    Last Post: 12-22-2007, 04:29 AM
  2. Keyboard!
    By Here in forum News and General
    Replies: 16
    Last Post: 07-14-2007, 10:13 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
  •