Search found 9 matches
- 29 Mar 2024, 06:31
- Forum: Other Programming Languages
- Topic: Equivalent to SuspendKeys on Python?
- Replies: 0
- Views: 375
Equivalent to SuspendKeys on Python?
Hello! On AutoHotKey I do something like this using SuspendKeys to turn on or off the script of a list of shortcuts. ifenabled := 0 SuspendKeys: ; by default, this app is suspended. And when it's called by ^+!F1, it will be activated. Suspend if (ifenabled = 0) { ifenabled := 1 TrayTip TrayTip, % "T...
- 19 Jan 2023, 07:24
- Forum: Ask for Help (v1)
- Topic: How to have a different key or shortcut to turn on Caps Lock while Caps Lock key is still alive to use for AHK script
- Replies: 1
- Views: 220
How to have a different key or shortcut to turn on Caps Lock while Caps Lock key is still alive to use for AHK script
Hi I have my own AHK script that uses the Caps Lock key. For example, Caps Lock + Tab sends the Enter key and I use the Caps Lock key like the Alt key for the "Alt drag" function. And many others. I did something so that my shortcuts with the Caps Lock key won't change the Caps Lock status, but mayb...
- 30 Jan 2016, 03:52
- Forum: Ask for Help (v1)
- Topic: Key State is constantly down although physically up
- Replies: 9
- Views: 2801
Re: Key State is constantly down although physically up
Ok. And as I said, I'm very new to this forum. I simply would like to know how my post was moved from the bug category to this help category. Do you know?
- 29 Jan 2016, 10:56
- Forum: Ask for Help (v1)
- Topic: #if interferes with normal (outside) hotkeys [maybe a bug]
- Replies: 6
- Views: 1075
Re: #if interferes with normal (outside) hotkeys [maybe a bug]
Shift + WheelDown corresponds to your custom hotkey even if you are holding other keys, and even if the hotkey isn't currently active. This is why you should not use the " custom combination" syntax with standard modifier keys. Hi lexikos, very thank you and grateful of your reply. Feel like honore...
- 29 Jan 2016, 10:02
- Forum: Ask for Help (v1)
- Topic: Key State is constantly down although physically up
- Replies: 9
- Views: 2801
Re: Key State is constantly down although physically up
just me, Thanks for your reply. Don't you think it's a bug?
- 25 Jan 2016, 19:55
- Forum: Ask for Help (v1)
- Topic: Key State is constantly down although physically up
- Replies: 9
- Views: 2801
Re: Key State is constantly down although physically up
It happens to me with mine and your code both. And I tried with larger second numbers. I succeeded to recreate the same problem with KeyWait with T0.1 and Sleep, 100 both. ;KeyWait, Up, T0.1 ;KeyWait, Down, T0.1 ;KeyWait, Left, T0.1 ;KeyWait, Right, T0.1 Sleep, 100 So maybe we know now that it's not...
- 25 Jan 2016, 19:29
- Forum: Ask for Help (v1)
- Topic: #if interferes with normal (outside) hotkeys [maybe a bug]
- Replies: 6
- Views: 1075
#if interferes with normal (outside) hotkeys [maybe a bug]
Hi all, Here is the sample code. You are supposed to see "Hello World!" when the hotkey is triggered. But you will never see "Hello World!" although the "Shift & WheelDown" is inside #if or #ifWinActive, or Notepad is not active. I test with an alphabet letter instead of WheelDown/Up (like ^+A and +...
- 25 Jan 2016, 12:17
- Forum: Ask for Help (v1)
- Topic: Key State is constantly down although physically up
- Replies: 9
- Views: 2801
Re: Key State is constantly down although physically up
Just me, Thank you for your reply. I understand that a system might be slow to update the sate of their keys. However, the problem I am having now is not the fact that it's slow (or it lasts a bit longer even after you release the key), but the problem is that: I pressed and held some keys. And I re...
- 24 Jan 2016, 09:55
- Forum: Ask for Help (v1)
- Topic: Key State is constantly down although physically up
- Replies: 9
- Views: 2801
Key State is constantly down although physically up
Hi all, I'm writing first time at this forum. Very thankful of AutoHotkey and the forum as it's one of my biggest recreations these days. ;) Maybe it's not a bug but my fault. Then please guide me. Summary: Both of GetKeyState() and GetKeyState returns 1 or "D" as if an arrow key is physically press...