Hello Im trying to use this script to populate two feilds on an active directory tool.
My problem is the point of scope because in the code below
I have the script placing the AD target info into the first feild "DC=Tcor,DC=dst,etc..."
The next feild ask for the target collection OU and when I use the Sendkey{Tab} command the focus jumps pass the second feild and lands on the third object which is a start button.
Here's the code Im using.
Dim ss
Dim starttime,waittime,currenttime
waittime = 5
Set ss = CreateObject("WScript.Shell")
ss.run "C:\PROGRA~1\ACCESS~1\BACKUP\MSBACKUP.EXE",1
starttime = Timer()
currenttime = starttime
Do Until currenttime-starttime > waittime
'Do nothing
currenttime = Timer()
Loop
ss.SendKeys "C%DC=Tcor,DC=dst,DC=bankofny,DC=com{Enter}%S"
Set ss = nothing
My problem is the point of scope because in the code below
I have the script placing the AD target info into the first feild "DC=Tcor,DC=dst,etc..."
The next feild ask for the target collection OU and when I use the Sendkey{Tab} command the focus jumps pass the second feild and lands on the third object which is a start button.
Here's the code Im using.
Dim ss
Dim starttime,waittime,currenttime
waittime = 5
Set ss = CreateObject("WScript.Shell")
ss.run "C:\PROGRA~1\ACCESS~1\BACKUP\MSBACKUP.EXE",1
starttime = Timer()
currenttime = starttime
Do Until currenttime-starttime > waittime
'Do nothing
currenttime = Timer()
Loop
ss.SendKeys "C%DC=Tcor,DC=dst,DC=bankofny,DC=com{Enter}%S"
Set ss = nothing