Results 1 to 15 of 15

Thread: Need a id for the key 'f11' and 'f12'

  1. #1
    Join Date
    Dec 2008
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Need a id for the key 'f11' and 'f12'

    EDIT:SOLVED FOR NOW =]


    what are the IDs for all the keys like say i want the script to press 'f11'?

    or when i press 'f11' i want the script to do this.....etc....you get the point


    thanks

    Ok what i need now is how would i put it so when i press f11 it would do....

    SCAR Code:
    repeat
        Wait(500+random(50));
       until (i press the f11 key) then

    i want the script to wait until someone presses f11 and then it does the next part of the script. what would i put in the '(i press the f11 key)' spot?
    http://i35.tinypic.com/fw0epu.gif

    Current Project: Maybe I'll Finish SRL JNR COMP Script...
    Status: On Hold for a while
    Needs:To Be Finished

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

    Default

    open scar, press F1, Scroll down.

  3. #3
    Join Date
    Dec 2008
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    no f12? or f11?
    http://i35.tinypic.com/fw0epu.gif

    Current Project: Maybe I'll Finish SRL JNR COMP Script...
    Status: On Hold for a while
    Needs:To Be Finished

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

    Default

    thought it was in there. Ill find it.

  5. #5
    Join Date
    Dec 2008
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by N C D S View Post
    thought it was in there. Ill find it.
    alright thanks..i'll be checking up
    http://i35.tinypic.com/fw0epu.gif

    Current Project: Maybe I'll Finish SRL JNR COMP Script...
    Status: On Hold for a while
    Needs:To Be Finished

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

    Default

    Thanks to ZephyrsFury for telling me
    SCAR Code:
    KeyDown(vk_F11);
    Wait(50);
    KeyUp(vk_F11);

    or if you including SRL then you can use:
    SCAR Code:
    TypeByte(vk_F11);
    but TypeByte is SRL.

  7. #7
    Join Date
    Dec 2008
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by N C D S View Post
    Thanks to ZephyrsFury for telling me
    SCAR Code:
    KeyDown(vk_F11);
    Wait(50);
    KeyUp(vk_F11);

    or if you including SRL then you can use:
    SCAR Code:
    TypeByte(vk_F11);
    but TypeByte is SRL.
    alright tyvm and thank ZephyrsFury for me


    now i can get on with my script.

    EDIT: does TypeByte press and release the key or....?
    http://i35.tinypic.com/fw0epu.gif

    Current Project: Maybe I'll Finish SRL JNR COMP Script...
    Status: On Hold for a while
    Needs:To Be Finished

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

    Default

    Quote Originally Posted by maksimka View Post
    alright tyvm and thank ZephyrsFury for me


    now i can get on with my script.

    EDIT: does TypeByte press and release the key or....?
    Press and release.
    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

  9. #9
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    IsFkeyDown(Key number) checks to see if the key is down. I think that's what you wanted.

    ~Sandstorm

  10. #10
    Join Date
    Dec 2008
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Sandstorm View Post
    IsFkeyDown(Key number) checks to see if the key is down. I think that's what you wanted.

    ~Sandstorm

    not exactly but closer...check my first post i edited to better detail to what i really want =O
    http://i35.tinypic.com/fw0epu.gif

    Current Project: Maybe I'll Finish SRL JNR COMP Script...
    Status: On Hold for a while
    Needs:To Be Finished

  11. #11
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Then I posted exactly what you want ^.^.

    SCAR Code:
    Repeat
      Wait(10);
    Until(IsFkeyDown(11))
    //rest of code here

  12. #12
    Join Date
    Mar 2008
    Location
    ::1
    Posts
    915
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I think this is what you want?
    SCAR Code:
    repeat
      // Your code here.
    until(IsFKeyDown(11));
    When the user presses F-11 it will break out of the loop. I think that's what you want.

    Records and Types Save Code (and make you look better)
    Quote Originally Posted by Wizzup? View Post
    Is it possible to make Runescape a 2D game with this?... That would greatly simplify... Just about anything.

  13. #13
    Join Date
    Sep 2008
    Posts
    155
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i believe these are the number codes for the function keys (though you could probably solve this problem a number of ways):

    Code:
    F1 - 112
    F2 - 113
    F3 - 114
    F4 - 115
    F5 - 116
    F6 - 117
    F7 - 118
    F8 - 119
    F9 - 120
    F10 - 121
    F11 - 122
    F12 - 123
    also i'm pretty sure there are a few threads on this else where on the forums. remember to search first!
    Current Project - Superheater :: Mithril Bars - Should be ready for Members application soon

  14. #14
    Join Date
    Dec 2008
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    alrighty thanks alot guys and sorry sandstorm didnt exactly know how to use the code you gave me int he first place lol. but now i get it =]
    http://i35.tinypic.com/fw0epu.gif

    Current Project: Maybe I'll Finish SRL JNR COMP Script...
    Status: On Hold for a while
    Needs:To Be Finished

  15. #15
    Join Date
    Mar 2007
    Location
    England
    Posts
    274
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    repeat
    something
    until (isfkeydown(12))

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
  •