help with key combination condition
Posted: 11 Jun 2018, 06:16
Hi folks,
Somewhat of a newbie to AHK. I am trying to have the key combination of ^J followed by another key to take some action in a software application that I commonly use. The code I've got is,
While this works for the key combination of ^j + 2 or ^j + k, it doesn't work for ^j + ^j. What am I doing wrong here?
Thank you in advance.
Regards
Kheeran
Somewhat of a newbie to AHK. I am trying to have the key combination of ^J followed by another key to take some action in a software application that I commonly use. The code I've got is,
Code: Select all
^j::
input, command, L1, T1
if (command = "^j" or command = "j")
{
send, ^d
Sleep 10
send, !s16
send, !ct{enter}
}
else if (command = "2" or command = "k")
{
send, ^d
Sleep 10
send, !s14
send, !ct{enter}
}
else if (command = "3" or command = "l")
{
send, ^d
Sleep 10
send, !s12
send, !ct{enter}
}
;send, {down}
Return
Thank you in advance.
Regards
Kheeran