realkiller Posted November 12, 2006 Share Posted November 12, 2006 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 expandcollapse popup#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 Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2 Link to comment Share on other sites More sharing options...
Uten Posted November 12, 2006 Share Posted November 12, 2006 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 Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling 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