答非所有,我是在脚本中间每次运行3个不同的键。
追答不就是想先是Q再E最后R么? 你设置第一键Q 第二键E 第三键R 想间隔多少时间自己设置,然后不就是循环吗? 你问的不就是这个意思吗?
大哥看懂啊,不是每一次都要按Q,E,R。是脚本运行一次,Q,E,R键每次用一个这样循环。
追答IsFile = Plugin.File.IsFileExit("C:\按键精灵.txt")
If IsFile = True Then
Else
Call Plugin.File.WriteFileEx("C:\按键精灵.txt", "1")
End If
Text = Plugin.File.ReadFileEx("C:\按键精灵.txt")
M = Split(Text, "|")
If M(0) = 1 Then
KeyPress "Q", 1
Call Plugin.File.DeleteFile("C:\按键精灵.txt")
Call Plugin.File.WriteFileEx("C:\按键精灵.txt", "2")
ElseIf M(0) = 2 Then
KeyPress "E", 1
Call Plugin.File.DeleteFile("C:\按键精灵.txt")
Call Plugin.File.WriteFileEx("C:\按键精灵.txt", "3")
ElseIf M(0) = 3 Then
KeyPress "R", 1
Call Plugin.File.DeleteFile("C:\按键精灵.txt")
End If