Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Checking dialog if available
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
verts




PostPosted: Mon Feb 12, 2007 11:03 am   Post subject: Checking dialog if available

hello
im asking to help you because cant solve this problem alone.
my script should wait for a dialog object and then execute
Dim oShell
Set oShell = WScript.CreateObject ("WScript.shell")
oShell.run "C:\WINDOWS\certmgr.exe -c C:\Windows\ocesca.cer -s Root -add"
wscript.sleep 1000
oShell.AppActivate "Security Warning"
oshell.SendKeys "%y", True


as you can see, scripts adds a certificate, and press Yes as confirming. But it depends of computer performance and i need to remove this dependecy. If dialog appears it presses Yes. How to do it?

thanks in advance
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: