Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Filling out a form automatically

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Filling out a form automatically
  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 >>
 Filling out a form automatically - 12/17/2004 6:42:49 AM   
  ZenKenobi

 

Posts: 10
Score: 0
Joined: 8/3/2004
From: USA
Status: offline
I need to write a script that logs into a specific web page. The script I have so far is this

'create internet explorer object
set ie = createobject("internetexplorer.application")

'set window size
ie.top = 5
ie.left = 80
ie.width = 1194
ie.height = 955

'navigate to the right page
ie.navigate "Http:the page I want to go to"
ie.visible = true

'wait 10 seconds for page to display login prompt
wscript.sleep 10000

'type username into default text box

'navigate to password textbox

'enter password into said textbox

'hit "enter"


The trouble I am having is entering text into the default textbox. What function do I use? After that I must hit "tab" programatically, enter text into the next field, then hit "enter" programmatically.
Is this possible?

_____________________________

Erik Gardner
 
 
Post #: 1
 
 Re: Filling out a form automatically - 12/17/2004 7:01:32 AM   
  Snipah


Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline

      

(in reply to ZenKenobi)
 
 
Post #: 2
 
 Re: Filling out a form automatically - 12/17/2004 7:04:16 AM   
  Snipah


Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
don't forget:

      

(in reply to ZenKenobi)
 
 
Post #: 3
 
 Re: Filling out a form automatically - 12/17/2004 8:34:54 AM   
  ZenKenobi

 

Posts: 10
Score: 0
Joined: 8/3/2004
From: USA
Status: offline
Yo Snipah,
It works like a charm. Thanks for all your help!

(in reply to ZenKenobi)
 
 
Post #: 4
 
 
 
  

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 >> Filling out a form automatically 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