zeroZshadow Posted December 20, 2006 Share Posted December 20, 2006 Hi there, after using the search function for some time with no result, i'm here to post my question its bin a long time since i used autoit so i don't know if its possible to open en webpage INSIDE the gui. I don't want to open a new IE or Firefox window, i need to load the page inside the gui. like u make a editbox. My reason is that the pages i load will have flashmovies that are used in the program. but i don't want the whole browser around it. please help zero *If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip... Link to comment Share on other sites More sharing options...
Valuater Posted December 20, 2006 Share Posted December 20, 2006 With 386 posts, i would think you would know how to read the help file straight from help expandcollapse popup#include <GUIConstants.au3> ; Simple example: Embedding an Internet Explorer Object inside an AutoIt GUI ; ; The full example is available in the test\ActiveX directory (TestXInternet.au3) ; ; See also: http://msdn.microsoft.com/workshop/browser/webbrowser/reference/objects/internetexplorer.asp $oIE = ObjCreate("Shell.Explorer.2") ; Create a simple GUI for our output 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 ) $GUI_Button_Back = GuiCtrlCreateButton ("Back", 10, 420, 100, 30) $GUI_Button_Forward = GuiCtrlCreateButton ("Forward", 120, 420, 100, 30) $GUI_Button_Home = GuiCtrlCreateButton ("Home", 230, 420, 100, 30) $GUI_Button_Stop = GuiCtrlCreateButton ("Stop", 330, 420, 100, 30) GUISetState () ;Show GUI $oIE.navigate("http://www.autoitscript.com") ; Waiting for user to close the window While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $GUI_Button_Home $oIE.navigate("http://www.autoitscript.com") Case $msg = $GUI_Button_Back $oIE.GoBack Case $msg = $GUI_Button_Forward $oIE.GoForward Case $msg = $GUI_Button_Stop $oIE.Stop EndSelect Wend GUIDelete () Exit 8) Link to comment Share on other sites More sharing options...
zeroZshadow Posted December 20, 2006 Author Share Posted December 20, 2006 o man how could i miss that... i feel soooo bad. thanks allot man *If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip... Link to comment Share on other sites More sharing options...
DaleHohm Posted December 20, 2006 Share Posted December 20, 2006 Note that a similar example for _IECreateEmbedded includes some error handling that may be important to you. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
zeroZshadow Posted December 20, 2006 Author Share Posted December 20, 2006 thanks guys. after a fine day of practising i'm almost back to my usual level some question. 1. Can i remove the scroll in the object ? Its not needed and looks pretty ugly. 2. How can u make it flat ? It has a 3d edge now, wich won't look good i'f i am going to skin the program. thank for helping me agian *If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip... Link to comment Share on other sites More sharing options...
GaryFrost Posted December 20, 2006 Share Posted December 20, 2006 thanks guys.after a fine day of practising i'm almost back to my usual level some question.1. Can i remove the scroll in the object ? Its not needed and looks pretty ugly.2. How can u make it flat ? It has a 3d edge now, wich won't look good i'f i am going to skin the program.thank for helping me agian Yes you can remove the scroll, I don't remember the exact code, but it would have to be done after the page is done loading if remember correctly.Not sure about the second one. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
zeroZshadow Posted December 20, 2006 Author Share Posted December 20, 2006 thanks, i'll try to look at it again. its so much fun to see people from "the old days" again XD *If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip... Link to comment Share on other sites More sharing options...
GaryFrost Posted December 20, 2006 Share Posted December 20, 2006 thanks, i'll try to look at it again.its so much fun to see people from "the old days" again XDTake a look at: http://www.autoitscript.com/forum/index.ph...st&p=165549 SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
DaleHohm Posted December 21, 2006 Share Posted December 21, 2006 Take a look at: http://www.autoitscript.com/forum/index.ph...st&p=165549Prompted by this pointer, I just updated the example that Gary and I worked out in that post (to use features in more recent versions of IE.au3).Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
zeroZshadow Posted December 21, 2006 Author Share Posted December 21, 2006 alright, the scroll bar is totaly gone now works great. i also made the list i used flat with setstyle, but this doesn't seem to work on an object . any way how i can make it flat instead of "sunken edge" ? *If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip... Link to comment Share on other sites More sharing options...
DaleHohm Posted December 21, 2006 Share Posted December 21, 2006 Answer depends on whether you need to affect the AutoIt GUI or the embedded browser... do you know which it is? Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
zeroZshadow Posted December 21, 2006 Author Share Posted December 21, 2006 i don't know what u mean (i aint english, so i don't understand everything) i want to edit the looks of the browser *If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip... Link to comment Share on other sites More sharing options...
DaleHohm Posted December 21, 2006 Share Posted December 21, 2006 i don't know what u mean (i aint english, so i don't understand everything)i want to edit the looks of the browserSee if this helpsDale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
zeroZshadow Posted December 21, 2006 Author Share Posted December 21, 2006 i don't think thats what i meanhere is what i meanu can see the grey edge on the IE thingy, but i don't want the grey edge *If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip... Link to comment Share on other sites More sharing options...
Zach Posted December 30, 2006 Share Posted December 30, 2006 u can see the grey edge on the IE thingy, but i don't want the grey edge <style> body { border:0 } </style> Will work if you have no declared doc type in the page (it works with some doctypes - HTML 4.01 Transitional - for one I believe - does not work with strict and/or xhtml doctypes if I believe) 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