| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Tue Nov 17, 2009 6:25 pm Post subject: How to make two hotkeys for the same action? |
|
|
~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? |
|
| Back to top |
|
 |
Leef_me
Joined: 08 Apr 2009 Posts: 1158 Location: San Diego, California
|
Posted: Tue Nov 17, 2009 6:28 pm Post subject: |
|
|
This seems more elegant to me. What do you think ?
| Code: | ~Tab & NumPad8::
!-::
{
IfWinExist, CatiAtHome
WinActivate
Send 11+{enter 2}
}
return |
|
|
| Back to top |
|
 |
Guest
|
Posted: Tue Nov 17, 2009 6:28 pm Post subject: |
|
|
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 |
|
|
| Back to top |
|
 |
|