Jump to content

remove vertical scroll bar with IE.au3?


Recommended Posts

Is it possible to remove the greyed out vertical scroll bar in an IE.au3 ?

$oIE = ObjCreate("Shell.Explorer.2")

$GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 930,705)

$oIE.navigate("@ScriptDir@\test.html")

$oIE = 0

I have a page that does not require scrolling, yet a scroll bar is present.

Edited by cyanidemonkey

My AutoIt Scripts.- AutoHost and Password Enabler for Delta Force 2 Demo.| Caffine for Winamp 2.9x and WRS 2.0 | mp3 directory cleaner | CRAP DJ | A:B:J Radio Automation Software | FFMPEG batch conversion automator

Link to post
Share on other sites

Is it possible to remove the greyed out vertical scroll bar in an IE.au3 ?

$oIE = ObjCreate("Shell.Explorer.2")

$GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 930,705)

$oIE.navigate("@ScriptDir@\test.html")

$oIE = 0

I have a page that does not require scrolling, yet a scroll bar is present.

Hello,

The only thing I currently can think of is by modifing your HTML file and insert the <body scroll=no> tag.

e.g.

<html>
<body scroll=no>
test.
</body>
</html>

-Sven

Link to post
Share on other sites

Is it possible to remove the greyed out vertical scroll bar in an IE.au3 ?

$oIE = ObjCreate("Shell.Explorer.2")

$GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 930,705)

$oIE.navigate("@ScriptDir@\test.html")

$oIE = 0

I have a page that does not require scrolling, yet a scroll bar is present.

The following should work as well without modifying the HTML:
$oIE.document.body.scroll = "no"

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to post
Share on other sites

The following should work as well without modifying the HTML:

$oIE.document.body.scroll = "no"

Dale

That's even better Dale ! I should have known better: YOU are the IE-Master.

Sorry I pushed forward answering this question, I should have waited for you first.. :-)

-Sven

Link to post
Share on other sites

That's even better Dale ! I should have known better: YOU are the IE-Master.

Sorry I pushed forward answering this question, I should have waited for you first.. :-)

-Sven

Nah, come on in, the water's fine.

Welcome back to the party Sven.

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to post
Share on other sites
  • 7 years later...

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...