$did » History » Version 12
Per Amundsen, 02/16/2023 09:26 PM
| 1 | 1 | Per Amundsen | _Added in 1.9.0_ |
|---|---|---|---|
| 2 | |||
| 3 | 5 | Per Amundsen | *$did* |
| 4 | |||
| 5 | 8 | Per Amundsen | Returns the id of the matched dialog id during a [[on DIALOG]] [[Scripting_Events|event]]. |
| 6 | 5 | Per Amundsen | |
| 7 | *Example* |
||
| 8 | |||
| 9 | <pre> |
||
| 10 | on *:DIALOG:*:*:{ |
||
| 11 | echo -ag The matched dialog id is $did |
||
| 12 | } |
||
| 13 | </pre> |
||
| 14 | |||
| 15 | ----------------------------------------------------------------------------- |
||
| 16 | |||
| 17 | 1 | Per Amundsen | *$did([name},id,[N])* |
| 18 | |||
| 19 | Returns settings and values from a dialog item. |
||
| 20 | |||
| 21 | 9 | Per Amundsen | _See also [[/dialog]], [[on DIALOG]], [[Dialog Items]]._ |
| 22 | |||
| 23 | 1 | Per Amundsen | *Parameters* |
| 24 | |||
| 25 | 12 | Per Amundsen | table(ktable). |
| 26 | |*Parameter*|*Description*| |
||
| 27 | | [name] | If specified, name of the dialog otherwise [[$dname]] from the current [[Scripting_Events<notextile>|</notextile>event]] is used. (optional) | |
||
| 28 | | id | Id of the dialog item. | |
||
| 29 | | [N] | If N = 0, get number of lines, otherwise the Nth line for a item with multiple lines. (optional) | |
||
| 30 | 1 | Per Amundsen | |
| 31 | *Properties* |
||
| 32 | |||
| 33 | 12 | Per Amundsen | table(ktable). |
| 34 | |*Property*|*Description*| |
||
| 35 | | .text | Returns line or Nth line. | |
||
| 36 | | .len | Returns length of line or length of Nth line. | |
||
| 37 | | .lines | Returns number of lines. | |
||
| 38 | | .sel | If N = 0, returns number of lines otherwise the Nth selected line. | |
||
| 39 | | .seltext | Returns selected text in an editbox or first selected item in a listbox. | |
||
| 40 | | .selstart | Returns select start character in editbox line. | |
||
| 41 | | .selend | Returns select end character in editbox line. | |
||
| 42 | | .edited | Returns [[$true]] if text in editbox was changed, otherwise [[$false]]. | |
||
| 43 | | .state | Returns 0 = off, 1 = on, and 2 = indeterminate. | |
||
| 44 | | .next | Returns id of next control in tab key order. | |
||
| 45 | | .prev | Returns id of previous control in tab key order. | |
||
| 46 | | .visible | Returns [[$true]] if the control is visible, otherwise [[$false]]. | |
||
| 47 | | .enabled | Returns [[$true]] if the control is enabled, otherwise [[$false]]. | |
||
| 48 | | .isid | Returns [[$true]] if id exists in the dialog, otherwise [[$false]]. | |
||
| 49 | | .csel | If N is 0, returns number of checked lines, otherwise line number of the Nth checked box in a listcb control. | |
||
| 50 | | .cstate | Returns 0 = off, 1 = on for item in a listcb control (listbox created using the _check_ parameter). | |
||
| 51 | | .type | Returns the dialog item type. *(AdiIRC only)* | |
||
| 52 | 1 | Per Amundsen | |
| 53 | |||
| 54 | |||
| 55 |