Search found 7 matches
- 21 Nov 2022, 19:19
- Forum: Ask for Help (v1)
- Topic: CapsLock (trigger/hot) key "stuck"
- Replies: 35
- Views: 4836
Re: CapsLock (trigger/hot) key "stuck"
Ok, fine, I sort of figure out a script to manage the "Capslock-stuck problem" when errors occur. $CapsLock:: ToolTip, CapsLock+, A_CaretX, A_CaretY, 1 if (A_PriorHotkey == "$CapsLock" AND A_TimeSincePriorHotkey < 200){ KeyWait, CapsLock, T 0.1 if (ErrorLevel = 1) Send, ^y else Send, ^z } KeyWait, C...
- 19 Nov 2022, 18:36
- Forum: Ask for Help (v1)
- Topic: CapsLock (trigger/hot) key "stuck"
- Replies: 35
- Views: 4836
Re: CapsLock (trigger/hot) key "stuck"
Same reason, same problem. CapsLock & a:: Backspace CapsLock & s:: Enter CapsLock & d:: Delete I'm using simpleast things like this and even face the same problem. Occasionally, I delete things pressing 'a' just after using "CapsLock & s" to append a line. In fact, this happens often... Reeeeeeeeeee...
- 21 Mar 2021, 01:13
- Forum: 请求帮助
- Topic: CapsLock的触发逻辑是松开的时候才发送按键? Topic is solved
- Replies: 2
- Views: 2785
Re: CapsLock的触发逻辑是松开的时候才发送按键? Topic is solved
已经发现问题了,用了"CapsLock & Space"的组合,CapsLock的down trigger被屏蔽了,改成了up时才会触发"CapsLock:: <action>"。
这样一来,无论按多长时间CapsLock,由于是放开之后才会触发"CapsLock::"标志后的操作,那么KeiWait和A_TimeSinceThisHotKey就都无法工作了。
这样一来,无论按多长时间CapsLock,由于是放开之后才会触发"CapsLock::"标志后的操作,那么KeiWait和A_TimeSinceThisHotKey就都无法工作了。
- 09 Jan 2021, 13:03
- Forum: 请求帮助
- Topic: CapsLock的触发逻辑是松开的时候才发送按键? Topic is solved
- Replies: 2
- Views: 2785
CapsLock的触发逻辑是松开的时候才发送按键? Topic is solved
写脚本过程中我发现
CapsLock:: (do sth.)
的触发逻辑与众不同,他是松开CapsLock之后才触发的。这导致调用KeiWait和A_TimeSinceThisHotKey来实现长按判定失效了。但是,在Key history里可以看到CapsLock确实是有u、d两个状态的。
请问我的想法是对的吗?有解释吗?有什么方法能避开这个,或者换种实现长按的方法呢?
CapsLock:: (do sth.)
的触发逻辑与众不同,他是松开CapsLock之后才触发的。这导致调用KeiWait和A_TimeSinceThisHotKey来实现长按判定失效了。但是,在Key history里可以看到CapsLock确实是有u、d两个状态的。
请问我的想法是对的吗?有解释吗?有什么方法能避开这个,或者换种实现长按的方法呢?
- 17 Jul 2020, 11:33
- Forum: Ask for Help (v1)
- Topic: Longpress Capslock (KeyWait)
- Replies: 4
- Views: 1503
Re: Longpress Capslock (KeyWait)
Ah, I see. It was first copied from webs, and I learned how it works later. Never thought about it though.
You are so nice and vigorous, allow me say in Chinese, 干杯(gan bei)!
You are so nice and vigorous, allow me say in Chinese, 干杯(gan bei)!
- 17 Jul 2020, 07:35
- Forum: Ask for Help (v1)
- Topic: Longpress Capslock (KeyWait)
- Replies: 4
- Views: 1503
Re: Longpress Capslock (KeyWait)
Hi, I made bad experience, so try the other way around: CapsLock:: KeyWait, CapsLock, T1 If ErrorLevel = 1 MsgBox, Long-press Else MsgBox, short-press. return I preferred your way too Short -> Long, but there was always some problem. That's why I switched to Long -> Short Perhaps you should replace...
- 17 Jul 2020, 05:40
- Forum: Ask for Help (v1)
- Topic: Longpress Capslock (KeyWait)
- Replies: 4
- Views: 1503
Longpress Capslock (KeyWait)
Hi, my AHK version is v1.1.32.00 I'm trying to add more function to button "CapsLock", wanted to have mode short-press (<300ms) and long-press. However, KeyWait method went wrong when I apply it on " CapsLock ", say CapsLock:: KeyWait, CapsLock, T1 If ErrorLevel = 0 MsgBox, Short-press. Else MsgBox,...