Jump to content

Click on flash button in gui


Recommended Posts

what i am trying to do is insert a flash object in a gui that has a button and when you click that button do something in autoit (not in the flash itself)

i tried more than one way but i couldn't find a way to get what i need from the flash object or the gui itself :P

#include <GUIConstants.au3>
Global $oRP = ObjCreate("ShockwaveFlash.ShockwaveFlash")
GUICreate ("Flash", 112, 60, -1, -1)
GUIRegisterMsg(0x0202,"test")
$GUIActiveX    = GUICtrlCreateObj( $oRP, 10, 10 , 80 , 29)
With $oRP
    .bgcolor = "#000000"
    .Movie = @ScriptDir&'\asdf.swf';
    .ScaleMode = 2
    .Loop = False
    .wmode = "transparent"
    .FlashVars = ""
EndWith
GUISetState ()
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg=$GUIActiveX
            MsgBox(0 , "" , "click")
    EndSelect
WEnd
$oRP = 0
GUIDelete ()
Exit
Func test($1,$2,$3,$4)
    MsgBox(0 ,"" , $1 & @CRLF & $2 & @CRLF & $3 & @CRLF & $4)
EndFunc

asdf.rar

Only two things are infinite, the universe and human stupidity, and i'm not sure about the former -Alber EinsteinPractice makes perfect! but nobody's perfect so why practice at all?http://forum.ambrozie.ro

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...