Kiesp Posted January 12, 2007 Share Posted January 12, 2007 (edited) Hi there my happy (hopefully) autoit gurus I want to make a program that opens between 3 and 11 internet pages, but that is pretty annoying when 11 windows pops up on the screen.. so i was thinkin.. it is possible to make a GUI with the pages like in tabs ?(if thats the right word(its like windows in the gui)) thanks for reading hope u have the answer Edited January 12, 2007 by Kiesp http://www.autoitscript.com/forum/index.php?showtopic=69911 <-- Best hacker ever :D Link to comment Share on other sites More sharing options...
xcal Posted January 12, 2007 Share Posted January 12, 2007 Look up GUICtrlCreateTab in the help file. How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
Edgar Posted January 12, 2007 Share Posted January 12, 2007 Modified from help file. expandcollapse popup; ******************************************************* ; Example 1 - Trap COM errors so that 'Back' and 'Forward' ; outside of history bounds does not abort script ; (expect COM errors to be sent to the console) ; ******************************************************* ; #include <GUIConstants.au3> #include <IE.au3> Dim $aryIE[2] _IEErrorHandlerRegister () GUICreate("Embedded Web control Test", 640, 580, _ (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _ $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) $mainTab = GUICtrlCreateTab(20,20, 600, 500) GUICtrlCreateTabitem ("tab0") $aryIE[0] = _IECreateEmbedded () GUICtrlCreateObj($aryIE[0], 30, 60, 580, 450) GUICtrlCreateTabitem ("tab1") $aryIE[1] = _IECreateEmbedded () GUICtrlCreateObj($aryIE[1], 30, 60, 580, 450) GUICtrlCreateTabitem ("") $GUI_Button_Back = GUICtrlCreateButton("Back", 20, 540, 100, 30) $GUI_Button_Forward = GUICtrlCreateButton("Forward", 120, 540, 100, 30) $GUI_Button_Home = GUICtrlCreateButton("Home", 230, 540, 100, 30) $GUI_Button_Stop = GUICtrlCreateButton("Stop", 340, 540, 100, 30) GUISetState() ;Show GUI _IENavigate ($aryIE [0], "http://www.autoitscript.com") _IENavigate ($aryIE [1], "http://www.google.com") ; Waiting for user to close the window While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $GUI_Button_Home ;Add your action ;_IENavigate ($oIE[0], "http://www.autoitscript.com") Case $msg = $GUI_Button_Back ;Add your action ;_IEAction ($oIE, "back") Case $msg = $GUI_Button_Forward ;Add your action ;_IEAction ($oIE, "forward") Case $msg = $GUI_Button_Stop ;Add your action ;_IEAction ($oIE, "stop") EndSelect WEnd GUIDelete() Exit Link to comment Share on other sites More sharing options...
Zephir Posted January 12, 2007 Share Posted January 12, 2007 u can also download au3lib and look at those examples inside. theyr pretty good i think.http://www.autoitscript.com/forum/index.php?showtopic=33677 Link to comment Share on other sites More sharing options...
Kiesp Posted January 12, 2007 Author Share Posted January 12, 2007 thanks u the three of u (if thats the right phrase) i got i workin now http://www.autoitscript.com/forum/index.php?showtopic=69911 <-- Best hacker ever :D 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