Sign in to follow this  
Followers 0
HiNoTora

Autorefresh page

8 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



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


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Example. Details can be found here.

_IEAction($oIE1, "refresh")

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

 

#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

Share this post


Link to post
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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
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.

solved it, got all done, thank you.

Share this post


Link to post
Share on other sites

:)


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

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