fireking300 Posted June 11, 2008 Share Posted June 11, 2008 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. Link to comment Share on other sites More sharing options...
DW1 Posted June 11, 2008 Share Posted June 11, 2008 Yep just use _IECreateEmbedded() and navigate to the swf. AutoIt3 Online Help Link to comment Share on other sites More sharing options...
fireking300 Posted June 11, 2008 Author Share Posted June 11, 2008 (edited) ty for help Could you give me a quick example of how to get get it to work with a swf? Edited June 11, 2008 by fireking300 Link to comment Share on other sites More sharing options...
SadBunny Posted June 11, 2008 Share Posted June 11, 2008 ty for helpCould 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. Link to comment Share on other sites More sharing options...
fireking300 Posted June 11, 2008 Author Share Posted June 11, 2008 Could you create a short .au3 the name of the swf is murlocrev Link to comment Share on other sites More sharing options...
DW1 Posted June 11, 2008 Share Posted June 11, 2008 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 AutoIt3 Online Help Link to comment Share on other sites More sharing options...
fireking300 Posted June 11, 2008 Author Share Posted June 11, 2008 tyvm it helped alot 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