HiNoTora Posted October 29, 2013 Share Posted October 29, 2013 i got my program done. Thanks to all who helped me out so far with stuff i didnt know. For many things i asked, i didnt get answers, but some how i figured it out myself. Last thing i need is disable right mouse usage in my gui Becouse it is bossible to see source code of html on my gui expandcollapse popup#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, 500, -1, -1, -1, $WS_EX_TOPMOST) GUICtrlCreateObj($oIE1, -90, 1, 740, 150) GUICtrlCreateObj($oIE2, 1, 150, 740, 100) GUICtrlCreateObj($oIE3, 1, 250, 740, 150) GUISetState() _IENavigate($oIE1, "http://fxsignals.fxmarketleaders.com/ClosedNG.aspx") _IELoadWait($oIE1, 2000) _IENavigate($oIE2, "http://fxsignals.fxmarketleaders.com/Longsignalsng.aspx") _IELoadWait($oIE2, 2000) _IENavigate($oIE3, "http://fxsignals.fxmarketleaders.com/shortsignalsng.aspx") _IELoadWait($oIE3, 2000) GUISetOnEvent($GUI_EVENT_CLOSE, "Terminate") GUISetState(@SW_SHOW, $hGUI) While 1 _IEAction($oIE1, "refresh") Sleep(2500) _IEAction($oIE2, "refresh") Sleep(2500) _IEAction($oIE3, "refresh") Sleep(2500) wend Func Terminate() Exit EndFunc ;==>Terminate Link to comment Share on other sites More sharing options...
abberration Posted October 29, 2013 Share Posted October 29, 2013 Try downloading this UDF: Here's your script modified: expandcollapse popup#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> #include <MouseOnEvent.au3> Opt("GUIOnEventMode", 1) _IEErrorHandlerRegister() Global $oIE1 = _IECreateEmbedded(), $oIE2 = _IECreateEmbedded(), $oIE3 = _IECreateEmbedded() Global $hGUI = GUICreate("LIVE FOREX SIGNALS", 600, 500, -1, -1, -1, $WS_EX_TOPMOST) _MouseSetOnEvent($MOUSE_SECONDARYDOWN_EVENT, "_MousePrimaryDown_Event", $hGUI) ; added line GUICtrlCreateObj($oIE1, -90, 1, 740, 150) GUICtrlCreateObj($oIE2, 1, 150, 740, 100) GUICtrlCreateObj($oIE3, 1, 250, 740, 150) GUISetState() _IENavigate($oIE1, "http://fxsignals.fxmarketleaders.com/ClosedNG.aspx") _IELoadWait($oIE1, 2000) _IENavigate($oIE2, "http://fxsignals.fxmarketleaders.com/Longsignalsng.aspx") _IELoadWait($oIE2, 2000) _IENavigate($oIE3, "http://fxsignals.fxmarketleaders.com/shortsignalsng.aspx") _IELoadWait($oIE3, 2000) GUISetOnEvent($GUI_EVENT_CLOSE, "Terminate") GUISetState(@SW_SHOW, $hGUI) While 1 _IEAction($oIE1, "refresh") Sleep(2500) _IEAction($oIE2, "refresh") Sleep(2500) _IEAction($oIE3, "refresh") Sleep(2500) wend Func Terminate() Exit EndFunc ;==>Terminate Func _MousePrimaryDown_Event() ; added function MsgBox(262144, "", "Right button blocked.") EndFunc Easy MP3 | Software Installer | Password Manager 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