AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

shift+left win, I cannot make it work?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
kartal
Guest





PostPosted: Thu Apr 03, 2008 8:03 pm    Post subject: shift+left win, I cannot make it work? Reply with quote

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





PostPosted: Thu Apr 03, 2008 9:04 pm    Post subject: Reply with quote

What at the manual told you that your attempt should work? Confused
Back to top
kartal
Guest





PostPosted: Thu Apr 03, 2008 9:55 pm    Post subject: Reply with quote

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

PostPosted: Fri Apr 04, 2008 12:22 am    Post subject: Reply with quote

Send
_________________
http://autohotkey.net/~jaco0646/
Back to top
View user's profile Send private message Visit poster's website
kartal
Guest





PostPosted: Fri Apr 04, 2008 1:59 am    Post subject: Reply with quote

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





PostPosted: Fri Apr 04, 2008 2:02 am    Post subject: Reply with quote

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

PostPosted: Fri Apr 04, 2008 2:20 am    Post subject: Reply with quote

Code:
+#t::Send !^+{F11}

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
View user's profile Send private message
kartal
Guest





PostPosted: Fri Apr 04, 2008 2:41 am    Post subject: Reply with quote

[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





PostPosted: Fri Apr 04, 2008 3:52 am    Post subject: Reply with quote

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





PostPosted: Fri Apr 04, 2008 6:10 am    Post subject: Reply with quote

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

PostPosted: Fri Apr 04, 2008 11:19 am    Post subject: Reply with quote

What if you use GetKeyState for the 3rd key?

Code:
LControl & LWin::
  If (GetKeyState("t","p") = D) {
    SendInput +!^{F11}
  }
Return
Back to top
View user's profile Send private message Send e-mail
The Manual personalities
Guest





PostPosted: Fri Apr 04, 2008 1:30 pm    Post subject: sarcasm Reply with quote

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





PostPosted: Fri Apr 04, 2008 2:50 pm    Post subject: Reply with quote

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

PostPosted: Fri Apr 04, 2008 3:54 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
kartal
Guest





PostPosted: Fri Apr 04, 2008 4:19 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group