Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


VBS and IE

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,46720
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> VBS and IE
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 VBS and IE - 5/7/2007 8:27:06 AM   
  U800393

 

Posts: 5
Score: 0
Joined: 5/7/2007
Status: offline
Hello Everyone!  I'm glad I found this group - I'm new to programming in VBS andVB and I am working on a project for work.  Utizlizing VBS in IBM PCOMM Terminal emulator.  I have a peice of code that I need some help with....

   Set IE = createobject("InternetExplorer.Application")
  IE.Visible = True
  IE.Navigate "about:blank"

I can get the website to load but trying to figure out if I can target the window it opens in and if it can open in that window each time??  Any help would be much appreciated. 

Thank you,

Carl O.
 
 
Post #: 1
 
 RE: VBS and IE - 5/8/2007 12:55:11 AM   
  mcds99


Posts: 441
Score: 4
Joined: 2/28/2006
Status: offline
Is it s specific web page (intranet) or something like that?

The following will open ID and go to the website.

IE.Navigate "http://www.visualbasicscript.com"

_____________________________

Sam

Keep it Simple Make it Fun KiSMiF

(in reply to U800393)
 
 
Post #: 2
 
 RE: VBS and IE - 5/8/2007 4:19:12 AM   
  U800393

 

Posts: 5
Score: 0
Joined: 5/7/2007
Status: offline
Sam:

THanks for the reply - I got that part ok....my IE session will open and pop the correct page.  What I am trying to do is have the page open in the same browser window each time.  I want it to check and see if a browser window is already open (title something) and then if so open in that window if not open new browers....hope I'm making it clear.  THanks for the help.

Carl Osburn

(in reply to mcds99)
 
 
Post #: 3
 
 RE: VBS and IE - 5/8/2007 9:41:34 AM   
  Skie

 

Posts: 58
Score: 0
Joined: 3/2/2006
Status: offline
You looking for something like this?


      

< Message edited by Skie -- 5/8/2007 9:43:40 AM >

(in reply to U800393)
 
 
Post #: 4
 
 RE: VBS and IE - 5/8/2007 10:01:03 AM   
  dm_4ever


Posts: 2724
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
Just wanted to add that on my pc with WinXP with IE 7...had to change Microsoft Internet Explorer to Windows Internet Explorer

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to Skie)
 
 
Post #: 5
 
 RE: VBS and IE - 5/8/2007 10:27:35 AM   
  Skie

 

Posts: 58
Score: 0
Joined: 3/2/2006
Status: offline
You could add an InStr to the name where it looks for "Internet Explorer".  That should work for all versions of IE.

(in reply to dm_4ever)
 
 
Post #: 6
 
 RE: VBS and IE - 5/9/2007 1:18:54 AM   
  U800393

 

Posts: 5
Score: 0
Joined: 5/7/2007
Status: offline
THanks guys - I copied the code made a few adjustments and it works like a charm.  I do have one follow up question - how do I control closing that browswer window after I am done using it???

Carl Osburn

(in reply to dm_4ever)
 
 
Post #: 7
 
 RE: VBS and IE - 5/9/2007 9:22:53 AM   
  Skie

 

Posts: 58
Score: 0
Joined: 3/2/2006
Status: offline

      

This is a pretty good reference for the ie object.
http://msdn2.microsoft.com/en-us/library/Aa752084.aspx

< Message edited by Skie -- 5/9/2007 9:24:16 AM >

(in reply to U800393)
 
 
Post #: 8
 
 RE: VBS and IE - 5/10/2007 8:12:02 AM   
  U800393

 

Posts: 5
Score: 0
Joined: 5/7/2007
Status: offline
Thanks again - i used the sample code and I was able to get the browser to close.  Works like a charm.  THanks you to everyone that helped me out. 

Carl Osburn

_____________________________

Carl Osburn
Business Process Improvement
Vertex Outsourcing
cosburn@nisource.com

(in reply to Skie)
 
 
Post #: 9
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> VBS and IE Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts