Results 1 to 9 of 9

Thread: In the SendKeys procedure what is the best parameters to use?

  1. #1
    Join Date
    Oct 2012
    Location
    Porto, Portugal
    Posts
    218
    Mentioned
    0 Post(s)
    Quoted
    42 Post(s)

    Question In the SendKeys procedure what is the best parameters to use?

    What are the best parameters to use in keywait and keymodwait, and how does that work?

    Simba Code:
    SendKeys(s: String; keywait: LongInt; keymodwait: LongInt);

    Thanks in advance

  2. #2
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    About 30ms is good for both of them, plus randomness of course. 30 + Random(20) would do fine for both.

    If this is for RS though, use TypeSend.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  3. #3
    Join Date
    Oct 2012
    Location
    Porto, Portugal
    Posts
    218
    Mentioned
    0 Post(s)
    Quoted
    42 Post(s)

    Default

    it is for action bar shortkey and menu selection on RS, not for talking. Is it still better to use TypeSend?

  4. #4
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    I'd go for TypeSendEx. The number of parameters for SendKeys varies depending on which version of Simba the user is running, and TypeSendEx takes this into account. I assume you don't want to press enter, so set the second parameter as false.

    Eg:
    Simba Code:
    TypeSendEx('1', False);
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  5. #5
    Join Date
    Oct 2012
    Location
    Porto, Portugal
    Posts
    218
    Mentioned
    0 Post(s)
    Quoted
    42 Post(s)

    Default

    Yeah I already noticed the Enter thing and I am going for TypeSendEx.

    Thanks!

  6. #6
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default

    you could always make a case and make it really random? Less bot like

  7. #7
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Quote Originally Posted by xtrapsp View Post
    you could always make a case and make it really random? Less bot like
    Make what really random?
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  8. #8
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default

    Quote Originally Posted by Rich View Post
    Make what really random?
    the keywait,

    one case 1-10 seconds
    second case 50-100 seconds.

  9. #9
    Join Date
    Oct 2012
    Location
    Porto, Portugal
    Posts
    218
    Mentioned
    0 Post(s)
    Quoted
    42 Post(s)

    Default

    I dont think 1-10 ms is very human-like () but it's a good idea.

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
  •