AutoHotkey Community

It is currently May 27th, 2012, 11:45 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: October 20th, 2005, 9:50 am 
Offline

Joined: July 24th, 2005, 4:29 am
Posts: 27
Location: Rheinland
I often assign different hotkeys to the same action, so I would like to have a syntax that would allow me to put all those hotkeys in one line.

What about something like
Code:
~!a:: ~!b::
Do this and that
Return

with space or TAB as delimiter?

Thanks

Icfu


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 20th, 2005, 10:50 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
What would be the advantage over:
Code:
~!a::
~!b::
  Do this and that
Return
?

or
Code:
~!a:: GoSub, Routine
~!b:: GoSub, Routine

Routine:
  Do this and that
Return
?

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 20th, 2005, 11:45 am 
Offline

Joined: July 24th, 2005, 4:29 am
Posts: 27
Location: Rheinland
Imagine 20 instead of two hotkeys, then check again how it looks. I prefer to see the action vertically extended and using all space, not the used hotkeys. If you place the hotkeys in one line, the need to scroll will be lowered and therefore the script will be more readable.

The second solution already looks like it contains redundant information on first sight, even with only two hotkeys.

If it is easy to implement and doesn't hurt anybody I don't see a reason to not implement it. Anyway, it was just a request, not an order and there is no need for a hurry. ;)

Thanks for your reply

Icfu


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 20th, 2005, 2:33 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
It's a good idea. However, due to the new remapping syntax in v1.0.40, I think the changes to syntax parsing would be too complex to be justified by the relatively small benefit.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 20th, 2005, 2:59 pm 
Offline

Joined: July 24th, 2005, 4:29 am
Posts: 27
Location: Rheinland
Too bad, but it sounds like a good argument unfortunately. I hadn't thought about that new a::b stuff.

Thanks anyway

Icfu


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher and 3 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