Xand3r Posted March 6, 2009 Share Posted March 6, 2009 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 #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) EndFuncasdf.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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now