From WikiChip
Difference between revisions of "mirc/commands/did"
(typo fixed) |
(→Synopsis) |
||
(21 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{mirc title|/did Command}} | ||
The '''/did command''' allows you to modify the values of controls in a dialog. | The '''/did command''' allows you to modify the values of controls in a dialog. | ||
== Synopsis == | == Synopsis == | ||
− | /did - | + | /did -ftebvhnmcukradiogjslz <name> <id> [n] [text | filename | start [end] ] |
== Switches == | == Switches == | ||
Line 14: | Line 15: | ||
* '''-n''' - enables editbox | * '''-n''' - enables editbox | ||
* '''-m''' - disables editbox | * '''-m''' - disables editbox | ||
− | * '''-c''' - check a checkbox/radio/list/combo/ line, can be used to set the | + | * '''-c''' - check a checkbox/radio/list/combo/ line, can be used to set the selected text in an edibox/combo drop control |
− | * '''-u''' - uncheck a checkbox/radio/list/combo line, used with -c, can be used to mark a 3dstate checkbox as indeterminate | + | * '''-u''' - uncheck a checkbox/radio/list/combo line, used with -c, can be used to mark a 3dstate checkbox as indeterminate, used with -f, sets the focus on a tab control |
− | * '''-k''' - used with - | + | * '''-k''' - used with -c and -u, keeps other selections in a listbox |
* '''-s''' - checks the checkbox of an item in a listbox control that uses checkboxes | * '''-s''' - checks the checkbox of an item in a listbox control that uses checkboxes | ||
* '''-l''' - unchecks the checkbox of an item in a listbox control that uses checkboxes | * '''-l''' - unchecks the checkbox of an item in a listbox control that uses checkboxes | ||
* '''-r''' - clears all text in <id> | * '''-r''' - clears all text in <id> | ||
− | * '''-a''' - appends text to the end of a control or a menu | + | * '''-a''' - appends text to the end of a control or adds an item to a menu |
* '''-d''' - deletes the Nth line in a listbox/combo | * '''-d''' - deletes the Nth line in a listbox/combo | ||
− | * '''-i''' - insert line in a listbox/combo or to a menu | + | * '''-i''' - insert line in a listbox/combo or inserts an item to a menu |
* '''-o''' - overwrite the Nth line in a listbox/combo with text | * '''-o''' - overwrite the Nth line in a listbox/combo with text | ||
* '''-g''' - set a new icon/bmp to an icon control | * '''-g''' - set a new icon/bmp to an icon control | ||
Line 31: | Line 32: | ||
* '''<name>''' - name of the dialog | * '''<name>''' - name of the dialog | ||
* '''<id>''' - id of the controls, you can use the form N-N1,N2-N3 to change multiple ids at once, 1-5,6,9 would change the following ids: 1,2,3,4,5,6,9 | * '''<id>''' - id of the controls, you can use the form N-N1,N2-N3 to change multiple ids at once, 1-5,6,9 would change the following ids: 1,2,3,4,5,6,9 | ||
− | * '''[n]''' - usually a line number, it can also be an id number with menus, use 0 if you want to access the | + | * '''[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. |
* '''[text]''' - the text parameter if applicable | * '''[text]''' - the text parameter if applicable | ||
* '''[filename]''' - used with -g | * '''[filename]''' - used with -g | ||
Line 37: | Line 38: | ||
== Example == | == Example == | ||
− | + | You can check the {{mIRC|dialog components}} page for examples of /did per control | |
== Compatibility == | == Compatibility == | ||
− | + | {{mIRC compatibility|5.5}} | |
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == | ||
* [[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]] | ||
− | * | + | * {{mIRC|$did}} |
− | * | + | * {{mIRC|$didtok}} |
− | * | + | * {{mIRC|$dialog}} |
− | * | + | * {{mIRC|$didwm}} |
− | * | + | * {{mIRC|$didreg}} |
− | * | + | * {{mIRC|/dialog}} |
+ | {{mIRC command list}} | ||
− | [[Category:mIRC commands]] | + | [[Category:mIRC commands|did command - mIRC]] |
Latest revision as of 12:46, 12 July 2020
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The /did command allows you to modify the values of controls in a dialog.
Synopsis[edit]
/did -ftebvhnmcukradiogjslz <name> <id> [n] [text | filename | start [end] ]
Switches[edit]
- -f - set focus on <id>, use -fu to set a tab on focus
- -t - set <id> as default button
- -e - enable <id>
- -b - disable <id>
- -v - make <id> visible
- -h - hide <id>
- -n - enables editbox
- -m - disables editbox
- -c - check a checkbox/radio/list/combo/ line, can be used to set the selected text in an edibox/combo drop control
- -u - uncheck a checkbox/radio/list/combo line, used with -c, can be used to mark a 3dstate checkbox as indeterminate, used with -f, sets the focus on a tab control
- -k - used with -c and -u, keeps other selections in a listbox
- -s - checks the checkbox of an item in a listbox control that uses checkboxes
- -l - unchecks the checkbox of an item in a listbox control that uses checkboxes
- -r - clears all text in <id>
- -a - appends text to the end of a control or adds an item to a menu
- -d - deletes the Nth line in a listbox/combo
- -i - insert line in a listbox/combo or inserts an item to a menu
- -o - overwrite the Nth line in a listbox/combo with text
- -g - set a new icon/bmp to an icon control
- -z - resets the width of horizontal scrollbar in listbox, or set the range of a scrollbar control
- -j - resets the edited setting in an editbox
Parameters[edit]
- <name> - name of the dialog
- <id> - id of the controls, you can use the form N-N1,N2-N3 to change multiple ids at once, 1-5,6,9 would change the following ids: 1,2,3,4,5,6,9
- [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.
- [text] - the text parameter if applicable
- [filename] - used with -g
- [start [end]] - used with -z to set the range of a scrollbar, or with -c to set a selection
Example[edit]
You can check the dialog components page for examples of /did per control
Compatibility[edit]
Added: mIRC v5.5
Added on: 08 Jan 1999
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See also[edit]
mIRC commands list