|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
|
For Each c As Char In "p123"
Send(c) Thread.Sleep(100) Next c It works in VB.NET but I code my project in VB6.0 What's the change? <Sweet.mh***@gmail.com> wrote in message
news:1142785908.687350.79360@u72g2000cwu.googlegroups.com VB6 and VB.Net are effectively completely different languages> For Each c As Char In "p123" > Send(c) > Thread.Sleep(100) > Next c > > It works in VB.NET > but I code my project in VB6.0 > What's the change? at a guess... Private Declare Sub Sleep lib "kernel32" (byval dwMSecs as long) Dim s As String Dim x As Long s="p123" For x=1 to Len(s) Call Send(Mid$(s,x,1)) Call Sleep(100 Next -- Reply to the group so all can participate VB.Net: "Fool me once..." |
|||||||||||||||||||||||