Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Handle Popup window using VbScript

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Handle Popup window using VbScript
  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 >>
 Handle Popup window using VbScript - 2/1/2008 3:09:33 AM   
  bengalurege

 

Posts: 0
Score: 0
Joined: 2/1/2008
Status: offline
I have very simple requirement. I am opening a intranet website using Vbscript. This website brings up a Login popup soon after the page is loaded. Now my requirement is to key in the Login and password details and click on "OK" button. Please assist me in achieving this.

This is how my "website.vbs" looks.

'Script starts here

Option Explicit
Dim objIE, objShell, strText, intConstants, strTitle, intAns, objExplorer
Dim strScriptName, strScriptPath, strScriptFolder, strExcelPath
Set objExplorer = CreateObject("InternetExplorer.Application")
objExplorer.Navigate "<Websiteaddress>"
objExplorer.ToolBar = 1
objExplorer.Visible = 1
objExplorer.StatusBar = 1
objExplorer.Width = 1000
objExplorer.Height = 700
objExplorer.Left = 0
objExplorer.Top = 0

'dont know how to proceed further after the popup apears

Note: this is not a Vbscript generated Popup

Thank you in advance
 
 
Post #: 1
 
 RE: Handle Popup window using VbScript - 2/7/2008 11:00:31 PM   
  TomRiddle


Posts: 188
Score: 4
Joined: 2/7/2008
Status: offline
This is a simple password challenge page.
Might be able to use this instead?


      

(in reply to bengalurege)
 
 
Post #: 2
 
 RE: Handle Popup window using VbScript - 2/7/2008 11:21:11 PM   
  ehvbs

 

Posts: 2173
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
Hi bengalurege,

have a look at

http://www.visualbasicscript.com/fb.aspx?m=56252

Good luck!

ehvbs

(in reply to TomRiddle)
 
 
Post #: 3
 
 
 
  

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 >> Handle Popup window using VbScript 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