Search found 65 matches
- 14 Apr 2018, 02:22
- Forum: Ask for Help (v1)
- Topic: What Limits >2 Key Combos?
- Replies: 19
- Views: 3930
Re: What Limits >2 Key Combos?
You can try this if you like, [Class] LongHotkeys (a & b & c & ...) Amazing! I've been playing around with this script, and it comes close to what I had idealized. However, having a key-combo will conflict with any other key-combos that use the same keys but are of lesser quantity. For example: #In...
- 13 Apr 2018, 03:54
- Forum: Ask for Help (v1)
- Topic: On-Screen Keyboard With NKRO (Multi-Key Pressing)?
- Replies: 1
- Views: 486
On-Screen Keyboard With NKRO (Multi-Key Pressing)?
Are there any on-screen keyboard programs that allow key combos (e.g. a + s)? Otherwise, are there any good scripts or tactics for using AHK with an on-screen keyboard? (I'm particular interested for use with a Surface Book 2, but I reckon that this applies for any tablet.
- 03 Apr 2018, 23:49
- Forum: Ask for Help (v1)
- Topic: What Limits >2 Key Combos?
- Replies: 19
- Views: 3930
Re: What Limits >2 Key Combos?
Hallo, try: !a:: ;3 Key Combo: Alt+a b c (or Alta + b c) Keys = a Loop { Input, Key, ML1T.2 Keys .= Key } Until (A_TimeSinceThisHotkey > 3000) Or !InStr("ab",Keys) ;max. timespan 3 seconds If Keys = abc MsgBox, True Else MsgBox, False Return I couldn't get this to work. It's return false every time...
- 03 Apr 2018, 23:48
- Forum: Ask for Help (v1)
- Topic: What Limits >2 Key Combos?
- Replies: 19
- Views: 3930
Re: What Limits >2 Key Combos?
It is a limitation of many, but not all, keyboards, see for example this topic: Key Rollover . Cheers. I'm talking about making a hotkey out of multi-keys. Even if my keyboard can handle 5 key combos, I can't make a key combo out of it. For example, I can't do: a & s & d & f & g::testing Even with ...
- 25 Mar 2018, 16:58
- Forum: Ask for Help (v1)
- Topic: What Limits >2 Key Combos?
- Replies: 19
- Views: 3930
What Limits >2 Key Combos?
In general, non-modifier key combos are limited to 2 keys. From what I could gather, this is true for all OSs. With that noted, what causes this limitation? Is it micro-coded into all mainstream/common mobos?
- 18 Mar 2018, 10:26
- Forum: Ask for Help (v1)
- Topic: Prevent Hotkey If Any Other Keys Are Pressed?
- Replies: 2
- Views: 903
Re: Prevent Hotkey If Any Other Keys Are Pressed?
... Thanks so much! That works. However, it has some unnecessary functions and some long-hand tags. I'll post a more concise version here in case anyone else comes across this. q:: a := getallkeyspressed("p") maxindex := a.maxindex() if maxindex > 1 return else send x return getallkeyspressed(mode ...
- 17 Mar 2018, 20:12
- Forum: Ask for Help (v1)
- Topic: Prevent Hotkey If Any Other Keys Are Pressed?
- Replies: 2
- Views: 903
Prevent Hotkey If Any Other Keys Are Pressed?
For example, to only fire a::b if a is the only button being pressed. To further clarify, a::b shouldn't fire if c (or any other key) is already being held down when a is pressed. Can this be done?
- 17 Mar 2018, 11:45
- Forum: Ask for Help (v1)
- Topic: Hold Key While Pressing Other Keys Without The Held Key Stopping?
- Replies: 10
- Views: 2580
Re: Hold Key While Pressing Other Keys Without The Held Key Stopping?
I had forgotten about the usefulness of the tilde. That did it, thanks!Rohwedder wrote:...
- 17 Mar 2018, 09:11
- Forum: Ask for Help (v1)
- Topic: Hold Key While Pressing Other Keys Without The Held Key Stopping?
- Replies: 10
- Views: 2580
Re: Hold Key While Pressing Other Keys Without The Held Key Stopping?
I'm not sure I understand what you mean. If it's not too much trouble, an example script would be great!Nwb wrote:Anyways did you try s & d:: like I said? Try doing that, if you need help I will make an example script
- 17 Mar 2018, 08:34
- Forum: Ask for Help (v1)
- Topic: Hold Key While Pressing Other Keys Without The Held Key Stopping?
- Replies: 10
- Views: 2580
Re: Hold Key While Pressing Other Keys Without The Held Key Stopping?
How about use s & d:: and then under the loop use getkeystate for d and write the actions below when keystate is up? Also does anybody know why my script didn't work? I'm clueless. It did for me btw. The values did keep incrementing so the settimer part worked. But the values didn't reset to 0 and ...
- 17 Mar 2018, 08:07
- Forum: Ask for Help (v1)
- Topic: Hold Key While Pressing Other Keys Without The Held Key Stopping?
- Replies: 10
- Views: 2580
Re: Hold Key While Pressing Other Keys Without The Held Key Stopping?
... That would probably work in most cases, but what I'm going for is probably a bit more complicated. s is it's own hotkey, but it's also a part of a combo hotkey. Thus, the goal is to seamlessly go from s to s & d , and then back to s , ad infinitum. It's not that s should be firing constantly, s...
- 17 Mar 2018, 08:03
- Forum: Ask for Help (v1)
- Topic: Hold Key While Pressing Other Keys Without The Held Key Stopping?
- Replies: 10
- Views: 2580
Re: Hold Key While Pressing Other Keys Without The Held Key Stopping?
While, GetKeyState should be avoided (https://autohotkey.com/boards/viewtopic.php?t=19745). The same thing can be done with SetTimer. I didn't understand exactly what the ops meant by what he said. But let's assume RohWedder is right. Code etc... Evilc's post from that link only seems to work if yo...
- 17 Mar 2018, 06:00
- Forum: Ask for Help (v1)
- Topic: Hold Key While Pressing Other Keys Without The Held Key Stopping?
- Replies: 10
- Views: 2580
Hold Key While Pressing Other Keys Without The Held Key Stopping?
For example:
- I hold s
- I press and release d while holding s
- s continues functioning after releasing d
Is there a way to make that work?
- I hold s
- I press and release d while holding s
- s continues functioning after releasing d
Is there a way to make that work?
- 16 Mar 2018, 20:26
- Forum: Ask for Help (v1)
- Topic: Same Key In A Single And Combo Hotkey MouseMove?
- Replies: 3
- Views: 576
Re: Same Key In A Single And Combo Hotkey MouseMove?
I figured it out.
j::
if(GetKeyState("k")) {
mousemove, 0, 20, 0, r
}
else
mousemove, 10, 20, 0, r
Sleep 50
return
k::
if(GetKeyState("j")) {
mousemove, 0, 20, 0, r
}
else
mousemove, -10, -20, 0, r
Sleep 50
return
j::
if(GetKeyState("k")) {
mousemove, 0, 20, 0, r
}
else
mousemove, 10, 20, 0, r
Sleep 50
return
k::
if(GetKeyState("j")) {
mousemove, 0, 20, 0, r
}
else
mousemove, -10, -20, 0, r
Sleep 50
return
- 16 Mar 2018, 20:24
- Forum: Ask for Help (v1)
- Topic: Forcing Hotkey To Go On Press
- Replies: 3
- Views: 640
Re: Forcing Hotkey To Go On Press
I figured it out.
j::
if(GetKeyState("k")) {
mousemove, 0, 20, 0, r
}
else
mousemove, 10, 20, 0, r
Sleep 50
return
k::
if(GetKeyState("j")) {
mousemove, 0, 20, 0, r
}
else
mousemove, -10, -20, 0, r
Sleep 50
return
j::
if(GetKeyState("k")) {
mousemove, 0, 20, 0, r
}
else
mousemove, 10, 20, 0, r
Sleep 50
return
k::
if(GetKeyState("j")) {
mousemove, 0, 20, 0, r
}
else
mousemove, -10, -20, 0, r
Sleep 50
return
- 16 Mar 2018, 14:05
- Forum: Ask for Help (v1)
- Topic: Forcing Hotkey To Go On Press
- Replies: 3
- Views: 640
Re: Forcing Hotkey To Go On Press
Now I can get it to go on press and to auto-repeat, but then it doesn't listen for j & k anymore. Ugh, every progression brings another set back.
j::
Loop
{
KeyWait, j, d
Sleep, 50
mousemove, 10, 20, 0, r
}
return
j & k::mousemove, 0, 20, 0, r
j::
Loop
{
KeyWait, j, d
Sleep, 50
mousemove, 10, 20, 0, r
}
return
j & k::mousemove, 0, 20, 0, r
- 16 Mar 2018, 12:55
- Forum: Ask for Help (v1)
- Topic: Forcing Hotkey To Go On Press
- Replies: 3
- Views: 640
Re: Forcing Hotkey To Go On Press
This works, but then it has the new problem of not auto-repeating if I hold the key down. How can I modify this so that it'll also auto-repeat?
j::
KeyWait, j, d
mousemove, 10, 20, 0, r
j::
KeyWait, j, d
mousemove, 10, 20, 0, r
- 16 Mar 2018, 11:09
- Forum: Ask for Help (v1)
- Topic: Forcing Hotkey To Go On Press
- Replies: 3
- Views: 640
Forcing Hotkey To Go On Press
I have:
j::mousemove, 10, 20, 0, r
k::mousemove, -10, -20, 0, r
j & k::mousemove, 0, 20, 0, r
k works on press, and j & k works on press. However, j doesn't work on press.
I know the reason is because it's listening for the j & k combo.
Regardless, is there a way I can force j to go on press?
j::mousemove, 10, 20, 0, r
k::mousemove, -10, -20, 0, r
j & k::mousemove, 0, 20, 0, r
k works on press, and j & k works on press. However, j doesn't work on press.
I know the reason is because it's listening for the j & k combo.
Regardless, is there a way I can force j to go on press?
- 15 Mar 2018, 12:18
- Forum: Ask for Help (v1)
- Topic: Same Key In A Single And Combo Hotkey MouseMove?
- Replies: 3
- Views: 576
Re: Same Key In A Single And Combo Hotkey MouseMove?
Rohwedder, that seems to be on the right track. However, the keys need to be able to repeat. Perhaps involving a Sleep operation for the single keys (j, k; but not j + k), and maybe Down and/or Up? I'm off to work now, but I'm leaving this comment in case it helps. Otherwise, I'll play around with i...
- 15 Mar 2018, 11:32
- Forum: Ask for Help (v1)
- Topic: Same Key In A Single And Combo Hotkey MouseMove?
- Replies: 3
- Views: 576
Same Key In A Single And Combo Hotkey MouseMove?
How can this be done without conflict? For example: j moves north-west, k moves north-east, j + k moves up. This would probably need to involve Wait and GetKeyState operations. When pressing j + k, Wait and GetKeyState could stop mousemove from stuttering diagonally before going up. However, the mou...