Sign in to follow this  
Followers 0

Click on flash button in gui

1 post in this topic

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)
$GUIActiveX    = GUICtrlCreateObj( $oRP, 10, 10 , 80 , 29)
With $oRP
    .bgcolor = "#000000"
    .Movie = @ScriptDir&'\asdf.swf';
    .ScaleMode = 2
    .Loop = False
    .wmode = "transparent"
    .FlashVars = ""
GUISetState ()
While 1
    $msg = GUIGetMsg()
        Case $msg = $GUI_EVENT_CLOSE
        Case $msg=$GUIActiveX
            MsgBox(0 , "" , "click")
$oRP = 0
GUIDelete ()
Func test($1,$2,$3,$4)
    MsgBox(0 ,"" , $1 & @CRLF & $2 & @CRLF & $3 & @CRLF & $4)


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?

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