Results 1 to 8 of 8

Thread: How do I send a key press to the game?

  1. #1
    Join Date
    Jan 2012
    Posts
    64
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How do I send a key press to the game?

    Like.. if I wanted to switch tab using F4, how do I press F4 to get it to the magic tab?

  2. #2
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    keydown(vk_f4);
    wait(30+random(40));
    keyup(vk_f4);

  3. #3
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Or "TypeByte(VK_F4);"

  4. #4
    Join Date
    Jan 2012
    Posts
    64
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for the help.

  5. #5
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    function FTab(Tab: Integer):

  6. #6
    Join Date
    Jan 2012
    Posts
    64
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for the help guys!
    I have another small question, I don't think it's worth making an extra thread for.

    How do I make the bank withdraw all items instead of just 28 items?

    WithdrawEx(BankSlotX, BankSlotY, 28, []);

    is what I'm currently using.

  7. #7
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    WithdrawEx(BankSlotX, BankSlotY, -1, []);

    iirc.

  8. #8
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    ^ is for withdraw all items except for last 1

    using 0 is for regular withdraw all

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
  •