怎么做按键的变量,有偿请教大神求求了

遇到了问题?请先进行搜索(中文和英文),然后在此提问

Moderators: tmplinshi, arcticir

zx625714895
Posts: 1
Joined: 20 May 2024, 04:00

怎么做按键的变量,有偿请教大神求求了

Post by zx625714895 » 20 May 2024, 04:04

Code: Select all

XButton1::
SetTimer,Label,30
Return
XButton1 up::
SetTimer,Label,off
Return
[Mod edit: + [code][/code].]

比如这个按键怎么设置可选
Attachments
微信截图_20240520165344.png
微信截图_20240520165344.png (6.06 KiB) Viewed 290 times
User-AutoHotkey
Posts: 14
Joined: 19 May 2024, 14:04

Re: 怎么做按键的变量,有偿请教大神求求了

Post by User-AutoHotkey » 20 May 2024, 07:40

你要按键的变量做什么?代码的工作目的是?

如果是按下时触发一些事件,可以这样写

Code: Select all

; 当按下按键,然后松开,才执行后面的代码
#Requires AutoHotkey v2.0
KeyWait "LButton", "D" ; 等待鼠标左键按下
KeyWait "LButton"  ; 等待鼠标左键被释放
; 下面是后续的工作
Post Reply

Return to “请求帮助”