mIRC Homepage
Posted By: MTec89 dll - 12/01/04 09:33 PM
is there a dll that will say all of the stuff that is running?
edit: all the programs and etc that are running
Posted By: PastMaster Re: dll - 13/01/04 07:28 AM
Don't know if someone's done a .DLL for this, but you might want to dig a program called EndItAll off the usual freeware/shareware sites. This shows all running processes, unlike Ctrl-Alt-Delete in Windows.

PM
Posted By: tidy_trax Re: dll - 13/01/04 03:48 PM
"drspliff" made a process control dll on mircscripts.org, if that's what you mean: all running process..
Posted By: MTec89 Re: dll - 13/01/04 04:54 PM
edit:
i used mdx and put that info in a dialog. and when i /echo the $did(1).seltext it returns everything in a weird format.
how can i just get the path, e.x. C:\winnt\, not C;\winnt\explorer.exe?

and how can i just get the number 1792?

Code:
0 +fs 0 0 0 [color:red]C:\WINNT\[/color]explorer.exe 	+fs 0 0 0 [color:red]1792[/color] 	+fs 0 0 0 0.23MB
0 +fs 0 0 0 [color:red]F:\tools\mdxstudio\[/color]MDXstudio.exe 	+fs 0 0 0 [color:red]1300[/color] 	+fs 0 0 0 1.13MB
0 +fs 0 0 0 [color:red]C:\Program Files\MSN Messenger\[/color]msnmsgr.exe 	+fs 0 0 0 [color:red]552[/color] 	+fs 0 0 0 4.46MB
Posted By: Doqnach Re: dll - 13/01/04 06:28 PM
$nofile(filename)
Returns the path in filename without the actual filename.

$nopath(filename)

Returns filename without a path if it has one.

$nopath(c:\mirc\mirc.exe) returns mirc.exe

Posted By: MTec89 Re: dll - 13/01/04 06:42 PM
tidy hel;ped me with all of that, thanks though
Posted By: neophyte Re: dll - 13/01/04 11:41 PM
To get the number 1792, you need to use $gettok()

Example:

$gettok(0 +fs 0 0 0 C:\WINNT\explorer.exe +fs 0 0 0 1792 +fs 0 0 0 0.23MB,11,32)

If you've not used $gettok() before, its simple.

Tokens are simply characters (either numbers/letters/special characters, etc), in a string, that are seperated by the use of a special character (such as a comma, space, or pretty much any other character).

For instance, there are 32 "tokens" within the above sentance (when using the space as a seperator).
You'll see mIRC use $1, $2, ... $n to obtain tokens in some cases. $1 is the first token (for the above sentance, it would be "Tokens").

The first part of $gettok() is the text you want to get the token from, the second part is the particular token you want (ie, the tenth token), the last number is the seperator (in this case, a space)
Posted By: MTec89 Re: dll - 16/01/04 12:11 AM
that doesnt work with the stuff with spaced filenames
Posted By: MTec89 Re: dll - 17/01/04 02:25 AM
hello? can someone please offer me some more help?
Posted By: Iori Re: dll - 17/01/04 02:44 AM
//echo -a $gettok(0 +fs 0 0 0 C:\WINNT\explorer.exe +fs 0 0 0 1792 +fs 0 0 0 0.23MB,-6,32)
Posted By: MTec89 Re: dll - 17/01/04 04:39 AM
thanks, unfortunatly i lost the code for the target directory, like C:\program files\msn messenger (from C:\program files\MSN Messenger\msnmsgr.exe)
Posted By: Iori Re: dll - 18/01/04 04:27 AM
$left($nofile($gettok($gettok(data,6-,32),1,9)),-1)
Posted By: MTec89 Re: dll - 18/01/04 02:44 PM
thankyou:)
© mIRC Discussion Forums