Sign in to follow this  
Followers 0
HiNoTora

disable right mouse usage in my gui

2 posts in this topic

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

#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

Share this post


Link to post
Share on other sites



Try downloading this UDF:

Here's your script modified:

#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

RAID Calculator | Software Installer

The truth has been suppressed since the dawn of time.

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