mIRC Home    About    Download    Register    News    Help

Print Thread
Save output of a command to file or clipboard #257648 02/05/16 01:40 AM
Joined: Nov 2014
Posts: 5
T
TKnowles Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Nov 2014
Posts: 5
I am wondering if there is any way to take the output of the /who command and save in a file or copy to clipboard, I tried this:
/log on Status -f D:\who.txt - gives * Logging Status to 'D:\who.log'
also tried
/log on Status -f D:\who.log - gives * Logging Status to 'D:\who.log'
/who - outputs a lot of data
/log off Status -f D:\who.txt and tried just /log off Status - gives * Logging for Status halted
No who.txt or who.log to be found

Re: Save output of a command to file or clipboard [Re: TKnowles] #257659 03/05/16 04:30 AM
Joined: Feb 2015
Posts: 243
O
OrFeAsGr Offline
Fjord artisan
Offline
Fjord artisan
O
Joined: Feb 2015
Posts: 243
Use *:*:raw event. Find out the numerics of WHO
because i dont remember it right now let's say it is 1
In tha case you'd have to use this scipt:
Code:
*:*:raw {
if ($numeric == 1) {
.write who.txt $1-
}
}

You might wanna double check the format of the event in the help files because i havent used it lately and i might be doing some typo
Good luck!

Re: Save output of a command to file or clipboard [Re: TKnowles] #257668 03/05/16 06:15 PM
Joined: Jun 2003
Posts: 994
C
CtrlAltDel Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
Raw 352:*: .write who.txt $1-

Last edited by CtrlAltDel; 03/05/16 06:16 PM.

I refuse to engage in a battle of wits with an unarmed person. wink
Re: Save output of a command to file or clipboard [Re: OrFeAsGr] #257669 03/05/16 07:22 PM
Joined: Nov 2014
Posts: 5
T
TKnowles Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Nov 2014
Posts: 5
I tried adding that as a popup, changed the numeric to 352, gives unknown command, specifically *:RAW Unknown command

Re: Save output of a command to file or clipboard [Re: CtrlAltDel] #257670 03/05/16 07:23 PM
Joined: Nov 2014
Posts: 5
T
TKnowles Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Nov 2014
Posts: 5
That gives me message * You are not on a channel

Re: Save output of a command to file or clipboard [Re: TKnowles] #257674 04/05/16 03:30 PM
Joined: Jun 2003
Posts: 994
C
CtrlAltDel Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
it goes in remotes
Raw 352:*: .write who.txt $1-
then just /who #channel


I refuse to engage in a battle of wits with an unarmed person. wink