$get » History » Version 5
Per Amundsen, 12/13/2019 06:24 PM
| 1 | 1 | Per Amundsen | _Added in 2.3_ |
|---|---|---|---|
| 2 | |||
| 3 | *$get(N/nick,[N])* |
||
| 4 | |||
| 5 | Returns the nickname and filename of the Nth dcc get connection. |
||
| 6 | |||
| 7 | *Parameters* |
||
| 8 | |||
| 9 | N/nick - Nick or the Nth connection. |
||
| 10 | 2 | Per Amundsen | [N] - The Nth nick match. |
| 11 | 1 | Per Amundsen | |
| 12 | *Properties* |
||
| 13 | |||
| 14 | 5 | Per Amundsen | .wid - *TODO* |
| 15 | -hwnd - *TODO* |
||
| 16 | 1 | Per Amundsen | .cid - Returns the connection id. |
| 17 | .path - Returns the file path. |
||
| 18 | .file - Returns the file name. |
||
| 19 | 4 | Per Amundsen | .size - Returns the file size in bytes. |
| 20 | 3 | Per Amundsen | .rcvd - Returns the number of bytes received. |
| 21 | 1 | Per Amundsen | .pc - Returns the percent complete. |
| 22 | .secs - Returns number of seconds the transfer has been open. |
||
| 23 | .done - Returns [[$true]] if transfer was successful, otherwise [[$false]]. |
||
| 24 | .resume - Returns resume position if file was resumed. |
||
| 25 | .cps - Returns a estimate bytes per second. |
||
| 26 | .status - Returns "sent" and "failed" if a transfer has been sent successfully or failed. |
||
| 27 | .ip - Returns the remote ip address. |
||
| 28 | 5 | Per Amundsen | .port - Returns the remote port. *(AdiIRC only)* |
| 29 | 1 | Per Amundsen | |
| 30 | *Example* |
||
| 31 | |||
| 32 | <pre> |
||
| 33 | ; Print number of GET transfers. |
||
| 34 | //echo -ag $get(0) |
||
| 35 | |||
| 36 | ; Print filename for the first GET transfer. |
||
| 37 | //echo -ag $get(1).file |
||
| 38 | </pre> |