Sign in to follow this  
Followers 0
SwordElf

How to send Key Click to the flash in web?

2 posts in this topic

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?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

read this bout bot,,,

http://www.autoitscript.com/forum/index.php?showannouncement=11&f=2

Edited by rvn

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