AutoHotkey Community

It is currently May 26th, 2012, 11:47 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Aliasing
PostPosted: August 31st, 2008, 9:52 am 
Offline

Joined: March 11th, 2008, 11:36 pm
Posts: 291
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Aliasing
PostPosted: August 31st, 2008, 1:19 pm 
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)...


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users 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