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