HiNoTora Posted October 29, 2013 Share Posted October 29, 2013 (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 October 29, 2013 by HiNoTora Link to comment Share on other sites More sharing options...
water Posted October 29, 2013 Share Posted October 29, 2013 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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Danyfirex Posted October 29, 2013 Share Posted October 29, 2013 something like this should work... expandcollapse popup#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 Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
Solution HiNoTora Posted October 29, 2013 Author Solution Share Posted October 29, 2013 something like this should work... expandcollapse popup#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 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