Is possibile with AutoHotKey to be able to have a determinate Input-Key when two different Key-Binds are pressed simultaneosly?
I will try to explain it better...
Example:
I press D, it write D...
I press T, it write T...
I press D and T together, it write P.
If someone need more detail on what I need exactly is pretty much that:
Left Arrow -> Left Arrow
Right Arrow -> Right Arrow
Left Arrow + Right Arrow -> Up Arrow
I would like to be able to do that so I only need these two Keybinds (Left and Right Arrow) to gain access to three Keybinds...
Need help with something that should be "simple" Topic is solved
Re: Need help with something that should be "simple"
Code: Select all
#IfWinActive,
d::
Msgbox,`n (%A_LineFile%~%A_LineNumber%)
return
t::
Msgbox,`n (%A_LineFile%~%A_LineNumber%)
return
d & t::
Send,p
return
Left & Right::
Msgbox,`n (%A_LineFile%~%A_LineNumber%)
return
github>g_IntelliSense + next improvements + forum
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: Need help with something that should be "simple"
SL5 wrote:Code: Select all
#IfWinActive, d:: Msgbox,`n (%A_LineFile%~%A_LineNumber%) return t:: Msgbox,`n (%A_LineFile%~%A_LineNumber%) return d & t:: Send,p return Left & Right:: Msgbox,`n (%A_LineFile%~%A_LineNumber%) return
Wow, so fast.
Thank you very much, but what I need to put in the Code instead of D/T/P for Left/Right/Up Arrows?
Re: Need help with something that should be "simple"
did you tried reading the manual a minute?Harvest_ wrote:SL5 wrote:Code: Select all
...
Wow, so fast.
Thank you very much, but what I need to put in the Code instead of D/T/P for Left/Right/Up Arrows?
https://autohotkey.com/docs/
github>g_IntelliSense + next improvements + forum
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: Need help with something that should be "simple"
Not really, I just needed that Script for my Daughter and I asked in the Forum... I'm too old and not expert for these kind of things.SL5 wrote:did you tried reading the manual a minute?Harvest_ wrote:SL5 wrote:Code: Select all
...
Wow, so fast.
Thank you very much, but what I need to put in the Code instead of D/T/P for Left/Right/Up Arrows?
https://autohotkey.com/docs/
Anyway I tried the script and it does not work...
Re: Need help with something that should be "simple"
SL5 wrote:did you tried reading the manual a minute?Harvest_ wrote:SL5 wrote:Code: Select all
...
Wow, so fast.
Thank you very much, but what I need to put in the Code instead of D/T/P for Left/Right/Up Arrows?
https://autohotkey.com/docs/
Anyway I tried with logic and I menaged to do that, using:
t::t
d::d
t & d::p
But here is a problem, when I keep the T pressed it does not continue to write (tttttttttttttt), it write only when I release the key, there is something I can do do fix it? Make he input go on pressing and not releasing? (I also noticed that sometime it does not write T if I write really fast)
Re: Need help with something that should be "simple"
Not really, I just needed that Script for my Daughter and I asked in the Forum... I'm too old and not expert for these kind of things.
Re: Need help with something that should be "simple"
To be honest those kind of button chording isn't explained - I also have some problem with it.
@Harvest - chek my topic - https://autohotkey.com/boards/viewtopic.php?f=5&t=35440
@Harvest - chek my topic - https://autohotkey.com/boards/viewtopic.php?f=5&t=35440
Re: Need help with something that should be "simple"
I'm literally going crazy to make this work...BriHecato wrote:To be honest those kind of button chording isn't explained - I also have some problem with it.
@Harvest - chek my topic - https://autohotkey.com/boards/viewtopic.php?f=5&t=35440
Re: Need help with something that should be "simple"
I found that, https://autohotkey.com/board/topic/4087 ... ng-script/
But I don't even understand what do I need to change in this Script and change with Left Right and UP
But I don't even understand what do I need to change in this Script and change with Left Right and UP
Re: Need help with something that should be "simple"
No, I mean which code line I need to change ahahah... I know is "Right","Left" and "Up".BriHecato wrote:https://autohotkey.com/docs/KeyList.htm ... ntrol_keys
Anyway I menaged to do it with that
Code: Select all
~Right & ~Left::
Send, {Up down}
While ( GetKeyState("Left") AND GetKeyState("Right") )
Continue
Send, {Up up}
Return
If someone have a fix to that I will appreciate it
Re: Need help with something that should be "simple"
You really do not read what people link to you - especially my topic i've linked. "~" and while are completely expendable.
Your script works perfectly as you wrote it : right-then-left.
Your script works perfectly as you wrote it : right-then-left.
Re: Need help with something that should be "simple"
Man, I'm not a Scripter... Is the first time I'm touching these kind of codes... I have zero experience, and I'm asking HELP to create something that I need...BriHecato wrote:You really do not read what people link to you - especially my topic i've linked. "~" and while are completely expendable.
Your script works perfectly as you wrote it : right-then-left.
I don't really care if something that I wrote is working as I wrote it, since is not doing what I need, I'm asking to more expert people to find a solution... This is the point of my Thread, I have zero clue of what I'm doing, I'm here for an answer
Re: Need help with something that should be "simple"
That's not the way it works.Harvest_ wrote: I don't really care........ I have zero clue of what I'm doing, I'm here for an answer