mIRC Home    About    Download    Register    News    Help

Print Thread
#138716 05/01/06 08:45 PM
Joined: Jun 2005
Posts: 127
H
HAMM3R Offline OP
Vogon poet
OP Offline
Vogon poet
H
Joined: Jun 2005
Posts: 127
Hey. Why does $isalias(run) return $false? Do I need to include all parameters when checking it? Im trying to determine if something is an alias with an on input command, and on various ones like //run and /dcc im getting problems. Anyone know a sure way to determine if an alias exists (mirc or custom)?


-- HAMM3R (aka: alhammer)
http://www.HAMM3R.net
#138717 05/01/06 08:56 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
mostly, its not an alias but a command
/say /run /join /part /echo /set
sadly I don't have a complete list

/notepad run notepad

#138718 05/01/06 09:31 PM
Joined: Jun 2005
Posts: 127
H
HAMM3R Offline OP
Vogon poet
OP Offline
Vogon poet
H
Joined: Jun 2005
Posts: 127
Yeah, you're right. $isalias only reconizes custom aliases. Anyone know how to check if it's an mIRC command?


-- HAMM3R (aka: alhammer)
http://www.HAMM3R.net
#138719 06/01/06 12:32 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
check it againts a list of mirc commands?

#138720 06/01/06 12:33 AM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
You can read mIRC's exe or the help file for existance of a command with binvars.


Gone.
#138721 06/01/06 01:01 AM
Joined: Jun 2005
Posts: 127
H
HAMM3R Offline OP
Vogon poet
OP Offline
Vogon poet
H
Joined: Jun 2005
Posts: 127
As I'm far from confident in my abilities to pull that off, could you show me an example script? Ive never worked with binvars before. Thanks.


-- HAMM3R (aka: alhammer)
http://www.HAMM3R.net
#138722 06/01/06 01:23 AM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Well it'd be a bit silly to reinvent the wheel, so here's $ismirc by Sigh, although I think this would have been a good moment to tackle binvars yourself.


Gone.

Link Copied to Clipboard