VB启动计算机并控制

前端之家收集整理的这篇文章主要介绍了VB启动计算机并控制前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
Private Sub Command1_Click()
Dim I As Integer
Dim Jh As String
'===
Shell "calc.exe",1
For I = 1 To 9
SendKeys Replace("{" & Str(I) & "}"," ","")
SendKeys "{+}"
Next
End Sub


Private Sub Command2_Click()
Dim k As Integer,sum As Integer
For k = 1 To 9
sum = sum + k
Next
MsgBox sum
End Sub
原文链接:https://www.f2er.com/vb/259286.html

猜你在找的VB相关文章