D
dsmtaylor007
Hello, I was recently working on a script & couldnt figure out how to address the fact of the following.
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "certmgr.msc",1 , true
WshShell.AppActivate "certmgr"
WScript.Sleep 1000
WshShell.SendKeys "{RIGHT 3}"
WScript.Sleep 1000
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "^A"
WshShell.SendKeys "{DEL}"
WshShell.SendKeys "{ENTER}"
WScript.Sleep 1000
WshShell.SendKeys "%fx"
SendKeys will work to simulate keystrokes If I use a sleep Delay, but I was wondering how I could avoid using soo many sleep commands, . This will allow me to automatically clear personal store certificates in certmgr.exe & make things efficent on a slow machine if it happens.
Thank You. Any Help would be appreciated.
Continue reading...
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "certmgr.msc",1 , true
WshShell.AppActivate "certmgr"
WScript.Sleep 1000
WshShell.SendKeys "{RIGHT 3}"
WScript.Sleep 1000
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "^A"
WshShell.SendKeys "{DEL}"
WshShell.SendKeys "{ENTER}"
WScript.Sleep 1000
WshShell.SendKeys "%fx"
SendKeys will work to simulate keystrokes If I use a sleep Delay, but I was wondering how I could avoid using soo many sleep commands, . This will allow me to automatically clear personal store certificates in certmgr.exe & make things efficent on a slow machine if it happens.
Thank You. Any Help would be appreciated.
Continue reading...