mIRC Home    About    Download    Register    News    Help

Print Thread
A
Assassin35
Assassin35
A
I was wondering if anyone might know how you could make a script that would display your system properties (preferably a channel pop up) such as harddrive space, ram, processor, video card, etc. grin

Joined: Apr 2003
Posts: 426
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Apr 2003
Posts: 426

Joined: Dec 2002
Posts: 334
F
Fjord artisan
Offline
Fjord artisan
F
Joined: Dec 2002
Posts: 334
Go look for moodll on www.mircscripts.org smile

Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
It comes with an addon called "Simple Moo".

F
fxmakers
fxmakers
F
Or if you don't like using DLL's, that's where the COM objects come. They do not work for the moment (dispatch feature) but Khaled just fixed that for the next version.

Joined: Oct 2003
Posts: 306
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Oct 2003
Posts: 306
or use darkenginepro.dll its more completed


Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
Can you please explain more? Which object can be used for such thing? I don't think we can retrieve stats with "Wscript.Shell".

F
fxmakers
fxmakers
F
Not with Wscript.Shell (well, you can retrieve some registry values such as CPU info and OS info) but WbemScripting.SWbemLocator

Here's my old thread: https://forums.mirc.com/showflat.php?Cat=...amp;amp;fpart=1

Khaled has just fixed that. Waiting for 6.13 grin

Joined: Feb 2003
Posts: 3,412
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
Be carefull tho, i downloaded moo.dll .. and then my virus scanner told me it was a backdoor in it, then i found another place on the net "dont remember the url", but that moo.dll was virus free.. my virus scanner is Panda Titanium Antivirus 2004, also a online scanner alerted me on that DLL.. so make shure you scan the file befor start to use it..

I
Iori
Iori
I
Well, you can use cscript and WMI to retrieve system/OS/process info by running a vbscript in a console and redirecting the output to .txt, then parse the results from the .txt.

Disclaimer: This may or may not work on Win9x systems. I know there is at least some WMI capabilities on 98+, but I don't know the procedures for W9x. In the alias below, the console window is not hidden, but minimized, for this reason. (Minimized = 7, Normal = 1, and Hidden = 0)

For example, to get video card info, one of the items OP mentioned.
Note - You'd more than likely want to remove some of the "wscript.echo *" lines below. :[/b])
Code:
alias videoinfo {
  var %t = $ticks
  .comopen %t wscript.shell
  if !$comerr { .comclose %t $com(%t,run,3,bstr,command /c cscript //nologo video.vbs > stats.txt,uint,[color:red]7[/color],bool,true) }
  .play -se stats.txt 0
  .remove stats.txt
}


And here is video.vbs
Code:
'Start of video.vbs
on error resume next
set obj = getobject("winmgmts:\\.\root\cimv2")
set items = obj.execquery("select * from win32_videocontroller",,48)
for each obj in items
    wscript.echo "acceleratorcapabilities: " & obj.acceleratorcapabilities
    wscript.echo "adaptercompatibility: " & obj.adaptercompatibility
    wscript.echo "adapterdactype: " & obj.adapterdactype
    wscript.echo "adapterram: " & obj.adapterram
    wscript.echo "availability: " & obj.availability
    wscript.echo "capabilitydescriptions: " & obj.capabilitydescriptions
    wscript.echo "caption: " & obj.caption
    wscript.echo "colortableentries: " & obj.colortableentries
    wscript.echo "configmanagererrorcode: " & obj.configmanagererrorcode
    wscript.echo "configmanageruserconfig: " & obj.configmanageruserconfig
    wscript.echo "creationclassname: " & obj.creationclassname
    wscript.echo "currentbitsperpixel: " & obj.currentbitsperpixel
    wscript.echo "currenthorizontalresolution: " & obj.currenthorizontalresolution
    wscript.echo "currentnumberofcolors: " & obj.currentnumberofcolors
    wscript.echo "currentnumberofcolumns: " & obj.currentnumberofcolumns
    wscript.echo "currentnumberofrows: " & obj.currentnumberofrows
    wscript.echo "currentrefreshrate: " & obj.currentrefreshrate
    wscript.echo "currentscanmode: " & obj.currentscanmode
    wscript.echo "currentverticalresolution: " & obj.currentverticalresolution
    wscript.echo "description: " & obj.description
    wscript.echo "deviceid: " & obj.deviceid
    wscript.echo "devicespecificpens: " & obj.devicespecificpens
    wscript.echo "dithertype: " & obj.dithertype
    wscript.echo "driverdate: " & obj.driverdate
    wscript.echo "driverversion: " & obj.driverversion
    wscript.echo "errorcleared: " & obj.errorcleared
    wscript.echo "errordescription: " & obj.errordescription
    wscript.echo "icmintent: " & obj.icmintent
    wscript.echo "icmmethod: " & obj.icmmethod
    wscript.echo "inffilename: " & obj.inffilename
    wscript.echo "infsection: " & obj.infsection
    wscript.echo "installdate: " & obj.installdate
    wscript.echo "installeddisplaydrivers: " & obj.installeddisplaydrivers
    wscript.echo "lasterrorcode: " & obj.lasterrorcode
    wscript.echo "maxmemorysupported: " & obj.maxmemorysupported
    wscript.echo "maxnumbercontrolled: " & obj.maxnumbercontrolled
    wscript.echo "maxrefreshrate: " & obj.maxrefreshrate
    wscript.echo "minrefreshrate: " & obj.minrefreshrate
    wscript.echo "monochrome: " & obj.monochrome
    wscript.echo "name: " & obj.name
    wscript.echo "numberofcolorplanes: " & obj.numberofcolorplanes
    wscript.echo "numberofvideopages: " & obj.numberofvideopages
    wscript.echo "pnpdeviceid: " & obj.pnpdeviceid
    wscript.echo "powermanagementcapabilities: " & obj.powermanagementcapabilities
    wscript.echo "powermanagementsupported: " & obj.powermanagementsupported
    wscript.echo "protocolsupported: " & obj.protocolsupported
    wscript.echo "reservedsystempaletteentries: " & obj.reservedsystempaletteentries
    wscript.echo "specificationversion: " & obj.specificationversion
    wscript.echo "status: " & obj.status
    wscript.echo "statusinfo: " & obj.statusinfo
    wscript.echo "systemcreationclassname: " & obj.systemcreationclassname
    wscript.echo "systemname: " & obj.systemname
    wscript.echo "systempaletteentries: " & obj.systempaletteentries
    wscript.echo "timeoflastreset: " & obj.timeoflastreset
    wscript.echo "videoarchitecture: " & obj.videoarchitecture
    wscript.echo "videomemorytype: " & obj.videomemorytype
    wscript.echo "videomode: " & obj.videomode
    wscript.echo "videomodedescription: " & obj.videomodedescription
    wscript.echo "videoprocessor: " & obj.videoprocessor


next
'End of video.vbs


Joined: Jan 2003
Posts: 2,125
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,125
Very interesting! I didn't know anything about WMI but I do now smile

I
Iori
Iori
I
Yeah it is interesting, and useful. :[/b])
You may like this tool too. I meant to include this link in the above post The Scriptomatic Tool

Joined: Oct 2003
Posts: 306
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Oct 2003
Posts: 306
sometimes use a main code of virus to do a comunication
but its true usualy was a virus

Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
Instead of command you can use % $+ comspec% for better compatibility laugh

I
Iori
Iori
I
I know that wink It was only a simple demo, so I used the simpler command, which also works on both 9x and NT. laugh
That and the "7" for windowstyle really were ony there in case anyone with Win98/ME wanted to try it and see if it worked on 9x. smile

Joined: Apr 2003
Posts: 426
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Apr 2003
Posts: 426
If you download it from the official website, you shouldn't have any issues with it.

And yes, some virus scanners do think its a virus because of the way it retrieves system stats (according to the creator of the dll).


Link Copied to Clipboard