Jump to content
lastcasle

Fit to window - Embedded Website

Recommended Posts

lastcasle

Dear Friends,

I am new to AutoIt.

I am trying to embed a website as an object into a GUI

I need help with "Fit to window" ( Zoom Out ) for the website if the content of the website is larger than the GUI 

 

LS


signature.png

Share this post


Link to post
Share on other sites
Earthshine

post your script that isn't working for help with it


My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites
lastcasle
2 minutes ago, Earthshine said:

post your script that isn't working for help with it

it is from a sample file

-------------------------------------------------------------------------------------

#include <GuiConstants.au3>

GUICreate("Object - WebpageTest", 1000, 600)
GUISetFont(9, 400, -1, "MS Sans Serif")
$B_oIE3 = ObjCreate("Shell.Explorer.2")
$Breaktime = GUICtrlCreateObj($B_oIE3, 10, 10, 980, 580 )
$B_oIE3.navigate ("https://www.autoitscript.com/forum/topic/194489-fit-to-window-embedded-website/")

GUICtrlSetFont( -1, 12, 700)

GUISetState()

While 1

    $msg = GUIGetMsg()

    If $msg = $GUI_EVENT_CLOSE  Then
        Exit
    EndIf
WEnd

--------------------------------------------------------------------------------

 

LS


signature.png

Share this post


Link to post
Share on other sites
Earthshine
Posted (edited)

works for me on 2008R2 and Windows 10 (1803--Latest), well, let's see if I can zoom out

Capture.thumb.PNG.2d62e345652ea8f3394ec6d6352f4947.PNG

nope, it doesn't appear so

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites
Earthshine

I think you will need to use the newest FireFox or Chrome UDFs if you want images to work right though. There is a way to use Edge but that limits you to only Win10 type systems that support Edge browser.


My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites
lastcasle
13 hours ago, Earthshine said:

I think you will need to use the newest FireFox or Chrome UDFs if you want images to work right though. There is a way to use Edge but that limits you to only Win10 type systems that support Edge browser.

 

How to use Chrome UDFs in this script??

LS


signature.png

Share this post


Link to post
Share on other sites
Earthshine
Posted (edited)

try this

ChromeKiosk.au3

Edited by Earthshine

My resources are limited. You must ask the right questions

 

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

×