Sign in to follow this  
Followers 0
HiNoTora

How to get rid of some stuff from my GUI

4 posts in this topic

#1 ·  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

Share this post


Link to post
Share on other sites



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 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

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

Share this post


Link to post
Share on other sites

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  :)

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