| View previous topic :: View next topic |
| Author |
Message |
kartal Guest
|
Posted: Thu Apr 03, 2008 8:03 pm Post subject: shift+left win, I cannot make it work? |
|
|
Hi
I am trying to assign,
left shift and win+t = shift+alt+ctrl+F11.
What is the proper way to assign? Below line does not work
+#t::!+^F11 |
|
| Back to top |
|
 |
BoBoĻ Guest
|
Posted: Thu Apr 03, 2008 9:04 pm Post subject: |
|
|
What at the manual told you that your attempt should work?  |
|
| Back to top |
|
 |
kartal Guest
|
Posted: Thu Apr 03, 2008 9:55 pm Post subject: |
|
|
| well it looked like manual did not really cover much in this multiple appending shortcuts thing. |
|
| Back to top |
|
 |
jaco0646
Joined: 07 Oct 2006 Posts: 666 Location: MN, USA
|
|
| Back to top |
|
 |
kartal Guest
|
Posted: Fri Apr 04, 2008 1:59 am Post subject: |
|
|
| Guys, thanks for suggestions but I yet do not know the answer. I read the "send" page and I yet do not know how to assign appending group of keys to another group of keys. If I was a programmer I would not have begged for an answer anyways. |
|
| Back to top |
|
 |
kartal Guest
|
Posted: Fri Apr 04, 2008 2:02 am Post subject: |
|
|
| Maybe you should start a paid service which I would be happy to pay. Obviously I am not getting any free help or answer. Only thing that I got so far in 6 hours is " read the damn manual", if you call this as free service. |
|
| Back to top |
|
 |
[VxE]
Joined: 07 Oct 2006 Posts: 1494
|
Posted: Fri Apr 04, 2008 2:20 am Post subject: |
|
|
One thing to note: your keyboard's auto-repeat may not function with this particular hotkey. A straight remap, as you attempted in the OP, will have issues with releasing the modifier keys, due to the way remaps are translated into AHK script.
btw: there's nothing bad about reading the friendly manual. _________________ My Home Thread
More Common Answers: [1]. It's in the FAQ [2]. Ternary ( a ? b : c ) guide [3]. Post code inside [code][/code] tags ! |
|
| Back to top |
|
 |
kartal Guest
|
Posted: Fri Apr 04, 2008 2:41 am Post subject: |
|
|
| [VxE] thanks for further explanation. But my solution does not work anyways. And I tried to read the manual as much as I could and when I needed it in the past. And my limited knowledge even after reading some of the manual does not lead to a solution to my current problem. |
|
| Back to top |
|
 |
kartal Guest
|
Posted: Fri Apr 04, 2008 3:52 am Post subject: |
|
|
Btw
This code does not work here. shift+win+t is not passing as ctrl+alt+shift+F11
+#t::Send !^+{F11} |
|
| Back to top |
|
 |
kartal Guest
|
Posted: Fri Apr 04, 2008 6:10 am Post subject: |
|
|
You would think that this should work
LControl & LWin & t::SendInput +!^{F11}
But it does not.
Funny enough
LControl & LWin::SendInput +!^{F11} ( WORKS)
LWin & t::SendInput +!^{F11} ( WORKS)
LAlt & t::SendInput +!^{F11} ( WORKS)
I would like to hear from The Manual personalities about why this is not working? |
|
| Back to top |
|
 |
Veil
Joined: 01 Apr 2008 Posts: 22 Location: Netherlands
|
Posted: Fri Apr 04, 2008 11:19 am Post subject: |
|
|
What if you use GetKeyState for the 3rd key?
| Code: | LControl & LWin::
If (GetKeyState("t","p") = D) {
SendInput +!^{F11}
}
Return
|
|
|
| Back to top |
|
 |
The Manual personalities Guest
|
Posted: Fri Apr 04, 2008 1:30 pm Post subject: sarcasm |
|
|
| AHK Help File wrote: | | & An ampersand may be used between any two keys or mouse buttons to combine them into a custom hotkey. See below for details. |
| below wrote: | | You can define a custom combination of two keys (except joystick buttons) by using " & " between them. |
|
|
| Back to top |
|
 |
kartal Guest
|
Posted: Fri Apr 04, 2008 2:50 pm Post subject: |
|
|
Hi The Manual personalities
I understand that it works with only 2 keys. What I do not understand is that why is it limited to 2 keys? win+shift+t is a legitimate key combination if you are trying to utilize your keyboard . It is not like I am asking to use win+volume+middle mouse+lefmouse+rightmouse+printscreen+caps release as key a combination. |
|
| Back to top |
|
 |
jaco0646
Joined: 07 Oct 2006 Posts: 666 Location: MN, USA
|
Posted: Fri Apr 04, 2008 3:54 pm Post subject: |
|
|
The ampersand is only used to turn a normal key into a modifier (the Help File calls this a prefix key). It allows you to make hotkeys like: | Code: | a & b::MsgBox, You held " a " and pressed " b "
1 & 2::MsgBox, You held " 1 " and pressed " 2 " |
...but NOT: | Code: | a & b & c::MsgBox, You held " a " and " b " and pressed " c "
1 & 2 & 3::MsgBox, You held " 1 " and " 2 " and pressed " 3 " |
When using any or all of the 4 normal modifiers (Win, Alt, Ctrl, Shift) an ampersand is not needed because these keys already are modifiers. | AHK Help File wrote: | | To use more than one modifier with a hotkey, list them consecutively (the order does not matter). |
| Code: | +#t::MsgBox, You pressed: Shift-Win-t
^#t::MsgBox, You pressed: Ctrl-Win-t
+^#!t::MsgBox, You pressed: Shift-Ctrl-Win-Alt-t |
That last one is a fistful, which is about the limit of a useful hotkey. _________________ http://autohotkey.net/~jaco0646/ |
|
| Back to top |
|
 |
kartal Guest
|
Posted: Fri Apr 04, 2008 4:19 pm Post subject: |
|
|
jaco0646 thank you
here is the problem,
If I do not have any win modifier used in my ahk,
"+^#!t::MsgBox, You pressed: Shift-Ctrl-Win-Alt-t" this works as you have posted
however if I have a win key modifier before that line it does not work ,
1: #t:F11
2: +^#!t::MsgBox, You pressed: Shift-Ctrl-Win-Alt-t
In this scenario 2nd line does not work. If I disable 1st line it works. |
|
| Back to top |
|
 |
|