Jump to content
Sign in to follow this  
rzzrnt

Send key to flash game

Recommended Posts

rzzrnt

Hi all,

sorry for my english.

I'm trying to automize a flash game. In this game is necessary to take 'pressed' right arrow.

i've used Send("{RIGHT down}") function.

The problem is that when the window lose focus (because i want work on another window) the effect of send key is losen.

can u help me?

Share this post


Link to post
Share on other sites
rawrr

What flash game?

And look at the helpfile for send commands.

Edited by rawrr

Share this post


Link to post
Share on other sites
Richard Robertson

You missed the point. The OP wants to continue sending the key to the flash game while working on something else. This sounds like a bot though.

Use ControlSend instead. If that fails, the game may stop responding because it is no longer active. This would be due to implementation in the flash system, and you can't do anything about it.

Share this post


Link to post
Share on other sites
jamesemerson

You missed the point. The OP wants to continue sending the key to the flash game while working on something else. This sounds like a bot though.

Use ControlSend instead. If that fails, the game may stop responding because it is no longer active. This would be due to implementation in the flash system, and you can't do anything about it.

I've been scouring the Forum researching Flash window interaction because I recently posted with the thread "Invisible commands" to say that I was hoping for a way to send text to a Flash window in the background. Some MVPs suggested using ControlSend, but the Flash Player 9 doesn't give Control info to the AutoIt Window Info program, so the Control portion of ControlSend can't be identified and doesn't seem to work. I've looked and looked for a workaround, but haven't found it. Am I missing something (besides just being a floundering, knuckled-headed newbie)?

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  

×