Results 1 to 7 of 7
Like Tree1Likes
  • 1 Post By Pain

Thread: Simple Key Bot - NEED HELP!

  1. #1
    Ex-Staff Member
    doubleuson is offline

    Posts
    890

    Simple Key Bot - NEED HELP!

    Hey experienced coders,
    I was playing the game Stick RPG and towards the end, you need to reach Day 2000. I am currently only at Day 250 and to achieve Day 2000 quickly, you have to just click 'sleep' many times. Another way to do it is pressing [TAB] three times, then pressing [ENTER], then [TAB] and [ENTER] again. After googling a way to do this I came across Auto Hotkey and they explained coding on Notepad in .ahk form. I got as far as typing this:

    $F1::
    Loop
    {
    if not GetKeyState("F1", "P")
    break
    Send {Tab}
    {Tab}
    {Tab}
    {Enter}
    {Tab}
    {Enter}
    }
    return

    It keeps giving me an error when it reaches the "Tab" part. The idea I'm trying to make is by holding the F1 key, it will do the TAB and ENTER process for infinite loops until I release the F1 key. Anyone care to post a corrected version to give me what I want or maybe even do it on a better programming system, it would be much appreciated.

    Thanks.
    Retired with no intention of returning. Don't remember me because you won't see me often.

  2. #2
    Senior Member
    wastedbro is offline

    Posts
    527
    Not a bad game, not sure why you would want to bot it, though.

    Regardless, this program is simple to make in any language. I suggest spending an hour or two looking at similar programs in Visual Basic and then learning how to apply it to what you want. Look up bots like this on youtube or Google. Then you can have your bot and you will learn some neat stuff.

    Alternatively, if Cheat Engine works with Stick RPG (like is does with most flash games), you can just hack your way to whatever day you want. That should only take about 30 minutes if you've never used Cheat Engine. Google it if you want to try.
    Skype - wastedbro

  3. #3
    Administrator
    Sobo is offline

    Posts
    1,163
    Your problem was you were creating a new line for each keystroke and not identifying what you wanted it to do. A few ways to fix this:
    Code:
    $F1::
    Loop
    {
    if not GetKeyState("F1", "P")
    break
    Send {Tab}
    Send {Tab}
    Send {Tab}
    Send {Enter}
    Send {Tab}
    Send {Enter}
    }
    return
    
    
    Or for better code management don't create a new instance for each..
    
    $F1::
    Loop
    {
    if not GetKeyState("F1", "P")
    break
    Send {Tab} {Tab} {Tab} {Enter} {Tab} {Enter}
    }
    return
    Either way you achieve the same thing

    Hope it helps!
    Last edited by Sobo; 11-19-2012 at 11:38 PM.
    Need to get in Contact with me?

  4. #4
    Ex-Staff Member
    doubleuson is offline

    Posts
    890
    Thanks very much, I never thought I would end up botting Stick RPG :P
    Retired with no intention of returning. Don't remember me because you won't see me often.

  5. #5
    Senior Member
    Pain is offline

    Posts
    1,564
    Quote Originally Posted by Sobo View Post
    Your problem was you were creating a new line for each keystroke and not identifying what you wanted it to do. A few ways to fix this:
    Code:
    $F1::
    Loop
    {
    if not GetKeyState("F1", "P")
    break
    Send {Tab}
    Send {Tab}
    Send {Tab}
    Send {Enter}
    Send {Tab}
    Send {Enter}
    }
    return
    
    
    Or for better code management don't create a new instance for each..
    
    $F1::
    Loop
    {
    if not GetKeyState("F1", "P")
    break
    Send {Tab} {Tab} {Tab} {Enter} {Tab} {Enter}
    }
    return
    Either way you achieve the same thing

    Hope it helps!
    I decided to make my own little tool with this =3 thanks so much Sobo

    EDIT:

    This little tool basically works for you at New Lines INC. Open up the AHK File and press F1 inside New Lines INC building and make sure you have the game window focused (so when it presses tab it doesn't tab to something like an advert or something else).

    Requirements:
    Stick RPG1 (XGen Studios - Online Flash Games - StickRPG Complete).
    An alarm clock in Stick RPG. (Costs $200 from the most bottom, right shop in game.)
    The skateboard (buy a packet of "smokes" for 10$ from the corner shop above the one where you got the alarm clock and give it to the kid on the corner)

    The higher your int the better job you get (be sure to ask for a promotion before starting the script).

    Code:
    $F1::
    Loop
    {
    Send {Tab}
    Send {Tab}
    Send {Enter}
    Send {Enter}
    Send {Enter}
    Send {Enter}
    Send {Tab}
    Send {Enter}
    Send {Tab}
    Send {Enter}
    
    Send {Tab} * the amount of items in your bag + 2 (you need to do this manually.
    
    Send {Enter}
    Send {Tab}
    Send {Tab}
    Send {Enter}
    Send {Tab}
    Send {Enter}
    Send {Tab}
    Send {Tab}
    Send {Tab}
    Send {Enter}
    Send {Tab}
    Send {Enter}
    Send {Shift down}
    Send {D down}
    Sleep 3500
    Send {D up}
    Send {S down}
    Sleep 750
    Send {S up}
    Send {Shift up}
    Send {D down}
    Sleep 100
    Send {D up}
    }
    return
    Edit2: If you become a CEO then just remove the first Send {Tab}
    Last edited by Pain; 11-23-2012 at 10:11 AM.
    doubleuson likes this.
    Tips on trading on Bot-Supply: Click Me

  6. #6
    Ex-Staff Member
    doubleuson is offline

    Posts
    890
    Quote Originally Posted by Pain View Post
    I decided to make my own little tool with this =3 thanks so much Sobo

    EDIT:

    This little tool basically works for you at New Lines INC. Open up the AHK File and press F1 inside New Lines INC building and make sure you have the game window focused (so when it presses tab it doesn't tab to something like an advert or something else).

    Requirements:
    Stick RPG1 (XGen Studios - Online Flash Games - StickRPG Complete).
    An alarm clock in Stick RPG. (Costs $200 from the most bottom, right shop in game.)
    The skateboard (buy a packet of "smokes" for 10$ from the corner shop above the one where you got the alarm clock and give it to the kid on the corner)

    The higher your int the better job you get (be sure to ask for a promotion before starting the script).

    Code:
    $F1::
    Loop
    {
    Send {Tab}
    Send {Tab}
    Send {Enter}
    Send {Enter}
    Send {Enter}
    Send {Enter}
    Send {Tab}
    Send {Enter}
    Send {Tab}
    Send {Enter}
    
    Send {Tab} * the amount of items in your bag + 2 (you need to do this manually.
    
    Send {Enter}
    Send {Tab}
    Send {Tab}
    Send {Enter}
    Send {Tab}
    Send {Enter}
    Send {Tab}
    Send {Tab}
    Send {Tab}
    Send {Enter}
    Send {Tab}
    Send {Enter}
    Send {Shift down}
    Send {D down}
    Sleep 3500
    Send {D up}
    Send {S down}
    Sleep 750
    Send {S up}
    Send {Shift up}
    Send {D down}
    Sleep 100
    Send {D up}
    }
    return
    Edit2: If you become a CEO then just remove the first Send {Tab}
    Might as well code something to play the whole game, or to uprank to get to the top of the business chain. Just ideas :P
    Retired with no intention of returning. Don't remember me because you won't see me often.

  7. #7
    Senior Member
    Pain is offline

    Posts
    1,564
    Quote Originally Posted by doubleuson View Post
    Might as well code something to play the whole game, or to uprank to get to the top of the business chain. Just ideas :P
    Easily done =3 To be honest I was thinking about making it spend 1 day working, 1 day studying int, 1 day working, 1 day exercising strength, 1 day working, 1 day going to the bar and drinking (charm) but I got side tracked o.O so far it just goes to the places (obviously it will still automatically work then go sleep and leave the hotel) without gaining charm/int/str.



    Changed it so you press the F'KEY' outside the hotel.

    F1 = Works
    F2 = Bar
    F3 = Study/Str
    F8 = Works (Uses Car)

    F1(and F8) is to my preference as I am CEO and I have 6 or 7 items in my bag =) it only gets like 2.5k a day or something dumb like that. I am going to do another F'KEY' for the caffeine pills so you can have more hours working ;p

    Code:
    $F1::
    {
    Send {Shift down}
    Send {D down}
    Sleep 3500
    Send {D up}
    Send {S down}
    Sleep 750
    Send {S up}
    Send {Shift up}
    Send {D down}
    Sleep 100
    Send {D up}
    Send {Tab}
    Send {Enter}
    Send {Enter}
    Send {Enter}
    Send {Enter}
    Send {Tab}
    Send {Enter}
    Send {Tab}
    Send {Enter}
    Send {Tab}
    Send {Tab}
    Send {Tab}
    Send {Tab}
    Send {Tab}
    Send {Tab}
    Send {Tab}
    Send {Tab}
    Send {Enter}
    Send {Tab}
    Send {Tab}
    Send {Enter}
    Send {Tab}
    Send {Enter}
    Send {Tab}
    Send {Tab}
    Send {Tab}
    Send {Enter}
    Send {Tab}
    Send {Enter}
    }
    return
    
    $F2::
    {
    Send {Shift down}
    Send {S down}
    Sleep 1000
    Send {S up}
    Send {D down}
    Sleep 2300
    Send {D up}
    Send {S down}
    Sleep 1100
    Send {A down}
    Sleep 500
    Send {S up} {A up} {Shift up}
    }
    return
    
    $F3::
    {
    Send {Shift down}
    Send {S down}
    Sleep 1000
    Send {S up}
    Send {D down}
    Sleep 2300
    Send {D up}
    Send {S down}
    Sleep 540
    Send {S up}
    Send {D down}
    Sleep 2860
    Send {D up} {W down}
    Sleep 200
    Send {W up} {Shift up}
    }
    return
    
    $F8::
    {
    Send {C}
    Send {S down}
    sleep 300
    Send {S up}
    Send {D down}
    Sleep 1500
    Send {C}
    Sleep 100
    Send {D up}
    Send {Tab}
    Send {Enter}
    Send {Enter}
    Send {Enter}
    Send {Enter}
    Send {Tab}
    Send {Enter}
    Send {Tab}
    Send {Enter}
    Send {Tab}
    Send {Tab}
    Send {Tab}
    Send {Tab}
    Send {Tab}
    Send {Tab}
    Send {Tab}
    Send {Tab}
    Send {Tab}
    Send {Enter}
    Send {Tab}
    Send {Tab}
    Send {Enter}
    Send {Tab}
    Send {Enter}
    Send {Tab}
    Send {Tab}
    Send {Tab}
    Send {Enter}
    Send {Tab}
    Send {Enter}
    }
    return
    EDIT: Tweeked a little bit of it. And now added use of car (Reward after playing for over 365 days in game).
    Last edited by Pain; 11-23-2012 at 10:01 PM.
    Tips on trading on Bot-Supply: Click Me

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •