I have this:
NumLock::CapsLock
+NumLock::NumLock
However Shift + Numlock doesn't work, even though I put it in a standalone script, and run in safe mode, with the newest version. Using this works:
+NumLock::SetNumLockState, % GetKeyState("Numlock", "T") ? "Off" : "On"
It used to work before. Do you know how to debug this?
I don't know why exactly your above code doesn't work. Maybe experimenting with different send modes could reveal the answer, but you can just use SetNumLockState
.
NumLock::CapsLock
+NumLock::SetNumLockState, % !GetKeyState("Numlock", "T")
GetKeyState("Numlock", "T")
gets the current logical state of the numlock key, and it's reversed with the !
operator.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.