Jump to content

Recommended Posts

Posted

Hi, I'm giving an example code at the bottom. Can anyone explain how to do it so that the page size fits the size of the GUI window without scrolling. Thanks

#include <IE.au3>
#include <Process.au3>
Local $regValue = "0x2AF8"

RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION", _ProcessGetName(@AutoItPID), "REG_DWORD", $regValue)
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION", _ProcessGetName(@AutoItPID), "REG_DWORD", $regValue)

Global $mainwin = GUICreate("IE test", 968, 688)
Global $OBJECT = ObjCreate("Shell.Explorer.2")
Global $OBJECT_CTRL = GUICtrlCreateObj($OBJECT, 0, 0, 968, 688)

GUISetState()
_IENavigate($OBJECT, "http://www.google.pl/")


While 1
    Sleep(10)
    If GUIGetMsg() = -3 Then ExitLoop
WEnd

 

Posted

Unfortunately, it only reduces my GUICtrlCreateObj instead of matching the page to it. If this is not possible, can you remove the slider from the right side of the window from the page scroll? The GUICtrlCreateObj slider

Posted

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

You can try this:

#include <IE.au3>
#include <Process.au3>
Local $regValue = "0x2AF8"

RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION", _ProcessGetName(@AutoItPID), "REG_DWORD", $regValue)
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION", _ProcessGetName(@AutoItPID), "REG_DWORD", $regValue)

Global $mainwin = GUICreate("IE test", 968, 688)
Global $OBJECT = ObjCreate("Shell.Explorer.2")
Global $OBJECT_CTRL = GUICtrlCreateObj($OBJECT, 0, 0, 968, 688)

GUISetState()
_IENavigate($OBJECT, "http://www.google.pl/")

Sleep(1000)
;~ ControlSend('IE Test','','Internet Explorer_Server','^-')
SendKeepActive('IE Test')
Send('^-')
SendKeepActive('')

While 1
    Sleep(10)
    If GUIGetMsg() = -3 Then ExitLoop
WEnd

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...