Search found 22 matches
- 02 Apr 2024, 22:02
- Forum: General Discussion
- Topic: Bug that was driving me insane for a week was actually a bug with AHK itself
- Replies: 4
- Views: 1121
Re: Bug that was driving me insane for a week was actually a bug with AHK itself
That "0 & 1" script works but it disables the 0 key. The code I gave was an abstraction, but the goal was to remap a non-modifier key to a modifier. To be specific, I wanted to map CapsLock + S to Shift . But yes, I've realized since then that using the native modifiers is simpler to code and simpl...
- 10 Feb 2024, 21:42
- Forum: Ask for Help (v2)
- Topic: Send a vs {Ctrl Up}a vs {Blind^}a vs {Blind}{Ctrl Up}a?
- Replies: 1
- Views: 123
Send a vs {Ctrl Up}a vs {Blind^}a vs {Blind}{Ctrl Up}a?
This is how I currently understand it: ^+b::Send "a" Releases Ctrl and Shift and produces A After sending, if Ctrl and Shift are physically down, pushes Ctrl and Shift back down ^+c::Send "{Ctrl Up}a" Releases Ctrl and Shift and produces A After sending, if Ctrl and Shift are physically down, pushes...
- 10 Feb 2024, 19:13
- Forum: Ask for Help (v2)
- Topic: Why do these 3 hotkeys in combination make LButton get stuck
- Replies: 24
- Views: 683
Re: Why do these 3 hotkeys in combination make LButton get stuck
This is some really funky behavior.
- 10 Feb 2024, 19:03
- Forum: Ask for Help (v2)
- Topic: Why do these 3 hotkeys in combination make LButton get stuck
- Replies: 24
- Views: 683
Re: Why do these 3 hotkeys in combination make LButton get stuck
I see, but why isn't q just being spammed then when its logical state is 1?
- 10 Feb 2024, 18:47
- Forum: Ask for Help (v2)
- Topic: Why do these 3 hotkeys in combination make LButton get stuck
- Replies: 24
- Views: 683
Re: Why do these 3 hotkeys in combination make LButton get stuck
Wait, really? I also initially tested it with keyboard keys but didn't see the issue. What's your script using keyboard keys?
- 10 Feb 2024, 18:04
- Forum: Ask for Help (v2)
- Topic: Why do these 3 hotkeys in combination make LButton get stuck
- Replies: 24
- Views: 683
Re: Why do these 3 hotkeys in combination make LButton get stuck
When you add a custom combination hotkey (e.g., RButton & 1 ), AHK handles the prefix key differently than it otherwise would. Would also note that some mouse devices cannot detect the release of certain mouse buttons when other mouse buttons are being held. Okay, I think this is probably it. This ...
- 10 Feb 2024, 06:56
- Forum: Ask for Help (v2)
- Topic: Why do these 3 hotkeys in combination make LButton get stuck
- Replies: 24
- Views: 683
Re: Why do these 3 hotkeys in combination make LButton get stuck
@mikeyww But again, then why does
not make LButton get stuck when Standard Modifier+RButton+LButton is pressed?
(Sorry for repeating myself if you already addressed this.)
Code: Select all
#HotIf GetKeyState('RButton', 'P')
1::
LButton & 2::
LButton Up::
{
ToolTip(thisHotkey)
}
#HotIf
(Sorry for repeating myself if you already addressed this.)
- 10 Feb 2024, 02:50
- Forum: Ask for Help (v2)
- Topic: Why do these 3 hotkeys in combination make LButton get stuck
- Replies: 24
- Views: 683
Re: Why do these 3 hotkeys in combination make LButton get stuck
But if that were the case, then why does this code
not make LButton get stuck when Standard Modifier+RButton+LButton is pressed?
Code: Select all
#HotIf GetKeyState('RButton', 'P')
1::
LButton & 2::
LButton Up::
{
ToolTip(thisHotkey)
}
#HotIf
- 10 Feb 2024, 01:43
- Forum: Ask for Help (v2)
- Topic: Why do these 3 hotkeys in combination make LButton get stuck
- Replies: 24
- Views: 683
Re: Why do these 3 hotkeys in combination make LButton get stuck
Press & hold Shift , press & hold RButton , and press LButton , then moving the mouse You used the term "stuck" and your solution was to press LButton again, not release it. This heavily implied you were letting go of LButton . Sorry, I should have included "press & release LButton ," so that shoul...
- 10 Feb 2024, 01:13
- Forum: Ask for Help (v2)
- Topic: Why do these 3 hotkeys in combination make LButton get stuck
- Replies: 24
- Views: 683
Re: Why do these 3 hotkeys in combination make LButton get stuck
Hello, yes, that is like the solution I mentioned: #HotIf GetKeyState('RButton', 'P') LButton & 2:: LButton Up:: { ToolTip(thisHotkey) } *LButton Up:: return ; <---- #HotIf RButton & 1:: AltTab ; This isn't under #HotIf GetKeyState('RButton', 'P') ; because AltTab doesn't allow that. The difference ...
- 10 Feb 2024, 00:50
- Forum: Ask for Help (v2)
- Topic: Why do these 3 hotkeys in combination make LButton get stuck
- Replies: 24
- Views: 683
Re: Why do these 3 hotkeys in combination make LButton get stuck
niCode Weird, I tested it on two different mice on two different computers and my LButton got stuck for both. It's easy to see the effect in a text editor because when LButton is down, a selection is made. Are you sure you're pressing a combination like: Press & hold Shift , press & hold RButton , ...
- 09 Feb 2024, 22:34
- Forum: Ask for Help (v2)
- Topic: Why do these 3 hotkeys in combination make LButton get stuck
- Replies: 24
- Views: 683
Why do these 3 hotkeys in combination make LButton get stuck
Each hotkey in the following code works as I expect: #HotIf GetKeyState('RButton', 'P') LButton & 2:: LButton Up:: { ToolTip(thisHotkey) } #HotIf RButton & 1:: AltTab ; This isn't under #HotIf GetKeyState('RButton', 'P') ; because AltTab doesn't allow that. But whenever I hold any standard modifier ...
- 09 Feb 2024, 06:35
- Forum: Bug Reports
- Topic: Combination hotkey can't be triggered when it or a variant is defined before another hotkey
- Replies: 1
- Views: 314
Combination hotkey can't be triggered when it or a variant is defined before another hotkey
Pressing 234 here works as expected and triggers the 2 - 34 ( 3 & 4 ) hotkey, displaying the 2 - 34 tooltip: Hotkey('2 & 4', (thisHotkey) => ToolTip('24')) HotIf((thisHotkey) => GetKeyState('2', 'P')) Hotkey('3 & 4', (thisHotkey) => ToolTip('2 - 34')) But If I define the the 2 - 34 hotkey before the...
- 01 Feb 2024, 19:28
- Forum: General Discussion
- Topic: Bug that was driving me insane for a week was actually a bug with AHK itself
- Replies: 4
- Views: 1121
Bug that was driving me insane for a week was actually a bug with AHK itself
So back in August last year, I was driving myself insane for a week trying to fix a bug. I planned on asking for help here, even drafted a long-ass explanation with a crap-ton of comments, but never got around to posting it. Jump to now where I'm revisiting the code and it's actually working – no mo...
- 30 Aug 2023, 10:40
- Forum: Bug Reports
- Topic: [v2.0.4+] Mouse button as suffix key of AltTab hotkey Topic is solved
- Replies: 2
- Views: 670
[v2.0.4+] Mouse button as suffix key of AltTab hotkey Topic is solved
In v2.0.4 and up, if you make an AltTab hotkey, and you make it a combination of two keys where the suffix key is a mouse button. It works as expected. But if you make the prefix key its own hotkey that fires on release, then that hotkey will fire along with the AltTab hotkey when the prefix key is ...
- 29 Jul 2023, 11:42
- Forum: Forum Issues
- Topic: Is there a way to change our Username?
- Replies: 15
- Views: 3671
Re: Is there a way to change our Username?
I emailed the admins on June 2 asking if I could have my username changed, but I never got a reply.
I see though that people have been changing their usernames via this topic. @joedf could you please change my username to NovaChromatic?
I see though that people have been changing their usernames via this topic. @joedf could you please change my username to NovaChromatic?
- 11 Dec 2022, 13:05
- Forum: Bug Reports
- Topic: [v2.0-rc.3] `#HotIf [string]` is always false Topic is solved
- Replies: 6
- Views: 1120
Re: [v2.0-rc.3] `#HotIf [string]` is always false Topic is solved
But it's still weird because in the v1 documentation, Hotkey, If, % FunctionObject also says it needs a non-zero number, but #If "some string" works fine.
- 11 Dec 2022, 12:56
- Forum: Bug Reports
- Topic: [v2.0-rc.3] `#HotIf [string]` is always false Topic is solved
- Replies: 6
- Views: 1120
Re: [v2.0-rc.3] `#HotIf [string]` is always false Topic is solved
@Helgef I wrote #HotIf 'some string' for simplicity. #HotIf fn() is also always false if fn returns a string.
However, you are probably right that #HotIf needing a non-zero number to evaluate to true is the intended functionality because that is what is stated in the HotIf documentation.
However, you are probably right that #HotIf needing a non-zero number to evaluate to true is the intended functionality because that is what is stated in the HotIf documentation.
- 10 Dec 2022, 11:34
- Forum: Bug Reports
- Topic: [v2.0-rc.3] `#HotIf [string]` is always false Topic is solved
- Replies: 6
- Views: 1120
[v2.0-rc.3] `#HotIf [string]` is always false Topic is solved
In v2, pressing a does nothing.
In v1, pressing a creates a MsgBox.
This is not how the normal if statement works.
Here, a creates a MsgBox.
Code: Select all
#HotIf 'some string'
a:: MsgBox()
Code: Select all
#If "some string"
a:: MsgBox
Here, a creates a MsgBox.
Code: Select all
a:: {
if 'some string' {
MsgBox()
}
}
- 08 Aug 2022, 20:03
- Forum: Bug Reports
- Topic: [v2.0-beta.7] Preferred interpreter doesn’t stay changed in Launch Config GUI after closing its window Topic is solved
- Replies: 4
- Views: 1151
Re: [v2.0-beta.7] Preferred interpreter doesn’t stay changed in Launch Config GUI after closing its window Topic is solved
Yup, my problem was mentioned it seems: viewtopic.php?p=473224#p473224