Re: [AHK-] 想请教以下几个程式码的用法

楼主: bhbbbbb (影)   2022-07-07 01:50:19
※ 引述《onlyAPU (Nothing)》之铭言:
: 各位板友好,之前有从网络上找了两段程式码来使用
: 使用上都十分正常没有问题,但是最近有想要修改一些东西
: 发现里面有些东西看不懂是什么意思,特来请教
: No.1 功能: 单点x 快速点两下ctrl+x
: #ifwinactive ahk_exe SketchUp.exe
: ~x:: /*请问~符号的意思
https://www.autohotkey.com/docs/Hotkeys.htm#Tilde
可以试试
a::b
~a::b
的不同
: IF !(A_TickCount < x) /*A_TickCount是公用的变量还是自订的
https://www.autohotkey.com/docs/Variables.htm#TickCount
是 built-in variable
: {
: KeyWait, x
: x:= A_TickCount + 200
: Return
: }
: LAlt = /*这句是什么功用呢
相当于 LAlt := ""
: Send ^+x
: Return
: #ifwinactive
: No.2 功能: 按下S之后六秒,再按九宫格的ENTER会多输入mm
: ;sketchup里面不用输入mm
: #ifwinactive ahk_exe sketchup.exe
: ~s:: /*~是什么功能
: SetTimer gTmr,-6000
: gChk:=1
: Return
: #If gChk /*为什么后面没有=,是不写东西就会自动=1?
应该说 gChk 会先被转成 boolean 再看看是否等于 true
在 ahk 中 0 是 false ,1 是 true。
: NumpadEnter::send mm{enter}
: #If
: gTmr:
: gChk:=0
: Return
: #ifwinactive
作者: kslman   2022-08-17 13:23:00
感谢大大,但我的AHK_L v1.1.30.03运作不起来推错

Links booklink

Contact Us: admin [ a t ] ucptt.com