永发信息网

按键精灵if语句

答案:3  悬赏:0  手机版
解决时间 2021-12-28 06:41
  • 提问者网友:饥饿走向夜
  • 2021-12-27 19:00
key = WaitKey()

If key = 112 Then
KeyPress "Num 1", 1
KeyPress "E", 1
KeyPress "R", 1
End If
If key = 113 Then
KeyPress "Num 2", 1
KeyPress 115, 1
KeyPress "3"
KeyPress "4", 1
KeyPress "3", 1
End If
If key = 114 Then
KeyPress "Num 2", 1
KeyPress 115, 1
KeyPress "3"
KeyPress "4", 1
KeyPress "3", 1
End If
If key = "`" Then
KeyPress "Num 5", 1
KeyPress "1", 1
End If
我设置的当按f1则1er f2则2f4343 f3则2f4343
但是运行提示脚本错误 哪里错了是不是还要加什么
求解谢谢拉
最佳答案
  • 五星知识达人网友:有你哪都是故乡
  • 2021-12-27 20:35
If key = 114 Then
KeyPress "Num 2", 1
KeyPress 115, 1
KeyPress "3" //这一行错了
KeyPress "4", 1
KeyPress "3", 1
End If
全部回答
  • 1楼网友:深街酒徒
  • 2021-12-27 22:02
a = waitkey() if a = 113 then 运行第一个语句 else 运行第二个语句 end if
  • 2楼网友:有你哪都是故乡
  • 2021-12-27 21:29
这个格式很蛋疼,并且我没看懂。所以我还是新手吧。
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯