Jump to content

How to get rid of some stuff from my GUI


Go to solution Solved by HiNoTora,

Recommended Posts

Posted (edited)

Id like to be removed from my GUI:

1 Maximize window button, cos my GUI looks UGLY if its maximized

2 Re-sizeing Window ( same reason )

3 Scroll bars, those aren't needed cos rest of web content isn't needed

4 add Window to stay top of other window

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

_IEErrorHandlerRegister()

Global $oIE1 = _IECreateEmbedded(), $oIE2 = _IECreateEmbedded()
Global $iGUIWidth = @DesktopWidth-30, $iGUIHeight = @DesktopHeight-70
$hGUI = GUICreate("LIVE FOREX SIGNALS", 650, 350, 0, 0, $WS_EX_TOPMOST + $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
GUICtrlCreateObj($oIE1, 1, 1, 600, 150)
GUICtrlCreateObj($oIE2, -70, 151, 720, 200)
GUISetState()
_IENavigate($oIE1, "http://fxsignals.fxmarketleaders.com/shortsignalsng.aspx")
_IENavigate($oIE2, "http://fxsignals.fxmarketleaders.com/ClosedNG.aspx")
While 1
    Local $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
    EndSelect
WEnd
GUIDelete()
Exit
Edited by HiNoTora
Posted

1) and 2) can be found on the forum. This issues have been discussed multiple times.

3) I'm not sure you can modify an embedded ActiveX control

4) Set extended style to $WS_EX_TOPMOST in GUICreate

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.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 (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

 

Posted

something like this should work...

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

_IEErrorHandlerRegister()

Global $oIE1 = _IECreateEmbedded(), $oIE2 = _IECreateEmbedded()
Global $iGUIWidth = @DesktopWidth-30, $iGUIHeight = @DesktopHeight-70
$hGUI = GUICreate("LIVE FOREX SIGNALS", 650, 350, 0, 0,BitXOR($GUI_SS_DEFAULT_GUI, $WS_MINIMIZEBOX))
GUICtrlCreateObj($oIE1, 1, 1, 600, 150)
GUICtrlCreateObj($oIE2, -70, 151, 720, 200)
GUISetState()


_IENavigate($oIE1, "http://fxsignals.fxmarketleaders.com/shortsignalsng.aspx")
_IENavigate($oIE2, "http://fxsignals.fxmarketleaders.com/ClosedNG.aspx")

_HideScroll($oIE1)
_HideScroll($oIE2)
While 1
    Local $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
    EndSelect
WEnd
GUIDelete()
Exit


Func _HideScroll($Temp_Object)
Local $hText = 'var temp_h1 = document.body.clientHeight;'& _
'var temp_h2 = document.documentElement.clientHeight;'& _
'var isXhtml = (temp_h2<=temp_h1&&temp_h2!=0)?true:false;'& _
'var htmlbody = isXhtml?document.documentElement:document.body;'& _
'htmlbody.style.overflow = "hidden";'
$Temp_Object.document.parentwindow.execscript($hText,"javascript")
EndFunc

Saludos

  • Solution
Posted

something like this should work...

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

_IEErrorHandlerRegister()

Global $oIE1 = _IECreateEmbedded(), $oIE2 = _IECreateEmbedded()
Global $iGUIWidth = @DesktopWidth-30, $iGUIHeight = @DesktopHeight-70
$hGUI = GUICreate("LIVE FOREX SIGNALS", 650, 350, 0, 0,BitXOR($GUI_SS_DEFAULT_GUI, $WS_MINIMIZEBOX))
GUICtrlCreateObj($oIE1, 1, 1, 600, 150)
GUICtrlCreateObj($oIE2, -70, 151, 720, 200)
GUISetState()


_IENavigate($oIE1, "http://fxsignals.fxmarketleaders.com/shortsignalsng.aspx")
_IENavigate($oIE2, "http://fxsignals.fxmarketleaders.com/ClosedNG.aspx")

_HideScroll($oIE1)
_HideScroll($oIE2)
While 1
    Local $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
    EndSelect
WEnd
GUIDelete()
Exit


Func _HideScroll($Temp_Object)
Local $hText = 'var temp_h1 = document.body.clientHeight;'& _
'var temp_h2 = document.documentElement.clientHeight;'& _
'var isXhtml = (temp_h2<=temp_h1&&temp_h2!=0)?true:false;'& _
'var htmlbody = isXhtml?document.documentElement:document.body;'& _
'htmlbody.style.overflow = "hidden";'
$Temp_Object.document.parentwindow.execscript($hText,"javascript")
EndFunc

Saludos

That Is good, Thank you so much  :)

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
×
×
  • Create New...