Home Features Toolbar Library Forum Download Support Tutorial Manual
3. Reference
Triggers
Controls
Variables
System Variables
Global Values
Functions
AutoFill()
Back()
Beep()
CheckLinks()
Checksum()
Click()
Command()
Customize()
DeleteOption()
Enable()
Execute()
ExportLinks()
Forward()
GetFolderIcon()
GetQuery()
GetSystemIcon()
Header()
Highlight()
HistoryMenu()
Home()
IfExactMatch()
IfMatch()
ImportValue()
ImportCaption()
ImportIntValue()
ImportXMLValue()
Length()
LoadMenu()
Menu()
OpenURL()
Options()
PageText()
PlaySound()
PopupManager()
Refresh()
Replace()
ReplaceAll()
Resize()
ResizeClient()
Redraw()
Save()
Search()
SearchBack()
SearchLast()
SearchNext()
SearchPage()
SetCaption()
SetClipboard()
SetFocus()
SetFontSize()
SetIcon()
SetOption()
SetParam()
SetText()
SetStatusText()
SetTooltip()
SetUserAgent()
SetValue()
Show()
Stop()
StripHTML()
ToolbarMenu()
TruncateOption()
UpdateToolbar()
Zoom()
Text Functions
  

Click() Function

Simulates a click or a ENTER on the specified control.

Syntax:

    Click(id)
    Click(id1,id2,...) (requires v2.4.5 and higher)


Parameters:

    id - Control Identifier


Remarks:


  • The clicked control behaves as if clicked. Any commands spcified in the action= parameter are executed.
  • The id can contain variables.
  • Disabled or invisible controls can also be executed, menu items as well as commands defined within the <COMMANDS> block.
  • Control ID's should be unique, otherwise the first id found is executed.
  • From version 2.4.5, multiple, comma separated IDs can be specified to chain a sequence of clicks.


Example:

    In this example, typing a filename inside the combo box control and pressing enter, causes a simulated mouse click to be sent to the openurl control.
    In response to the click, the button opens the specified URL http://www.toolbarbrowser.com/%FILENAME%" where %FILENAME% is replaced by the value of the filename control.


    <xml id="toolbar">
    <toolbar caption="Click() Example">
    <control type="combo" id=filename width="140" action="Click(openurl)"></control>
    <control type="toolbar">
    <button id=openurl caption="URL" action="http://www.toolbarbrowser.com/%FILENAME%"></button>
    </control>
    </toolbar>
    </xml>




Compatibility

    From version 2.4.5 onwards, multiple controls can be specified as a comma separated list.


See Also:

    Command()



Website Popularity Rank | Build Your Own Toolbar | Free Download | Custom Toolbars | Features | Contact Us

ToolbarBrowser is a freeware project supported by Trellian Limited. | Privacy Policy