Autohotkey two buttons pressed result in third button

94 Views Asked by At

im new to autohotkey. What i want to do:

A press = A press
D press = D press
A press + D press = C press AND A press 
D press + A press = E press AND D press 
A hold + D hold = A hold AND C press
D hold + A hold = D hold AND E press

For example A and D held down should result such text in notepad:

adcaaaaaaaaaaaaaa

D and A held down to result:

daedddddddddddddd

A and D pressed to result:

adc

All i want to do is to keep A and D keys functionality untouched, but when held together - triggering C or E keys depending on pressing order. Ty in advance!

I've tried this but it returns error:

~a & d::c & d
~d & a::e & a

Only works like that, but it doesnt return a or d when held down

~a & d::c
~d & a::e
0

There are 0 best solutions below