Sign in to follow this  
Followers 0
Geft

Need help botting flash games

5 posts in this topic

I'm trying to figure out how to 'cheat' at flash games by scripting. For example, this flash game http://www.i-am-bored.com/bored_link.cfm?link_id=34530 is exploitable. I've beaten the game, but I couldn't get past the last level (pass: impossible) until I got my brother to do the top half.

In theory it's easy, but for some reason I couldn't get it to work. Here's how I tried running the script.

Sleep(3000) //time to switch windows
MouseClick("left", 388, 663) //click to begin game
Sleep(1000) //wait for the right time
Send ("z {UP}") //send the top character down and bottom character up

I got it right all the way to begin game by clicking with the mouse, and the game starts. From then on, the script doesn't seem to be working. Occasionally one of the characters move, but not both simultaneously. I tried separate Send lines but it didn't work, neither did adding some Sleep in-between. Could it be a limitation of the flash player or am I not doing it right?

Share this post


Link to post
Share on other sites



Are you sure that z up moves a character ? z up means that the z key will be released if it was pressed down with z {down}

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Take a look at SendKeyDownDelay. You are sending the keys almost instantly so the game won't be able to pick them up.

@MasterX

Send("{z UP}") <--- release key

Send("z {UP}") <--- send z and then Up

Edited by Pain

Share this post


Link to post
Share on other sites

Take a look at SendKeyDownDelay. You are sending the keys almost instantly so the game won't be able to pick them up.

how long should the delay be for a typical flash game?

Share this post


Link to post
Share on other sites

Try and see what's work best for you but around 100-200ms should be enough.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0