Also, is using & more than once disallowed in hotkeys, like so: RAlt & RShift & a

Can you assign a four-key combination as a hotkey?
Started by
urdoox
, Jan 14 2013 12:50 AM
7 replies to this topic
>^>!a::MsgBox RCtrl+RAlt+a #if GetKeyState("a", "p") <^<!<b::MsgBox LCtrl+LAlt+a+b
#2
-
Posted 14 January 2013 - 01:44 AM

>^>!a::MsgBox RCtrl+RAlt+a ;; > or < indicates here whether its right or left and the ^ stands for ctrl, ! for alt ;; and so forth. As you can find at http://www.autohotke...mmands/Send.htm #if GetKeyState("a", "p") ;; if 'a' is pressed then it makes the following hotkey true. If a isn't pressed then it;; cant be triggered. <^<!<b:: MsgBox LCtrl+LAlt+a+b
Color coding didn't work for some reason.
#4
-
Posted 14 January 2013 - 07:24 AM

test test test
[ color=#ff8c00 ]test[ /color ] (without space)
[ c ] c with [ color=#33B5E5 ] colorcode [ /color ] work with one-line [ /c ]
[ c ] c with [ color=#ff8c00 ] colorcode [ /color ]
with more than one line [ /c ]
[ color=#ff8c00 ]test[ /color ] (without space)
>^>!a::MsgBox RCtrl+RAlt+a[ code ]MsgBox, test[ /code ]
[ code ] with [color=#33B5E5] colorcode [/color] dont work[ code ] code with [ color=#33B5E5] colorcode [ /color ] dont work [ /code ]
[ c ] with colorcode work with one-line
[ c ] c with [ color=#33B5E5 ] colorcode [ /color ] work with one-line [ /c ]
[ c ] with colorcode
with more than one line
[ c ] c with [ color=#ff8c00 ] colorcode [ /color ]
with more than one line [ /c ]
#5
-
Posted 14 January 2013 - 08:01 AM

[AHK] 1.1.27.04 x64 Unicode | [WIN] 10 Pro (Version 1709)
My GitHub Profile | Donations are appreciated if I could help you
My GitHub Profile | Donations are appreciated if I could help you
test test test
[ color=#ff8c00 ]test[ /color ] (without space)
MsgBox, test[ code ]MsgBox, test[ /code ]
with [color=#33B5E5] colorcode [/color] dont work[ code ] with [ color=#33B5E5] colorcode [ /color ] dont work [ /code ]
with colorcode work with one-line
[ c ] with [ color=#33B5E5] colorcode [ /color ] work with one-line [ /c ]
colorcode
with more than one line
[ c ] [ color=#ff8c00 ] colorcode [ /color ]
with more than one line [ /c ]
It's ok, wasn't that much of an issue..
#6
-
Posted 14 January 2013 - 08:26 AM

No, you can only use the & once in a hotkey. The only way I know of you use a larger group of keys is to creatively use KeyWait. I am sorry, I do not have any examples.
#7
-
Posted 14 January 2013 - 10:22 AM

"My dear Mr Gyrth, I am never more serious than when I am joking."
~Albert Campion
-----------------------------------------------------------------------------------------------
Website | Demo scripts | Blog | External contact
~Albert Campion
-----------------------------------------------------------------------------------------------
Website | Demo scripts | Blog | External contact
SuperHotkey can do that
#8
-
Posted 15 January 2013 - 07:58 PM
