help • 20 Connection of SwyxPhone and SwyxIt! Classic • Use of SwyxIt! Classic • Customer-specific context menu for Speed Dials
20.3.5 Customer-specific context menu for Speed Dials
For better integration of external applications (3rd party), SwyxIt! Classic has been enhanced with a function that allows the customer's own entries to be added to the context menu of the Speed Dials. Applications are started with parameters of this Speed Dial, or of the current or last call of the currently selected Line button.
In order to add individual entries to the context menu of the Speed Dials, corresponding keys must be created in the Windows registry. The entries are later displayed in the context menu under the existing entry "Send email...".
Any number of keys can be created on the following registration path, which then represent the new context menu entries along with the associated command line and the working directory.
HKLM\SOFTWARE\Swyx\SwyxIt! Classic\CurrentVersion\Options\SpeedDialMenus
HKCU\SOFTWARE\Swyx\SwyxIt! Classic\CurrentVersion\Options\SpeedDialMenus
Such an entry has the following structure:
Key "Key1"
String "MenuLabel" (e.g. "Video_conference")
String "CommandLine" (e.g. "c:\test.exe %SpeedDialPeernumber%")
String "WorkingDirectory" (e. g. "c:\")
In this example, an entry named "Video_conference" is added to all Speed Dials. If this new entry is selected, then the program "c:\test.exe" is started with the configured parameters in relation to the selected Speed Dial.
As soon as the menu item is selected, the variables are replaced by the real values. The values used always relate to the chosen Speed Dial or the selected line. If the selected line is not being used at the time or is even deactivated, the information from the last call is used.
In "CommandLine", any program that can be executed by Windows can be used, for example
*notepad
*c:\test.doc
*c:\windows\notepad.exe
*enreach.de/en
In both "CommandLine" and "WorkingDirectory", the inputs can be entered in quotes (e.g. "c:\Programme\test\test.exe" %SelLinePeernumber%).
To start a VB script via a context menu entry, the command line entry must be constructed as follows
wscript.exe "C:\CallTo.vbs" %SelLinePeernumber%
The working directory is then "C:\". Variable names are not case-sensitive.
The values for variable replacement do not contain inverted commas, so it is advisable to include these already in the command line entry.
"c:\Programme\test\test.exe" "%SelLinePeername%"
for example, is converted into
"c:\Programme\test\test.exe" "Jones, Tom"