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 

Aliasing

 
Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
heresy



Joined: 11 Mar 2008
Posts: 291

PostPosted: Sun Aug 31, 2008 8:52 am    Post subject: Aliasing Reply with quote

pseudo code
Code:
#Alias RegExMatch() RE_M ;built-in function
#Alias WinMenuSelectItem SelectMenu ;bulit-in command
#Alias A_DetectHiddenWindows A_DHW ;built-in variable

RE_M(Haystack, "hey it works now")
RegExMatch(Haystack, "it still works too")
SelectMenu, Cool, It, Works
MsgBox % A_DHW

_________________
Easy WinAPI - Dive into Windows API World
Benchmark your AutoHotkey skills at PlayAHK.com
Back to top
View user's profile Send private message
Guest






PostPosted: Sun Aug 31, 2008 12:19 pm    Post subject: Re: Aliasing Reply with quote

Place what to assign 1st...

Code:
#alias match RegExMatch()
#alias MenuItemSelect WinMenuSelectItem
#alias A_DHW A_DetectHiddenWindows
...or...
Code:
#define match RegExMatch()
#define MenuItemSelect WinMenuSelectItem
#define A_DHW A_DetectHiddenWindows

...but otherwise yeah...also I recommended HotVar's waaay back when...
...also I'd like to be able to override built-ins, like...

Code:
#define A_Now A_Now()

...to re-route it to my own function...of course any use of A_Now inside A_Now() would get the real built-in...(not an insane loop)...
Back to top
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Wish List 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