mIRC Home    About    Download    Register    News    Help

Print Thread
#185809 14/09/07 02:54 PM
Joined: Mar 2006
Posts: 29
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Mar 2006
Posts: 29
Hello. ive been trying for awhile, but havent yet figured out how to take the output of a system command (like you would usually type in your command prompt) and use it in mIRC. You could compare this to how /exec (or /exec -o to send the output to the active wid, like a channel) works in xchat or other clients. Example:

/exec -o ping google.com


would send the following to the $active channel:



C:\Documents and Settings\Tyler>ping google.com

Pinging google.com [64.233.187.99] with 32 bytes of data:

Reply from 64.233.187.99: bytes=32 time=28ms TTL=241
Reply from 64.233.187.99: bytes=32 time=29ms TTL=241
Reply from 64.233.187.99: bytes=32 time=28ms TTL=241
Reply from 64.233.187.99: bytes=32 time=30ms TTL=241

Ping statistics for 64.233.187.99:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 28ms, Maximum = 30ms, Average = 28ms





... or something along those lines. please help me if you can ;o




-tyler-
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
You can also use COM objects, here is an example script I wrote a little while ago.


Link Copied to Clipboard