Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 21st, 2010 | Syntax: None | Size: 1.67 KB | Hits: 71 | Expires: Never
Copy text to clipboard
  1. The /did command
  2. The /did command allows you to modify the values of controls in a dialog, eg. changing the text in an edit control, or setting focus to a button, or deleting lines in a listbox.
  3.  
  4.   /did -ftebvhnmcukradiogjsl name id [n] [text | filename]
  5.  
  6.   -f    set focus on id
  7.   -t    set id as default button
  8.  
  9.   -e    enable id
  10.   -b    disable id
  11.   -v    make id visible
  12.   -h    hide id
  13.  
  14.   -n    enables editbox
  15.   -m    disables editbox
  16.  
  17.   -c    check checkbox/radiobutton list/combo line
  18.   -u    uncheck checkbox/radiobutton list/combo line
  19.   -k    works with -cu, keeps other selections in a listbox
  20.  
  21.   -s    checks the checkbox of an item in a listcb control
  22.   -l    unchecks the checkbox of an item in a listcb control
  23.  
  24.   -r    clear all text in id
  25.  
  26.   -a    add line of text to end
  27.   -d    delete Nth line
  28.   -i    insert text at Nth line
  29.   -o    overwrite Nth line with text
  30.  
  31.   -g    set a new icon/bmp to an icon control
  32.         /did -g name id [n] filename
  33.  
  34.   -z    resets the width of horizontal scrollbar in listbox
  35.  
  36.   -j    resets the edited setting in an editbox
  37.  
  38. Where name identifies the dialog and id is the id number of the control you want to modify.
  39.  
  40. If you want to modify several controls at the same time, you can specify multiple id numbers separated by commas, eg. /did -b name 2,12-16,20 etc.
  41.  
  42. You can select a range of text in an editbox using /did -c name id [n] [start [end]]. This selects line N in editbox, and sets selection to specified range of characters.
  43.  
  44. You can mark a 3state checkbox as indeterminate by specifying both -cu switches.
  45.  
  46. You can access the edit control in a combobox by using 0 as the N value.
  47.  
  48. To change the range of a scrollbar control, you can use /did -z name id [min max].