发布网友
共1个回答
热心网友
你这个程序写的有问题,do....loop循环 是死循环 一但执行 就停不下来的 除非强制 而且你的语句就有问题 调试肯定出错的 else 后面的语句呢? 如果else后面没有要写的 就把else去掉 不要写
这是我按你的格式写的
Event Form1.OptionBox1.Click
If Form1.OptionBox1.Value = 1 Then
Do
KeyPress "Q", 1
Delay 1000
KeyPress "W", 1
Delay 1000
If Form1.OptionBox1.Value <> 1 Then
Exit Event
End If
Loop
End If
End Event Form1