Dubler Posted August 22, 2010 Posted August 22, 2010 Hello AUTOITERS! How to add Zoom in Internet Explorer in GUI? Like in OPERA, normal IE or FIREFOX? Sorry for bad eng.
andygo Posted August 25, 2010 Posted August 25, 2010 i use a (maybe) unusual solution: just load a local html file: <iframe src="http://www.targetdomain" style="zoom:35%"></iframe> should work. here it does
zILikeAutoITz Posted December 9, 2010 Posted December 9, 2010 On 8/25/2010 at 8:59 PM, 'andygo said: i use a (maybe) unusual solution: just load a local html file: <iframe src="http://www.targetdomain" style="zoom:35%"></iframe> Should work. here it does Hi, andygo, How can i use this "html-tag", what function to get HTML-tag works under this environment ? I have searched in the helpfile and came out with _IEBodyWriteHTML() (_IEFrameGetObjByName()) and _IEDocWriteHTML(). But with the embedded IE it doesn't work, (may be i'm wrong or do something else wrong) Also i very appreciated if you (or any) show how to get "html-tag" work with IE that's embedded in the GUI (IECreateEmbedded ()) Thank you Embedded IE from Helpfile i use this code. expandcollapse popup#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <IE.au3> _IEErrorHandlerRegister () $oIE = _IECreateEmbedded () GUICreate("Embedded Web control Test", 640, 580, _ (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _ $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN) $GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 600, 360) $GUI_Button_Back = GUICtrlCreateButton("Back", 10, 420, 100, 30) $GUI_Button_Forward = GUICtrlCreateButton("Forward", 120, 420, 100, 30) $GUI_Button_Home = GUICtrlCreateButton("Home", 230, 420, 100, 30) $GUI_Button_Stop = GUICtrlCreateButton("Stop", 340, 420, 100, 30) GUISetState() ;Show GUI _IENavigate ($oIE, "http://www.autoitscript.com/wiki/Main_Page") ; Waiting for user to close the window While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $GUI_Button_Home _IENavigate ($oIE, "http://www.autoitscript.com/forum/index.php?") Case $msg = $GUI_Button_Back _IEAction ($oIE, "back") Case $msg = $GUI_Button_Forward _IEAction ($oIE, "forward") Case $msg = $GUI_Button_Stop _IEAction ($oIE, "stop") EndSelect WEnd GUIDelete() Exit
Basicz Posted December 12, 2010 Posted December 12, 2010 On 12/9/2010 at 11:40 AM, 'zILikeAutoITz said: How can i use this "html-tag", what function to get HTML-tag works under this environment ? expandcollapse popup#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <IE.au3> _IEErrorHandlerRegister () $oIE = _IECreateEmbedded () GUICreate("Embedded Web control Test", 640, 580, _ (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _ $WS_OVERLAPPEDWindOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN) $GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 600, 360) $GUI_Button_ZoomIn = GUICtrlCreateButton("ZoomIn", 10, 420, 100, 30) $GUI_Button_ZoomOut = GUICtrlCreateButton("ZoomOut", 120, 420, 100, 30) $GUI_Button_Home = GUICtrlCreateButton("Home", 230, 420, 100, 30) $GUI_Button_Stop = GUICtrlCreateButton("Stop", 340, 420, 100, 30) GUISetState() ;Show GUI _IENavigate ($oIE, "http://www.autoitscript.com/") ; Waiting for user to close the Window While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $GUI_Button_Home _IENavigate ($oIE, "http://www.autoitscript.com/") Case $msg = $GUI_Button_ZoomIn $HTMLTAG2 = '<iframe src="http://www.autoitscript.com/" style="zoom:200%"></iframe>' _IENavigate($oIE,"about:blank",1) _IEBodyWriteHTML($oIE,$HTMLTAG2) Case $msg = $GUI_Button_ZoomOut $HTMLTAG2 = '<iframe src="http://www.autoitscript.com/" style="zoom:50%"></iframe>' _IENavigate($oIE,"about:blank",1) _IEBodyWriteHTML($oIE,$HTMLTAG2) Case $msg = $GUI_Button_Stop _IEAction ($oIE, "stop") EndSelect WEnd GUIDelete() Exit [right]Sorry for my poor english(dictionary beside)[/right][center]Search before ask will helping the community of AutoIt.[/center][center]...seeking in the search forum and help-file's, with all the most answer's that i need. Hope for you too.[/center]
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