Sign in to follow this  
Followers 0
marcoauto

IE embedded with zoomout

1 post in this topic

Ciao

I have done a Gui with some button and when one of this if pressed, it sends a command to a serial switcher that change the videoserver input signal. The video server has a html page with the video embedded (like http://192.168.1.50/video.html)

I found a script in the forum that take a webpage but there are 2 problems:

1- i can't take only the portion that start at 200pixel top and 400pixel left but it takes the whole page and it starts from the top left corner

2- the page is too big and I need to reduce it to 50%.

It's possible?

This is the script that i have found for include a webpage

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

; Opt("GUIResizeMode", $GUI_DOCKBORDERS)


$GUI = GUICreate("Simple Web Browser", 500, 500, -1, -1, BitOR($WS_SIZEBOX  , $WS_CLIPCHILDREN) , $WS_EX_COMPOSITED)  ;, BitOR($WS_SIZEBOX,$WS_THICKFRAME, $WS_TABSTOP)
$object = _IECreateEmbedded ()
$object_ctrl = GUICtrlCreateObj($object, -2, -2, 500, 500)
_IENavigate($object, "http://www.autoitscript.com/forum/")
$object.document.body.scroll = "no"
$object.document.body.style.border = "0px"
GUISetState()

While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            Exit
    EndSelect
WEnd

thanks

Marco

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