Okay going off of a suggestion made by Mofi, I made a smart template for AutoIt...a favorite scripting lang of mine.
This largely works out fine for me in most cases...however I got some corner cases...where I feel things fail.
Description changes based on params used...some params change based on other params.
Is there a way to sync params, and maybe give a tooltip of sorts based on a param selected?
Also in this scripting lang...not all params are required...is there a special way to mark optional params?
Further given some are not required...is there a way to cause a cascade delete of further params with a key combo?
This largely works out fine for me in most cases...however I got some corner cases...where I feel things fail.
Code: Select all
ControlCommand ( "title", "text", "classnameNN", "IsVisible", "" )
Returns 1 if Control is visible, 0 otherwise
ControlCommand ( "title", "text", "classnameNN", "IsEnabled", "" )
Returns 1 if Control is enabled, 0 otherwise
ControlCommand ( "title", "text", "classnameNN", "ShowDropDown", "" )
Drops a ComboBox
ControlCommand ( "title", "text", "classnameNN", "HideDropDown", "" )
Undrops a ComboBox
ControlCommand ( "title", "text", "classnameNN", "AddString", 'string' )
Adds a string to the end in a ListBox or ComboBox
ControlCommand ( "title", "text", "classnameNN", "DelString", occurrence )
Deletes a string according to occurrence in a ListBox or ComboBox
ControlCommand ( "title", "text", "classnameNN", "FindString", 'string' )
Returns occurrence ref of the exact string in a ListBox or ComboBox
ControlCommand ( "title", "text", "classnameNN", "SetCurrentSelection", occurrence )
Sets selection to occurrence ref in a ListBox or ComboBox
ControlCommand ( "title", "text", "classnameNN", "SelectString", 'string' )
Sets selection according to string in a ListBox or ComboBox
ControlCommand ( "title", "text", "classnameNN", "IsChecked", "" )
Returns 1 if Button is checked, 0 otherwise
ControlCommand ( "title", "text", "classnameNN", "Check", "" )
Checks radio or check Button
ControlCommand ( "title", "text", "classnameNN", "UnCheck", "" )
Unchecks radio or check Button
ControlCommand ( "title", "text", "classnameNN", "GetCurrentLine", "" )
Returns the line # where the caret is in an Edit
ControlCommand ( "title", "text", "classnameNN", "GetCurrentCol", "" )
Returns the column # where the caret is in an Edit
ControlCommand ( "title", "text", "classnameNN", "GetCurrentSelection", "" )
Returns name of the currently selected item in a ListBox or ComboBox
ControlCommand ( "title", "text", "classnameNN", "GetLineCount", "" )
Returns # of lines in an Edit
ControlCommand ( "title", "text", "classnameNN", "GetLine", line# )
Returns text at line # passed of an Edit
ControlCommand ( "title", "text", "classnameNN", "GetSelected", "" )
Returns selected text of an Edit
ControlCommand ( "title", "text", "classnameNN", "EditPaste", 'string' )
Pastes the 'string' at the Edit's caret position
ControlCommand ( "title", "text", "classnameNN", "CurrentTab", "" )
Returns the current Tab shown of a SysTabControl32
ControlCommand ( "title", "text", "classnameNN", "TabRight", "" )
Moves to the next tab to the right of a SysTabControl32
ControlCommand ( "title", "text", "classnameNN", "TabLeft", "" )
Moves to the next tab to the left of a SysTabControl32
ControlCommand ( "title", "text", "classnameNN", "SendCommandID", Command ID )
Simulates the WM_COMMAND message. Usually used for ToolbarWindow32 controls - use the ToolBar tab of Au3Info to get the Command ID.
Is there a way to sync params, and maybe give a tooltip of sorts based on a param selected?
Also in this scripting lang...not all params are required...is there a special way to mark optional params?
Further given some are not required...is there a way to cause a cascade delete of further params with a key combo?