Results 1 to 13 of 13

Thread: Make Simba Type

  1. #1
    Join Date
    Dec 2011
    Posts
    257
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Make Simba Type

    Hello. How would you make Simba write something? Not on RuneScape, but just in general. Thanks

  2. #2
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    check out SendKeys and typesend etc...

  3. #3
    Join Date
    Dec 2011
    Posts
    257
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by footballjds View Post
    check out SendKeys and typesend etc...
    I've done some research on it and found this:

    Simba Code:
    SendKeys(keys, pause=0.05, with_spaces=False,
             with_tabs=False, with_newlines=False,
             turn_off_numlock=True)

    and being an absolute beginner, I just put:

    Simba Code:
    SendKeys("Hello", pause=0.05, with_spaces=False,
             with_tabs=False, with_newlines=False,
             turn_off_numlock=True)

    And obviously it came up error. What school boy error am I doing?

  4. #4
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Simba Code:
    program new;
    begin
      ActivateClient;//Activate's the target client(whichever window you drug the
      //crosshairs over

      //Wait's 1 second after activating the target client
      Wait(1000);

      //Types the text out waiting 155 ms in between each key
      SendKeys('Hello, I''ll type into any targeted window...', 155);

    end.

  5. #5
    Join Date
    Nov 2010
    Posts
    305
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Simba Code:
    SendKeys('Your text here', 10);
    KeyDown(13); //Pressing down enter
    KeyUp(13); //Unpressing enter

    The 10 is how fast it types in milliseconds.

  6. #6
    Join Date
    Dec 2011
    Posts
    257
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by footballjds View Post
    Simba Code:
    program new;
    begin
      ActivateClient;//Activate's the target client(whichever window you drug the
      //crosshairs over

      //Wait's 1 second after activating the target client
      Wait(1000);

      //Types the text out waiting 155 ms in between each key
      SendKeys('Hello, I''ll type into any targeted window...', 155);

    end.
    That worked, thanks

    Quote Originally Posted by Failure View Post
    Simba Code:
    SendKeys('Your text here', 10);
    KeyDown(13); //Pressing down enter
    KeyUp(13); //Unpressing enter

    The 10 is how fast it types in milliseconds.
    I don't get the

    Simba Code:
    Pressing down enter

    And thanks

  7. #7
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Quote Originally Posted by sm321 View Post
    That worked, thanks
    Sure thing (:

    Quote Originally Posted by sm321 View Post
    I don't get the

    Simba Code:
    Pressing down enter

    And thanks
    13 is the identifier for the "enter key".
    Therefore keydown(13); simulates a pushing the enter key down.

  8. #8
    Join Date
    Dec 2011
    Posts
    257
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by footballjds View Post
    Sure thing (:


    13 is the identifier for the "enter key".
    Therefore keydown(13); simulates a pushing the enter key down.
    So if I typed 13, it would start?

  9. #9
    Join Date
    Feb 2007
    Location
    Lux Aeterna
    Posts
    171
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by sm321 View Post
    So if I typed 13, it would start?
    I don't understand what you're saying. If you ran the script:
    Code:
    program new;
    begin
       Keydown(13);
    
    end.
    Your computer will think that you hit the "enter" key (also known as the "return" key)
    Although, I don't believe Keydown and Keyup are the commands you wanted to know about.

    {If you are wanting to know more, visit http://www.asciitable.com/
    You will see that 13 corresponds to carriage return (the enter key)
    Also, Type keydown(VK_
    Then hold down ctrl and press space.
    If you don't want to know more about them, then ignore this..
    }
    Last edited by Mushini; 02-28-2012 at 08:32 AM.
    Triggers..

  10. #10
    Join Date
    Dec 2011
    Posts
    257
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Mushini View Post
    I don't understand what you're saying. If you ran the script:
    Code:
    program new;
    begin
       Keydown(13);
    
    end.
    Your computer will think that you hit the "enter" key (also known as the "return" key)
    Although, I don't believe Keydown and Keyup are the commands you wanted to know about.
    EDIT: I actually need to use that now. It will save me some lines of my script. I just simply put [SIMBA]KeyDown(13);]/SIMBA]

    and it worked, thanks
    Last edited by sm321; 02-28-2012 at 08:33 AM.

  11. #11
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    be sure to use keyUp as well. You probably don't want to hold enter down for infinity... :P

  12. #12
    Join Date
    Dec 2011
    Posts
    257
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by footballjds View Post
    be sure to use keyUp as well. You probably don't want to hold enter down for infinity... :P
    I take it you just do:

    Simba Code:
    KeyDown(13);
    KeyUp(13);

    Off-topic, can I add your MSN?

  13. #13
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Quote Originally Posted by sm321 View Post
    I take it you just do:

    Simba Code:
    KeyDown(13);
    KeyUp(13);
    Yes, although I'd add a wait between the two. Theoretically what you have would be pressing the enter key and releasing it instantly. A few millisecond wait should be find. If you're trying to be human then add a little randomness to it.

    Quote Originally Posted by sm321 View Post
    Off-topic, can I add your MSN?
    Absolutely, I'm never on it unless someone asks for help though. So you'll have to PM me on here if you want me to get on MSN.

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
  •