Results 1 to 7 of 7

Thread: Hotkeys Ideas/Help

  1. #1
    Join Date
    Oct 2006
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Hotkeys Ideas/Help

    Hey so I recently came back to RS/scar and I have a script that I used to use with Fkey hotkeys. Now of course RS uses them for opening gametabs, and so I want something new to use.

    What I'd like is to use the ins, home, page up, delete, end and page down (easy reach from arrow keys). I found what I believe to be the keycodes for them, but they don't work

    Code:
    Procedure Keys;  // 45=Ins, 36=Home, 33=PgU, 46=Del, 35=End, 34=PgD
    begin
    if IsKeyDown(chr(45)) then Key[1]:=True
    else if IsKeyDown(chr(36)) then Key[2]:=True
    else if IsKeyDown(chr(33)) then Key[3]:=True
    else if IsKeyDown(chr(46)) then Key[4]:=True
    else if IsKeyDown(chr(35)) then Key[5]:=True
    else if IsKeyDown(chr(34)) then Key[6]:=True;
    Wait(10);
    end;
    Any suggestions on alternate keys or a way to make them work?

  2. #2
    Join Date
    Feb 2007
    Location
    Toronto, Ontario, Canada
    Posts
    586
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    There aren't actually any ASCII codes for those keys that you specified. I know that you can call KeyDown(VK_INSERT), but for some reason, IsKeyDown(chr(VK_INSERT)); doesn't work. :s ?

  3. #3
    Join Date
    Oct 2006
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Interesting... thanks for taking a look. I found those codes by googling "enter 13" as I knew that key code lol.

    Edit: I just found an updated SCAR manual, which has a lot more info on this... unfortunately it doesn't seem like anything exists for the keys I'm looking for.

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

    Default

    Quote Originally Posted by Macros View Post
    There is no set standard for the values that function keys generate. The same function key can even generate different values, (for different applications), on some systems. You can even program what value the function keys produce, so it's very variable!

    There may be some other way to do it, (I hope there is personally, because I have run into this problem before as well), but I dunno...

    Hope that helps.

    This is something I posted on a different thread.

    And I heard you could use "VK_INSERT" etc too, but I think SCAR only accepts the "dec" ASCII code...
    Current Project - Superheater :: Mithril Bars - Should be ready for Members application soon

  5. #5
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Quote Originally Posted by stopish View Post
    .
    Wow bro, six threads posted with "." Spam much? Delete your replies.

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


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

    Default

    You're not talking to me are you? I don't understand that post... The quote leads to this thread, but no-one here's name is stopish?
    Current Project - Superheater :: Mithril Bars - Should be ready for Members application soon

  7. #7
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    No, I wasn't talking to you. Somebody deleted his posts. He was just posting "." on every thread.

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. GameTab + GameTab2 - Hotkeys
    By Sandstorm in forum Research & Development Lounge
    Replies: 10
    Last Post: 11-01-2008, 03:59 PM
  2. Ideas for Bux ?
    By Chaom in forum News and General
    Replies: 3
    Last Post: 01-28-2008, 03:58 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
  •