×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Launch IE Maximized??
2

Launch IE Maximized??

Launch IE Maximized??

(OP)
OK guys and dolls I am stumped.

Here is the code snippet.

CODE

            Set objIE=WScript.createobject("internetexplorer.application","objIE")
            objIE.visible = True
            objIE.TheaterMode = False
            objIE.AddressBar = True  
            objIE.StatusBar = False
            objIE.MenuBar = True
            objIE.FullScreen = False
            objIE.Navigate "about:blank"
            Do Until objIE.ReadyState = 4
                WScript.Sleep 100
            Loop
            URL = "//" & UserComputer & "/CoreDirector_" & strCoreServerVersion &_
            "/login.aspx?BK=" & strBank
            objIE.Navigate(URL)

This launches IE and goes to the correct page, no problem.  What I want it to do is also maximize the browser.

The 2 modes that I thought would be helpful change the look and feel of the UI, TheaterMode and FullScreen.

FullSrenn turns to many things off to be useful.

Quote:


Property FullScreen As Boolean

Maximizes window and turns off statusbar, toolbar, menubar, and titlebar.

I like TheaterMode but it also changes the overall look of the "home" screen and I can't change how things look and feel without many approvals.

Any thoughts????

Thanks

John Fuhrman
Titan Global Services
www.titangs.com

RE: Launch IE Maximized??

I don't know of a way to set it to maximized.  But, I would make it appear maximized by positioning it at 0,0 and set the height and width.  If everyone uses a default resolution, you could just use something like this:

CODE

oIE.Top = 0
oIE.Left = 0
oIE.width = 1024
oIE.height = 740

RE: Launch IE Maximized??

2
This seems to do the trick:

CODE

Set objIE=WScript.createobject("internetexplorer.application","objIE")
objIE.visible = True
objIE.TheaterMode = False
objIE.AddressBar = True
objIE.StatusBar = False
objIE.MenuBar = True
objIE.FullScreen = False
objIE.Navigate "about:blank"
Do Until objIE.ReadyState = 4
WScript.Sleep 100
Loop
Set shl = WScript.CreateObject("WScript.Shell")
shl.SendKeys "% X"

URL = "www.tek-tips.com"
objIE.Navigate(URL)

Hope this helps.

vampirebat

RE: Launch IE Maximized??

the default behavior for ie explorer is to open in the same state as it was last closed. the only way that i'm aware of is, as was said before is to specify a size like skie suggested.  

RE: Launch IE Maximized??

(OP)
I believe EarthandFire's suggestion may be the answer.  We are running the RDP sessions in a Kiosk mode so that IE is the only application being launched at logon.

Thanks EarthandFire, I had thaught of using the sendkeys method but was having trouble finding the right key equivalance.

Thanks

John Fuhrman
Titan Global Services
www.titangs.com

RE: Launch IE Maximized??

earthandfile,
that's a pretty slick and ingenious way of doing it. why didn't i think of that? i've done this sendkeys thingy so much.
you deserve a star.

RE: Launch IE Maximized??

Ironically, that method only works for me on an old "unprotected" machine.  It won't work on any of my other machines because ZoneAlarm intercepts the attempt by Sendkeys to communicate with another program (and therefore has the effect of consuming the keystrokes wink)

vampirebat

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close