Sign in to follow this  
Followers 0
JohnOne

Unnecessary scroll bar

1 post in this topic

#1 ·  Posted (edited)

When I put an explorer object in a gui and go to a page where

no vertical scroll is needed, it still shows up.

$hGui = GUICreate("",400,600,100,50)
$Obj = ObjCreate("Shell.Explorer.2")
$CtrlObj = GUICtrlCreateObj($Obj,5,5,350,590)
GUISetState()
$Obj.Navigate2("http://www.google.com")
Sleep(10000)

Is there any way to omit it ?

EDIT:

Also tried this way

#include <IE.au3>
$hGui = GUICreate("",400,600,100,50)
$Obj = ObjCreate("Shell.Explorer.2")
$CtrlObj = GUICtrlCreateObj($Obj,5,5,350,590)
GUISetState()
;$Obj.Navigate2("http://www.google.com")
_IENavigate($Obj, "www.google.com")
_IELoadWait($Obj)
$Obj.document.body.scroll = "no"
Sleep(10000)
Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

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