AutoHotkey Community

It is currently May 27th, 2012, 7:25 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Shift/Alt Sequence
PostPosted: October 20th, 2004, 10:19 am 
Offline

Joined: September 24th, 2004, 4:42 pm
Posts: 22
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 20th, 2004, 12:06 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 20th, 2004, 8:51 pm 
Offline

Joined: September 24th, 2004, 4:42 pm
Posts: 22
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 :)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: HotkeyStick, oldbrother, sjc1000, thor, Yahoo [Bot] and 58 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group