Jump to content
Sign in to follow this  
fireking300

Is it possible?

Recommended Posts

fireking300

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.

Share this post


Link to post
Share on other sites
fireking300

ty for help

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

Edited by fireking300

Share this post


Link to post
Share on other sites
SadBunny

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.

Share this post


Link to post
Share on other sites
fireking300

Could you create a short .au3 the name of the swf is murlocrev

Share this post


Link to post
Share on other sites
DW1

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

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  

×