Results 1 to 21 of 21

Thread: keys pressed

  1. #1
    Join Date
    Feb 2007
    Location
    Colorado, USA
    Posts
    3,716
    Mentioned
    51 Post(s)
    Quoted
    624 Post(s)

    Default keys pressed

    F1, F2, F3, F4, F5 are all hotkeys in runescape

    can these be input in a script to press those buttons? they do things like open your bag.. etc (nothing too amazing)

    I'd like to try a random script to either click the bag OR press the function key to open the bag.. to kind of randomize it..

    or is this created somewhere?

    I don't really know what I'm doing so any help is appreciated.. I have steam, skype, aim, msn, ventrilo, can get irc but the tutorial I saw is an outdated one I guess


    Also this is one of the only tutorials that are sticked throughout this whole site I haven't read:
    http://villavu.com/forum/showthread.php?t=59400
    Currently reading it.. have to pick someone up at the airport though but I'll be back soon

    if anyone can give tips for NOOBS, much appreciated.. I learn a lot better by seeing something done and learning how that works, thanks
    thanks
    The only true authority stems from knowledge, not from position.

    You can contact me via matrix protocol: @grats:grats.win or you can email me at the same domain, any user/email address.

  2. #2
    Join Date
    Dec 2010
    Posts
    808
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Get on msn and I will help you make it

    -Boom

  3. #3
    Join Date
    Feb 2006
    Location
    Helsinki, Finland
    Posts
    1,395
    Mentioned
    30 Post(s)
    Quoted
    107 Post(s)

    Default

    Hello grats,

    Here is couple ways:

    SCAR Code:
    begin
      SendKeysVB('{F1}', False);
      KeyDown(112); // F1 (113 = F2, 114 = F3, 115 = F4.. ETC.
      KeyUp(112); // F1 (113 = F2, 114 = F3, 115 = F4.. ETC.
    end.

  4. #4
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    KeyDown(VK_F1);
    KeyUp(VK_F1);

  5. #5
    Join Date
    Feb 2008
    Posts
    748
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    KeyDown(VK_F1);
    KeyUp(VK_F1);
    And those are known as virtual keys if the OP wants more information on them.

  6. #6
    Join Date
    Feb 2007
    Location
    Colorado, USA
    Posts
    3,716
    Mentioned
    51 Post(s)
    Quoted
    624 Post(s)

    Default

    Thanks everyone with those keydown / keyup "virtual keys"


    Quote Originally Posted by Dynamite View Post
    Get on msn and I will help you make it

    -Boom
    I'm on msn like 24/7 I added you twice it said it had errors not sure what's wrong






    edit:

    where are the functions for the antibans for stuff like clicking your bag.. and the right clicking and "examine" (I think it's called)

    for srl or reflection whichever has them
    Last edited by grats; 02-05-2011 at 02:37 AM.
    The only true authority stems from knowledge, not from position.

    You can contact me via matrix protocol: @grats:grats.win or you can email me at the same domain, any user/email address.

  7. #7
    Join Date
    Nov 2008
    Location
    Melbourne, Australia
    Posts
    2,240
    Mentioned
    3 Post(s)
    Quoted
    11 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    KeyDown(VK_F1);
    KeyUp(VK_F1);
    You should add like a wait(25+random(25)); in the middle of that
    Click here to find out how to get full screen without members! | Click here to check out my Ultimate Bitmap Tutorial! Edited to work with Simba! |

  8. #8
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    Check Antiban.scar in /core/.

  9. #9
    Join Date
    Feb 2007
    Location
    Colorado, USA
    Posts
    3,716
    Mentioned
    51 Post(s)
    Quoted
    624 Post(s)

    Default

    Quote Originally Posted by i luffs yeww View Post
    Check Antiban.scar in /core/.
    Thanks very much!

    Quote Originally Posted by cycrosism View Post
    You should add like a wait(25+random(25)); in the middle of that
    Yes I was learning from a script which made two constants

    and then used 1 for the 25 and the other for the (25)

    so people could change, but should I do it this way so it isn't option to change how much it does it?
    The only true authority stems from knowledge, not from position.

    You can contact me via matrix protocol: @grats:grats.win or you can email me at the same domain, any user/email address.

  10. #10
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    It shouldn't be an option, really. It's based on typing speeds and how long it takes for someone to push a key down and release it. Check Text.scar (also in /core/) if you wanna see how TypeSend types, if you want it to be pretty realistic. It shouldn't matter too much though. You could also time yourself, if you wanna do some scripting to do some scripting.

    (Hint, use a while loop.)

    Also, this isn't about reflection, as suggested in the title.

  11. #11
    Join Date
    Feb 2007
    Location
    Colorado, USA
    Posts
    3,716
    Mentioned
    51 Post(s)
    Quoted
    624 Post(s)

    Default

    Quote Originally Posted by i luffs yeww View Post
    It shouldn't be an option, really. It's based on typing speeds and how long it takes for someone to push a key down and release it. Check Text.scar (also in /core/) if you wanna see how TypeSend types, if you want it to be pretty realistic. It shouldn't matter too much though. You could also time yourself, if you wanna do some scripting to do some scripting.

    (Hint, use a while loop.)

    Also, this isn't about reflection, as suggested in the title.
    I had multiple questions, I thought one was reflection :P


    Yea I got the wait time spot confused, I meant put a wait time in between when it clicks a bag / presses the button

    my bad


    edit: I will be adding more questions to the thread though so eventually there will be plenty of reflection questions I assume
    Last edited by grats; 02-05-2011 at 07:07 AM.
    The only true authority stems from knowledge, not from position.

    You can contact me via matrix protocol: @grats:grats.win or you can email me at the same domain, any user/email address.

  12. #12
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    I can help you whenever I'm on. msn works best.

    panic._@live.com.

    But the forums are a nice place to ask things that aren't just a simple "what does out of range mean" etc. (simple things that have pretty simple answers, or that have been answered before on the forums). Always good to use the search button as well.

  13. #13
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Quote Originally Posted by cycrosism View Post
    You should add like a wait(25+random(25)); in the middle of that
    I were just telling him how to do it.

  14. #14
    Join Date
    Feb 2007
    Location
    Colorado, USA
    Posts
    3,716
    Mentioned
    51 Post(s)
    Quoted
    624 Post(s)

    Default

    So to have the antiban.scar procedures work within a script all I have to do is have the srl included
    {$i SRL\SRL.scar}

    and then do like this
    Simba Code:
    begin
      case random(2) of
      0 :  Begin
              BoredHuman;
            end;

      1 :  Begin
              RandomRClick;
             end;
      end;
    end.


    or is there a different / better way to do that?



    Simba Code:
    procedure AntiBan;
    begin
      case Random(5) of
      0 : begin
            KeyDown(VK_a);
            wait(25+random(55));
            KeyUp(VK_a);
          end;
      1 : begin
            KeyDown(VK_b);
            wait(25+random(55));
            KeyUp(VK_b);
          end;
      2 : begin
            KeyDown(VK_c);
            wait(25+random(55));
            KeyUp(VK_c);
          end;
      3 : begin
            KeyDown(VK_d);
            wait(25+random(55));
            KeyUp(VK_d);
          end;
      4 : begin
            KeyDown(VK_e);
            wait(25+random(55));
            KeyUp(VK_e);
          end;
      end;
    end;


    procedure RandomAntiBan;
    begin
      wait(120000+random(180000));
      AntiBan;
      Writeln('### Anti Ban in effect! ###');
    end;


    begin
    RandomAntiBan;
    end.


    This is what I have, what would be the best way to add in the "BoredHuman" (which rotates the camera right?)
    and
    "RandomRClick"

    do I need to have more of the antiban for stuff to work?
    The only true authority stems from knowledge, not from position.

    You can contact me via matrix protocol: @grats:grats.win or you can email me at the same domain, any user/email address.

  15. #15
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    BoredHuman rotates the camera and right clicks, iirc.

    Have some cases in the antiban simply wait, have some do BoredHuman, have some only rotate, have some only click, etc.

    And it also depends on what you're doing. For example, if you're mining ess, you may want to do more antiban like random right clicking when you're mining, and move the camera around and etc. but not when you're walking, but if you're doing something like thief, you may not want as much antiban that will mess up your timing/seeing stuff.

    Very poor examples, but you should get the point. And, a very important thing to think about is.. what do you do? What do you do when you play legit to get through long periods of time.

    Best of luck! ^^

  16. #16
    Join Date
    Feb 2007
    Location
    Colorado, USA
    Posts
    3,716
    Mentioned
    51 Post(s)
    Quoted
    624 Post(s)

    Default

    Quote Originally Posted by i luffs yeww View Post
    BoredHuman rotates the camera and right clicks, iirc.

    Have some cases in the antiban simply wait, have some do BoredHuman, have some only rotate, have some only click, etc.

    And it also depends on what you're doing. For example, if you're mining ess, you may want to do more antiban like random right clicking when you're mining, and move the camera around and etc. but not when you're walking, but if you're doing something like thief, you may not want as much antiban that will mess up your timing/seeing stuff.

    Very poor examples, but you should get the point. And, a very important thing to think about is.. what do you do? What do you do when you play legit to get through long periods of time.

    Best of luck! ^^
    I was asking how to add them into the script, I'm not sure how I get the timings & the be as human like as possible.. I've averaged 100+ runescape players who play legitly and got a good ratio on using hotkeys vs clicking etc just need to know how I would add boredhuman into the bigger script I have, I'm not sure on the best way to add it
    The only true authority stems from knowledge, not from position.

    You can contact me via matrix protocol: @grats:grats.win or you can email me at the same domain, any user/email address.

  17. #17
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    Have it in the antiban procedure as one of the case statements and call antiban when you find appropriate. Not sure what else to say :x

  18. #18
    Join Date
    Feb 2007
    Location
    Colorado, USA
    Posts
    3,716
    Mentioned
    51 Post(s)
    Quoted
    624 Post(s)

    Default

    Quote Originally Posted by i luffs yeww View Post
    Have it in the antiban procedure as one of the case statements and call antiban when you find appropriate. Not sure what else to say :x
    Oh ok, well I was debating whether or not to have it there or have it be a totally different antiban on its own and have both running together instead of only 1 every 2-5 minutes having the buttons every 2-5 minutes and having boredhuman / random click every 1-3 minutes or something totally different
    The only true authority stems from knowledge, not from position.

    You can contact me via matrix protocol: @grats:grats.win or you can email me at the same domain, any user/email address.

  19. #19
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    One should suffice.

  20. #20
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    Is there a way for scar to find which key is entered without iskeydown(x)? What I mean is similar to scanf or cin.get on c/c++?
    Oh Hai Dar

  21. #21
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    IT COULD HAPPEN, MAIN. a

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
  •