From WikiChip
Difference between revisions of "mirc/identifiers/$did"
(Created page with "The '''$did''' identifier allows you to get the settings and values of controls in a dialog and use them to assist in performing the functions of buttons, radio boxes, etc. ...") |
|||
Line 42: | Line 42: | ||
* [[List of commands - mIRC|List of commands]] | * [[List of commands - mIRC|List of commands]] | ||
* [[List of identifiers - mIRC|List of identifiers]] | * [[List of identifiers - mIRC|List of identifiers]] | ||
− | |||
* [[$didtok identifier - mIRC|$didtok]] | * [[$didtok identifier - mIRC|$didtok]] | ||
* [[$dialog identifier - mIRC|$dialog]] | * [[$dialog identifier - mIRC|$dialog]] | ||
Line 48: | Line 47: | ||
* [[$didreg identifier - mIRC|$didreg]] | * [[$didreg identifier - mIRC|$didreg]] | ||
* [[/dialog command - mIRC|/dialog]] | * [[/dialog command - mIRC|/dialog]] | ||
+ | * [[/did command - mIRC|/did]] | ||
[[Category:mIRC commands]] | [[Category:mIRC commands]] |
Revision as of 06:24, 29 January 2014
The $did identifier allows you to get the settings and values of controls in a dialog and use them to assist in performing the functions of buttons, radio boxes, etc.
Synopsis
$did(<name>,<id>) $did(<name>,<id>,<N>)
Properties
- text - returns line or Nth line
- len - returns length of line or length of Nth line
- lines - returns number of lines
- sel - returns line number of Nth selected line
- seltext - returns selected text in an editbox, or first selected item in a listbox
- selstart - returns selected start character in the editbox
- selend - returns selected end character in editbox line
- edited - returns $true if text in editbox was changed, and is not empty.
- state - returns state of checkboxes, radio buttons, 0 = off, 1 = on, 2 = indeterminate (for 3stage checkbox)
- next - returns id of next control in order of tab keypress.
- prev - returns id of previous control in order of tab keypress.
- visible - returns $true if control is visible, otherwise $false
- enabled - returns $true if control is enabled, otherwise $false
- isid - returns $true if id exists in the dialog, otherwise $false
- csel - returns line number of Nth checked box in a listcb control, if N = 0, returns number of checkmarked lines
- cstate - returns 0 = off, 1 = on for item in a listcb control
Parameters
- <name> - name of the dialog
- <id> - id of the controls
- [N] - usually a line number, it can also be an id number with menus, use 0 if you want to access the editbox of a combo control.
Example
None
Compatibility
Added: mIRC v5.5
Added On: 08/01/99
Note: Individual switches were not taken into consideration.