在我的程序中,我想模拟MediaPlayPause
按键.就像一张纸条,我不想检查按键是否按下或按下,我想通过我的程序按键.
我曾尝试SendKeys.Send但特殊键限于{Enter}
和{Tab}
等
不确定我是否做错了,基本上我的代码从"111111111"开始,每次线程能够通过在原始数字上加"1"来计数.我希望方法在序列中跳过0,而不是在"111111119"之后转到"111111120",我希望它直接转到"111111121".
Private Sub IncreaseOne()
If count < 999999999 Then
count += 1
Else
done = True
End If
If CStr(count).Contains("0") Then
MsgBox("theres a 0 in that...darn.")
CStr(count).Replace("0", "1")
End If
End Sub
Run Code Online (Sandbox Code Playgroud)
*注意,我的消息框会在假设时显示,但是0不会更改为1