Sign in to follow this  
Followers 0
realkiller

inet tab

2 posts in this topic

i got now this source with some help off you guys but i need one thing more to know, i wanna create buntons for each site but it clicked on it it must stay there, sow if i click on a other bunton with a difrent site then the other site stays in background how can i do that

#include <GUIConstants.au3>
$oIE = ObjCreate("Shell.Explorer.2")
#include <Date.au3>





GUICreate ("24 Help", @DesktopWidth, @DesktopHeight, 0, 0, $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)
$GUIActiveX      = GUICtrlCreateObj   ( $oIE,     10, 40 ,  @DesktopHeight, @DesktopWidth)
$GUI_Button_Back    = GuiCtrlCreateButton   ("Back",     205, 3, 100,  30)
$GUI_Button_Forward = GuiCtrlCreateButton   ("Forward", 305, 3, 100,  30)
$GUI_Button_Home    = GuiCtrlCreateButton   ("Home",    405, 3, 100,  30)
$GUI_Button_Stop    = GuiCtrlCreateButton   ("Stop",    505, 3, 100,  30)
GUICtrlCreateDate (@YEAR&"/"&@MON&"/"&@MDAY, 5,10,185,20 )




GUISetState ()

$oIE.navigate("www.google.nl")

While 1
    $msg = GUIGetMsg()
    
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $GUI_Button_Home
            $oIE.navigate("http://www.google.nl")

            Do 
                  Sleep(1)
            Until NOT $oIE.Busy
            $oIE.navigate("www.tweakers.net")
        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

Share this post


Link to post
Share on other sites



You probbably need several IE objects.

;Assosiate $oIE[] array with buttons
$oIE[$i] = ObjCreate("Shell.Explorer.2")

I have not tried to maintain com objects in autoit array so I don't know how it will play out. Just a sugestion :whistle:

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  
Followers 0