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/Alt Sequence

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Hülyesamu



Joined: 24 Sep 2004
Posts: 22

PostPosted: Wed Oct 20, 2004 9:19 am    Post subject: Shift/Alt Sequence Reply with quote

Hi, I've found a kind of surprising behavior of a complete group of hotkeys.

This is an example, and seems to be quite simple:

Quote:
!+s::Send, Szoba


In an application, even in the Notepad the problem exists. When you push the three buttons, certeanly you are unable to do it perfectly one time, so you push the Shift and The Alt, and then the "s". But it doesn't work always, and I started to play with it, and found if I press Alt, and then press Shift, and then the "S", the script works, but, if I push Shift, Alt, "S", respectively, the first letter of the parameter of the send function is missing (in this case, it sends "zoba"). Then I tried a string starting with a different letter than "S" (since the 'S' key is pressed when sending the string, the same chracter as being sent to the application), but found no difference.

And, I tried to make an absurd change (+! in the place of !+):

Quote:
+!s::Send, Szoba


but there is no difference comared to the first code.

In a Shift+Alt combo, makes the sequence of the modifier keys (like Shift and Alt) difference?
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10716

PostPosted: Wed Oct 20, 2004 11:06 am    Post subject: Reply with quote

This happens because of the ALT key issue mentioned in the FAQ. There is also a work-around posted there. Please check it out and let me know if it's not enough: http://www.autohotkey.com/docs/FAQ.htm
Back to top
View user's profile Send private message Send e-mail
Hülyesamu



Joined: 24 Sep 2004
Posts: 22

PostPosted: Wed Oct 20, 2004 7:51 pm    Post subject: Reply with quote

This is a strange thing cause this made the behaviour of the key the opposite:

up till now, the Shift+Alt+S was the problematic, but now with the

Quote:
+!s::Send, {Altup}{Alt}Szoba


codeline, the Alt+Shift+S became the problematic, and the upper works well.

It's a supid problem, I now. I think I will learn to press the keys in the right order Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
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