Jump to content

Recommended Posts

Posted

Is it possible to play SWF files inside of a new window using autoit. I want to create a like a script where it locates SWF files in the specified folder and open it up in a new box to play them.

Posted

ty for help

Could you give me a quick example of how to get get it to work with a swf?

Example should be easy to find: check helpfile of the aforementioned _IECreateEmbedded() command. Danwili says you need to navigate to the swf. So I suggest changing the url in the _IECreateEmbedded() example to the swf that you want.

Roses are FF0000, violets are 0000FF... All my base are belong to you.

Posted

Sure,

modified from help file:

#include <GUIConstants.au3>
#include <IE.au3>

_IEErrorHandlerRegister ()

$oIE = _IECreateEmbedded ()
GUICreate("Embedded Web control Test", 640, 580, _
        (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _
        $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 600, 360)
_IENavigate ($oIE, "C:\murlocrev.swf")

; Waiting for user to close the window
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
    EndSelect
WEnd
GUIDelete()
Exit

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
×
×
  • Create New...