AutoHotkey Community

It is currently May 26th, 2012, 11:26 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: November 17th, 2009, 7:25 pm 
~Tab & NumPad8::
{
IfWinExist, CatiAtHome
WinActivate
Send 11+{enter 2}
}
return



!-::
{
IfWinExist, CatiAtHome
WinActivate
Send 11+{enter 2}
}
return


Is there a more elegant way to combine two shortcuts for the same thing?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2009, 7:28 pm 
Online

Joined: April 8th, 2009, 7:49 pm
Posts: 6067
Location: San Diego, California
This seems more elegant to me. What do you think ?
Code:
~Tab & NumPad8::
!-::
{
IfWinExist, CatiAtHome
WinActivate
Send 11+{enter 2}
}
return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2009, 7:28 pm 
u have few options:
1.
Code:
a::
b::
msgbox
return
 

2.
Code:
a:
gosub, function
;do something
return
b::
gosub, function
;do something different
return
function:
msgbox
return


Report this post
Top
  
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: Cerberus, Leef_me, Maestr0, rbrtryn, XstatyK and 72 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