Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with cutting and pasteing text to IE textbox with vbscript 1

Status
Not open for further replies.

davidm174

Programmer
Aug 20, 2007
1
US
I need help starting an IE webpage, navigate to a specific page, pasteing a user name and pawwsord specified in the script, then hit submit. The code I have thus far is:

username = "username"
password = "password"

Set objIE = CreateObject("InternetExplorer.Application")
objIE.Navigate "about:blank"
objIE.document.parentwindow.clipboardData.SetData "text", username
//I really dont know what the line(objIE.document.parentwindow.clipboardData.SetData "text", username) does so if that can be explaned I'd really like that


Set objExplorer = CreateObject("InternetExplorer.Application")
objExplorer.Navigate "some website"
objExplorer.Visible = 1
objExplorer.Height = 600
objExplorer.Width = 900
While Busy = 1
WEnd

objExplorer.Write username //give error

So far all it does is open IE and navigate to the site i want but thats as far as i know. I'm really new at this so please help!!!!!

Thanks much
 
Very little practically can be accomplished without knowing the logon page's design. Automating cut-and-paste type operations with vbscript won't carry far.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top