Jump to content

How to send Key Click to the flash in web?


Recommended Posts

I'm a chinese, and my English is cool.

I get a flash rpg webgame,and how can i send the Keyboard and Mouse click to the flash?

My Code is:

_IEErrorHandlerRegister()
Opt("GUIOnEventMode", 1)

$oIE = _IECreateEmbedded()
$frmMain = GUICreate("My AutoIt", 1024, 712, _
        (@DesktopWidth - 1024) / 2, 0, _
        $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_MAXIMIZE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN);
$GUIActiveX = GUICtrlCreateObj($oIE, 0, 80, 1024, 618)

First I use:

ControlSend($frmMain, "", $GUIActiveX, "{ASC 49}")

But false,

then I use:

ControlSend("[CLASS:AutoIt v3 GUI; INSTANCE:0]", "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", "{ASC 49}")

The flashgame is also no any active.

How can i send the Keyboard and Mouse click to the flash?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...