mlewis412 Posted January 28, 2015 Posted January 28, 2015 (edited) Hey Guys, I was creating a browser refresher where the application has two embedded browsers and browser 1 will refresh every 10 seconds. I got it working (somewhat) but browser 2 looks like its refeshing and turns the page white until I scroll over it with my mouse. Can some one test and take a look at it. Please be aware this is really unfinished so not all the codes in place yet. Thanks guys (and gals!) EDIT: $oIE1.refresh worked for what I was trying to accomplish expandcollapse popup#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <IE.au3> HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") HotKeySet("{F9}", "ShowMe") Example() Func Example() Local $idButton_Back, $idButton_Forward Local $idButton_Home, $idButton_Stop, $iMsg $oIE1 = _IECreateEmbedded() $oIE2 = _IECreateEmbedded() GUICreate("Browser Refresher",@DesktopWidth , @DesktopHeight,0,0) GUICtrlCreateObj($oIE1, 1, 1, 900, 360) GUICtrlCreateObj($oIE2, 950, 1, 900, 1000) $soundtest = GUICtrlCreateButton ("Sound Test",350,450,100,30) $start = GuiCtrlCreateButton ("Start Refresher",10,450,100,30) $stop = GuiCtrlCreateButton ("Stop Refresher",10,480,100,30) GUISetState(@SW_SHOW) ;Show GUI $oIE1.navigate("https://login.salesforce.com/") $oIE2.navigate("https://login.salesforce.com/") ; Loop until the user exits. While 1 $iMsg = GUIGetMsg() Select Case $iMsg = $GUI_EVENT_CLOSE ExitLoop Case $iMsg = $stop ExitLoop Case $iMsg = $soundtest SoundPlay("C:\Windows\media\tada.wav") Case $iMsg = $start MsgBox (0,"The Refresher has Started!","The Refresher has started!") While $start Sleep(10000) $oIE1.navigate("https://login.salesforce.com/") Wend EndSelect WEnd GUIDelete() EndFunc ;==>Example Edited February 10, 2015 by mlewis412
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