I'm experimenting with IE as a Loginscreen window.
I can get text to populate the window, but if I run past the size of the
window, the output is put at the bottom of the window, and the bar on the
right becomes active.
If you run the script below, you will see what I mean.

is there any way to:
A.) make the bottom lines of the screen active, so they're not printed off
of the active area?
or
B.) Make the top lines of the display scroll off the top.



'SCRIPT:

Set IE = CreateObject("InternetExplorer.Application")
ie.width=450
ie.height=450
ie.top=5
ie.left=150
ie.menubar=0
ie.statusbar=true
ie.resizable=false
ie.toolbar=0
ie.navigate ("About:blank")
ie.visible=1
ie.Document.title="Network Logon Script"
ie.Document.Body.topmargin=5
ie.Document.Body.leftmargin=5
For I = 1 to 40
Display("Line# "&I)
Next

Function Display(text)
ie.Document.Body.InsertAdjacentHTML "beforeEnd","<font face=Tahoma
color=#000066 size=2> "&text&"</font><br>"
End Function

Re: Ie as a Logon Screen Window by Al

Al
Thu Oct 23 14:30:16 CDT 2003


"Mr. Lee" <nospam@email.net> wrote in message
news:%23yMfuhZmDHA.2776@tk2msftngp13.phx.gbl...
> I'm experimenting with IE as a Loginscreen window.
> I can get text to populate the window, but if I run past the size of the
> window, the output is put at the bottom of the window, and the bar on the
> right becomes active.
> If you run the script below, you will see what I mean.
>
> is there any way to:
> A.) make the bottom lines of the screen active, so they're not printed off
> of the active area?
> or
> B.) Make the top lines of the display scroll off the top.

There are a couple of related methods provided by IE that might do the
trick, specifically scroll, scrollby, and scrollto. All three take an x,y
pair of arguments, however I am not quite sure how they are to be
understood. I would suspect that you could include something like this:

const linescroll = 100
window.scrollby(0,linescroll)

after the "InsertAdjacentHTML" call in your "Display" function, this might
do the trick. Note that I have no idea what the units are, if 100 is
enough, or even if this is scrolling in the right direction. You might be
able to deduce these things by trial and error.

/Al

>
>
>
> 'SCRIPT:
>
> Set IE = CreateObject("InternetExplorer.Application")
> ie.width=450
> ie.height=450
> ie.top=5
> ie.left=150
> ie.menubar=0
> ie.statusbar=true
> ie.resizable=false
> ie.toolbar=0
> ie.navigate ("About:blank")
> ie.visible=1
> ie.Document.title="Network Logon Script"
> ie.Document.Body.topmargin=5
> ie.Document.Body.leftmargin=5
> For I = 1 to 40
> Display("Line# "&I)
> Next
>
> Function Display(text)
> ie.Document.Body.InsertAdjacentHTML "beforeEnd","<font face=Tahoma
> color=#000066 size=2> "&text&"</font><br>"
> End Function
>
>



Re: Ie as a Logon Screen Window by Torgeir

Torgeir
Thu Oct 23 14:42:35 CDT 2003

"Mr. Lee" wrote:

> I'm experimenting with IE as a Loginscreen window.
> I can get text to populate the window, but if I run past the size of the
> window, the output is put at the bottom of the window, and the bar on the
> right becomes active.
> If you run the script below, you will see what I mean.
>
> is there any way to:
> A.) make the bottom lines of the screen active, so they're not printed off
> of the active area?
> or
> B.) Make the top lines of the display scroll off the top.

Hi

Take a look here:

http://groups.google.com/groups?selm=3E4A982A.7704AE12%40hydro.com


--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter



Ie as a Logon Screen Window by Tom

Tom
Thu Oct 23 15:02:44 CDT 2003

I didn't try it during logon, but your script did not
result in a window without a working scroll bar in my
installation (Win 2000, IE 6.o SP1).

However, the following code will scroll the window to the
bottom ...

'...
ie.Document.write "<div id=TEXT>&nbsp;</div>"
For I = 1 to 40
Display("Line# "&I)
Next
ie.Document.all.TEXT.scrollintoview false

Function Display(text)
ie.Document.all.TEXT.InsertAdjacentHTML "beforeEnd",_
"<font face=Tahoma color=#000066 size=2> " _
& text & "</font><br>"
End Function

Tom Lavedas
===========
>-----Original Message-----
>I'm experimenting with IE as a Loginscreen window.
>I can get text to populate the window, but if I run past
the size of the
>window, the output is put at the bottom of the window,
and the bar on the
>right becomes active.
>If you run the script below, you will see what I mean.
>
>is there any way to:
>A.) make the bottom lines of the screen active, so
they're not printed off
>of the active area?
>or
>B.) Make the top lines of the display scroll off the top.
>
>
>
>'SCRIPT:
>
>Set IE = CreateObject("InternetExplorer.Application")
> ie.width=450
> ie.height=450
> ie.top=5
> ie.left=150
> ie.menubar=0
> ie.statusbar=true
> ie.resizable=false
> ie.toolbar=0
> ie.navigate ("About:blank")
> ie.visible=1
> ie.Document.title="Network Logon Script"
> ie.Document.Body.topmargin=5
> ie.Document.Body.leftmargin=5
> For I = 1 to 40
> Display("Line# "&I)
> Next
>
>Function Display(text)
> ie.Document.Body.InsertAdjacentHTML "beforeEnd","<font
face=Tahoma
>color=#000066 size=2> "&text&"</font><br>"
>End Function
>
>
>.
>