Results 1 to 7 of 7

Thread: How Do I Make Simba Press A Button?

  1. #1
    Join Date
    Nov 2011
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How Do I Make Simba Press A Button?

    hey guys im making a script for a shooting game(http://www.freeonlinegames.com/game/aim-and-fire). There is just one problem. In the game you need to press spacebar to start, im not sure how to do this, i've read in other threads something about "KeyDown" but im not sure. If somebody could tell me that would be great. Ow and i don't just want to know spacebar if anybody knows how to have it type like words or do the arrowkeys that would awsome thanks and sory im new to scripting

  2. #2
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    SendKeys(" ",1);

    or

    PressKey(32);
    Working on: Tithe Farmer

  3. #3
    Join Date
    Nov 2011
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by masterBB View Post
    SendKeys(" ",1);

    or

    PressKey(32);
    thanks and if i want it type a word would i put

    SendKeys("Hello",1);
    or do i put
    SendKeys("H",1);
    SendKeys("e",1);
    SendKeys("l",1);
    SendKeys("l",1);
    SendKeys("o"1);"

  4. #4
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    SendKeys("Hello",1);

    note that the 1 here is the amount ms between key presses. Might be more human at 200-400.
    Working on: Tithe Farmer

  5. #5
    Join Date
    Nov 2011
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by masterBB View Post
    SendKeys("Hello",1);

    note that the 1 here is the amount ms between key presses. Might be more human at 200-400.
    ok thats all i needed to know To Thank you very Much

  6. #6
    Join Date
    Apr 2013
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Sorry for gravedigging but what key number is Enter?

  7. #7
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by telebrb View Post
    Sorry for gravedigging but what key number is Enter?
    TypeByte(Vk_ENTER) or PressKeys(Vk_ENTER) iirc.
    Last edited by The Mayor; 05-29-2013 at 11:27 AM.

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
  •