novareborn
IS-IT--Management
Hi, i really could use some help, i have been working on this script for a few days now. Basically i have been creating a vbs that will log in to multiple tools within tabs if Ie. I have managed to get most of them working. My main problem is that i am trying to set a log in for the log in button does not have a id so i can not use the normal click for a id. also the page for what ever reasons always open in the background so i can not use the send keys to send a enter command once the pass is filled. can i please get some help the simple code is as follows. i stopped it after the pass part because nothing i have tried seem to work. if anyone know how to call the ie to the front then i can use the send keys or if anyone know how to make the code click the button that would be great.
Set objShell = WScript.CreateObject("WScript.Shell")
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Visible = 1
objIE.Navigate "objIE.Visible = True
Wscript.Sleep 2000
objIE.Document.All.Item("username").Value = "username"
objIE.Document.All.Item("password").Value = "pass
Set objShell = WScript.CreateObject("WScript.Shell")
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Visible = 1
objIE.Navigate "objIE.Visible = True
Wscript.Sleep 2000
objIE.Document.All.Item("username").Value = "username"
objIE.Document.All.Item("password").Value = "pass