Sign in to follow this  
Followers 0
cyanidemonkey

remove vertical scroll bar with IE.au3?

8 posts in this topic

#1 ·  Posted (edited)

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

Share this post


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

Share this post


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

Share this post


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

Share this post


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

Share this post


Link to post
Share on other sites

I've seen this piece of code alot on the forums,

However, It only hides/deletes the scrollbars when my cursor get's over them.

Any sollution to that?

Share this post


Link to post
Share on other sites

Skorm, please don't necro 7 year old threads. If you have a question, open a new thread.


When you're dead, you don't know you're dead - it's only difficult for those that know you. It's the same way when you're stupid...

My Scripts: SCCM UDFInclude Source with Compiled Script, Windows Firewall UDF

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