uCon HomePage


uCon supports function keys and clickable buttons. Both are located at the top of the main window but may or may not be visable depending on the current view state. The difference between function keys and clickable buttons is minor. Function keys can be engaged by the mouse or the corresponding keystroke, clickable buttons can only be engaged by a mouse click.  

EIther type is configured by clicking on the appropriate menu->config sub item (Buttons or Function Keys) shown below...

Access either buttons or function keys dialog from main menu config item.


Function Keys

As you can see, the setup is similar.  For each button/fkey there is a text box, label and "script" checkbox.  The text box may contain the actual data that will be sent or the name of a file (script) to be executed (if the script box is checked), the label is what will be displayed in the GUI. 

By default, the content of the "Text" box will be automatically typed if the corresponding function key is depressed (or the button is clicked).   The string can contain backslash-delimited control characters as well: \r \n \t \b and \x## (where ## is an ascii-coded hex value).  Typical use of this is to simply add a new line at the end of the string with "\n"; however the \x## provides the ability to insert any 8-bit value. 

The content of the "Label" box is placed in the corresponding function key label on the main window to provide the user with a brief reminder of what is in the function key. Note that not all 12 keys have label boxes, this is because of the limited space used to display the function key labels on the main window.

If the "Script" box is checked, then uCon will assume that the content of the Text box is a filename, and it will be run as a script. This provides a "single click" script execution mechanism.  If the scriptname ends with ".lua", then the Lua interpreter will be used to run the script.

The "ClearAll" button is a quick way to empty the content of all text in the dialog box. Note that this does not actually take affect until "OK" or "Apply" is depressed.

New as of Sep19 2014:
The content of the "text" box (for each fkey or button) will be shown in a tooltip if the mouse hovers over a specific button or fkey.

New as of Oct 10, 2014:
Right clicking on a button/fkey will do one of two things:

New as of June 2015:
The function keys and buttons can now be colorized using the above dialogs or the FKEY script command.  

Function Keys: 

A typical keyboard has 12 function keys; each of which can by configured in the dialog above.  F2-F9 are clickable if their view state is enabled. They sit just below the main menu in the main window.

Clickable Buttons:
There are 16 clickable buttons, if their view state is enabled, they sit just below the function keys in the main window. Generally speaking they provide the same capability as the function keys, but without the corresponding keystroke (they can only be engaged by a mouse click). They have a dialog box that is similar to that of the function keys, allowing the user to enter the label, text and script enable.

Both trigger mechanisms (function keys and clickable buttons) can be expanded into things other than just pre-deteremined blocks of text sent to the backend. For lack of a better name, refer to them as  "tags", where the tag is used to assign some other operation to that trigger. The syntax of the text loaded into the trigger's textbox is simply...



@@@          is a fixed prefix
TAGTEXT:     is the name of the tag (followed by 1 colon and 1 space)
DDDDDDD      is the data to be used by the function

Currently supported tags:

@@@LTAG:     place all data into the logging file as a user-loaded entry.
@@@SCRCMD:   the data is assumed to be a single line script command (see example 3 below).

Save that setup!

As of Sept 1, 2008, there's a new sub-item (Fkey2Script) under the Scripts menu that allows you to create a script that can be used later to load up your function keys and buttons with the current setup.

Example1: Send "hello world\n"...
In the text box: hello world\n
Example2: Send  ctrl-a, ctrl-b, ctrl-c ...
          In the text box: \x01\x02\x03
Example3: Change the color of your console background (using the CONFIG script command)...
In the text box: @@@SCRCMD: CONFIG color bkgnd 20 200 20