Question Sending Keystrokes to Control

TEMPTii

Member
Joined
Aug 29, 2010
Messages
9
Programming Experience
1-3
Hi, I'm new here and I have a problem.

My form contains a Button and a Flash Control. The Flash Control contains a game referenced to a website. I want to send keystrokes into that control (the game) without having to be in focus. I'm not experienced in flash so when I decompiled the game, I had no idea how to script a way for it to work programatically.

Pretty much, on Button1.Click, I want to send keys into the flash game or directly to the Flash Control inside the form. Help please?
 
I've tried this method before. The flash game that I'm trying to interact with has a lot of scripts in it. It's not a normal flash game I can tell you that much so that way of communicating is out of the question. Thanks though.

It would be best that I just send keys to the flash control. The PostMessage and SendMessage functions look promising but I'm not sure how to send it to a control instead of another application.
 
Back
Top