mIRC Home    About    Download    Register    News    Help

Print Thread
$dll(moo.dll,osinfo,_) #2785 21/12/02 12:17 AM
Joined: Dec 2002
Posts: 45
P
piko Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Dec 2002
Posts: 45
well, if you use this you will get for an example: "Windows XP Professional, Service Pack 1 (5.1 - 2600)"
well, what I want to do is an alias that returns like "WinXP" instead of " Windows XP Professional, Service Pack 1 (5.1 - 2600)"

well, hope you can help me with this.. laugh

Re: $dll(moo.dll,osinfo,_) #2786 21/12/02 12:54 AM
Joined: Dec 2002
Posts: 1,321
H
Hammer Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
I've never used moo.dll, but whichever portion returns the os (let's assume it's $dll(moo.dll,osinfo,_) for this example), just
Code:

  var %osinfo = Windows XP Professional, Service Pack 1 (5.1 - 2600)
  var %os = $replace($dll(moo.dll,osinfo,_),%osinfo,WinXP)

Or just don't call moo.dll for that, just use the string literal instead. Where you would call $dll(moo.dll,osinfo,_), just put, literally, WinXP



DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
Re: $dll(moo.dll,osinfo,_) #2787 21/12/02 06:39 AM
Joined: Dec 2002
Posts: 18
W
watcher Offline
Pikka bird
Offline
Pikka bird
W
Joined: Dec 2002
Posts: 18
//say OS: Win $+ $os ^-^


-watcher
Re: $dll(moo.dll,osinfo,_) #2788 21/12/02 10:33 AM
Joined: Dec 2002
Posts: 45
P
piko Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Dec 2002
Posts: 45
thx for your help guys. laugh