rage Posted July 12, 2007 Share Posted July 12, 2007 (edited) Hi all,I have searched and read many topics on this but cannot really find what I am after. The few that seemed to do what I wanted I couldn't understand. I want be able to embed either mygame.swf saved in a directory into a GUI or be ablw to embed http://www.mysite.com/mygame.swf into a directory. Please help me, I have looked at example scripts but cannot get them to work.Kind regardsRageEdit*I am using Auto it V3 Edited July 12, 2007 by rage Link to comment Share on other sites More sharing options...
PsaltyDS Posted July 12, 2007 Share Posted July 12, 2007 I want be able to embed either mygame.swf saved in a directory into a GUI or be ablw to embed "http://www.mysite.com/mygame.swf" into a directory.What does it mean to "embed ... into a directory"?I am using Auto it V3Not enough info, are you running the latest production version, which is 3.2.4.9 (at least it was last week).If what you wanted was to embed an IE window in a GUI, and have that IE window play a .SWF file, it shouldn't be hard. But I'm not sure that's what you meant... Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Valuater Posted July 12, 2007 Share Posted July 12, 2007 Lesson #2 from... "Welcome to Autoit 1-2-3" expandcollapse popup; This is a demonstration for Object Create. #include <GuiConstants.au3> ; include GUI constants when using a GUI. GUICreate("Object Test", 614, 370) ; Create the GUI with a title of, Object Test. GUISetFont(9, 400, -1, "MS Sans Serif") ; set the font size to number 9, the weight, and the style. $B_oIE1 = ObjCreate("Shell.Explorer.2") ; create the, explorer object. $Breaktime = GUICtrlCreateObj($B_oIE1, -1, -1, 500, 370) ; create the, embeded, object control. ; set the text in a variable called html. $html = "about:CONGRADULATIONS!!! - You have passed, Level I Basic Exam......... To Show Autoit can be Fun Too!!!..... Please Press *Enter Break*" & @CR $B_oIE1.navigate ( $html) ; navigate the explorer object to the html variable, ( known as about ). ; create the two buttons. $BrkStart = GUICtrlCreateButton("&Enter Break", 515, 300, 80, 25) $BrkEnd = GUICtrlCreateButton("&Exit", 515, 330, 80, 25) GUISetState() ; set the GUI as Visible. While 1 ; start loop, so the script continues and does not exit. $msg = GUIGetMsg() ; listen for a message. If $msg = $GUI_EVENT_CLOSE Or $msg = $BrkEnd Then ; if exit is pressed, then exit the script. Exit EndIf If $msg = $BrkStart Then ; if this button is pushed, we navigate the object to the game site. $B_oIE1.navigate ('http://www.neave.com/games/tictactoe/game.php') EndIf WEnd ; end loop. ; remember, how to search help? it was on the second page! ; you can search the word, "Object". #cs Astroids also http://www.neave.com/games/asteroids/game.php #ce 8) 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