Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 686

Random Sendkeys VB & VBSCRIPT

$
0
0
How would I make my program type random words in VB script (Visual Basic Scripting Edition)? This is what I'm using in VB but I need an equivalent script to carry out this task in VB script :-

Code:

Const MyWords As String = "Hello|connecting|Something|something else"
Private Sub Timer1_Timer()
Dim Wrds() As String
 
    Wrds() = Split(MyWords, "|")
   
    SendKeys Wrds(Int((UBound(Wrds) + 1) * Rnd))
End Sub

Thanks

Viewing all articles
Browse latest Browse all 686

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>