Jump to content
Sign in to follow this  

Browser Refresher Help

Recommended Posts

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

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>

HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
HotKeySet("{F9}", "ShowMe")


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


    ; Loop until the user exits.
    While 1
        $iMsg = GUIGetMsg()

            Case $iMsg = $GUI_EVENT_CLOSE
             Case $iMsg = $stop
             Case $iMsg = $soundtest
            Case $iMsg = $start
                   MsgBox (0,"The Refresher has Started!","The Refresher has started!")
                While $start




EndFunc   ;==>Example
Edited by mlewis412

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  

  • Create New...