Home > Software engineering >  VBScript checkbox detection is selected
VBScript checkbox detection is selected

Time:09-24



As shown in figure, I want to by vb script to detect "always trust... "The check box is selected, and click install or not to install button,

I have a simple example, is the way of sendkey, but didn't check box is selected,
 
The set WshShell=WScript. CreateObject (" WScript. Shell ")
For I=1 To 20
Ret=WshShell. AppActivate (" Windows security ")
If ret Then
WshShell. SendKeys "% b"
WScript. Sleep 500
WshShell. SendKeys "% I
"The Exit For
The Else
WScript. Sleep 1000
End the If
Next
  • Related