按键精灵 每个组合按键执行一个输入文本的命令

2025-04-30 23:38:08
推荐回答(1个)
回答1:

你要喊的话 = "你好!/我是按键精灵!/哦也"'话之间用/隔开
你要喊的话 = split(你要喊的话, "/")
max = UBound(你要喊的话)
Do
key1 = WaitKey
key2 = WaitKey
If (key1 = 18 or key = 164) and key2 < max + 50 Then
TracePrint 你要喊的话(key2 - 49)
End If
Delay 100
Loop