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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Senkey Question

Status
Not open for further replies.

Count430

Programmer
Apr 26, 2002
127
US
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
 
does the tab work correctly in the gui? or has the tab been setup wrongly in the gui?
 
Thanks for replying, the tab works fine in the GUI, however I did notice that this tool was modified from a version with one feild named target ad resource.

It appears as if the first tool was created to discover AD resources.

The second tool looks exactly the same except for the second feild which ask for SMS collection target.

This is why it's possibly listed as the fourth object.

Even if I tab through each object, the second is the last to receive the focus.

Thanks for responding




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top