Jump to content

Autorefresh page


 Share

Go to solution Solved by HiNoTora,

Recommended Posts

How i can make my UI to autorefresh each 10 sec? Both IE content.

#include <GUIConstantsEx.au3>
#include <EditConstants.au3>
#include <GUIEdit.au3>
#include <ScrollBarConstants.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>


Opt("GUIOnEventMode", 1)
_IEErrorHandlerRegister()
Global $oIE1 = _IECreateEmbedded(), $oIE2 = _IECreateEmbedded()
Global $hGUI = GUICreate("LIVE FOREX SIGNALS", 600, 300, -1, -1, -1, $WS_EX_TOPMOST)
GUICtrlCreateObj($oIE1, 1, 1, 600, 150)
GUICtrlCreateObj($oIE2, -90, 151, 740, 200)
GUISetState()
_IENavigate($oIE1, "http://fxsignals.fxmarketleaders.com/shortsignalsng.aspx")
_IENavigate($oIE2, "http://fxsignals.fxmarketleaders.com/ClosedNG.aspx")

GUISetOnEvent($GUI_EVENT_CLOSE, "Terminate")
GUISetState(@SW_SHOW, $hGUI)

Global $start = 0, $wait = 1
While 1
    If $start = 1 Then _MainProgram()
    Sleep(300)
wend
Func _MainProgram()
   
   
      
EndFunc   ;==>_MainProgram



Func Terminate()
    Exit
 EndFunc   ;==>Terminate
Edited by HiNoTora
Link to comment
Share on other sites

Call function _IEAction with the "refresh" parameter every 10 seconds.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

Call function _IEAction with the "refresh" parameter every 10 seconds.

Sry but i dont get it, im reall bad at coding, but im learning, slowly tho >.<

Please give coppy paste friendly.. thats how i have make all my scripts, and later i test/try em by delete stuf out, add new and test

Link to comment
Share on other sites

Example. Details can be found here.

_IEAction($oIE1, "refresh")

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

  • Solution

 

#include <GUIConstantsEx.au3>
#include <EditConstants.au3>
#include <GUIEdit.au3>
#include <ScrollBarConstants.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>


Opt("GUIOnEventMode", 1)
_IEErrorHandlerRegister()
Global $oIE1 = _IECreateEmbedded(), $oIE2 = _IECreateEmbedded(), $oIE3 = _IECreateEmbedded()
Global $hGUI = GUICreate("LIVE FOREX SIGNALS", 600, 600, -1, -1, -1, $WS_EX_TOPMOST)
GUICtrlCreateObj($oIE1, 1, 1, 600, 200)
GUICtrlCreateObj($oIE2, 1, 205, 740, 200)
GUICtrlCreateObj($oIE3, -90, 405, 740, 200)
GUISetState()
_IENavigate($oIE1, "http://fxsignals.fxmarketleaders.com/shortsignalsng.aspx")
_IELoadWait($oIE1, 2000)
_IENavigate($oIE2, "http://fxsignals.fxmarketleaders.com/Longsignalsng.aspx")
_IELoadWait($oIE2, 2000)
_IENavigate($oIE3, "http://fxsignals.fxmarketleaders.com/ClosedNG.aspx")
_IELoadWait($oIE3, 2000)
GUISetOnEvent($GUI_EVENT_CLOSE, "Terminate")
GUISetState(@SW_SHOW, $hGUI)




 While 1
   _IEAction($oIE1, "refresh", 5000)
   _IEAction($oIE2, "refresh", 5000)
   _IEAction($oIE3, "refresh", 5000)   
   wend
      




Func Terminate()
    Exit
 EndFunc   ;==>Terminate
 

 

Not working, and when i open My GUI, then  $oIE1 and $oIE2 dsnt load correctly but $oIE3 does. And $oIE1 has scrollbar but $oIE2 and $oIE3 dsnd >.< and that refresh thing sold be on 10 seconds 

Edited by HiNoTora
Link to comment
Share on other sites

_IEAction only accepts 2 parameters. Can't test at the moment but I'm sure the script you posted only gives you a syntax error.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

:)

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...