Geft Posted October 18, 2008 Share Posted October 18, 2008 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 upI 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? Link to comment Share on other sites More sharing options...
MasterX Posted October 18, 2008 Share Posted October 18, 2008 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} Link to comment Share on other sites More sharing options...
Pain Posted October 18, 2008 Share Posted October 18, 2008 (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 October 18, 2008 by Pain Link to comment Share on other sites More sharing options...
Geft Posted October 19, 2008 Author Share Posted October 19, 2008 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? Link to comment Share on other sites More sharing options...
Pain Posted October 20, 2008 Share Posted October 20, 2008 Try and see what's work best for you but around 100-200ms should be enough. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now