|
本帖最后由 Ryszard 于 2024-10-5 16:30 编辑
I wrote my first test plugin for the StreamDock N3 device. It probably has many imperfections - as is the case with the first test program. I didn't want to write a typical "Hello World" program, so I wrote something like this:
https://drive.google.com/file/d/ ... ZC/view?usp=sharing
CONFIGURATION
The plugin consists of three elements:
Przelacznik - key assignment:
Supports multiple instances of configurable actions for a specific button on the device.
Settings:
Aktywna pozycja - currently active button instance (No. on the position configuration list) - it is switched by the slider knob set to the "Wybieranie" mode (method of operation)
Settings for individual positions:
Tytul - text displayed on the button
If the following special identifiers are entered in the title, then in the case of multiple actions, they will be displayed accordingly:
if the [%] sign is entered, it shows the percentage progress of the multiplicity,
if [#] it shows the iteration number,
if [$] it shows the number of iterations,
if [#$] it shows the iteration number from the number of multiplicities (e.g. 5 -> 10),
if [#%] it shows the iteration number and the percentage progress (e.g. 5 = 25%)
Ikona - icon displayed on the button
Akcje - actions performed after pressing the button, separated by the | character
[0] - displaying the alert icon (icon according to API SDK)
[1] - displaying the OK icon (icon according to API SDK)
[* multiplier *] - multiple execution of the action during its subsequent executions - applies only to the knob rotation action
[x multiplicity x] - multiple execution of the command (defined separately for the actions below)
[! ms !] ] - pause in ms (1/1000s)
[ALT][CTRL][SHIFT]text - simulation of keystrokesse
[I file I] - temporarily displaying an icon on the device key
[N] - actions are performed until the next button press or knob turn
[O] - next actions will be performed until the button is pressed or the knob is turned - only works for knob actions
[P] - interrupts the operation of parameters [Q], [O]
[Q] - next actions will be performed until the button is pressed or the knob is turned
[R] - refresh button
[T text T] - temporarily displaying an inscription on the device key
[W]command - launch Windows command
[Z] - switching the active button instance to the next defined instance
[z number z] - switching the instance of the active button to the instance of the specified one number
Krotność - multiple execution of the action when quickly turning the knob left or right (definition in Przekretnik settings)
Tytuł - obrót gałki w lewo - text displayed temporarily on the button when turning the knob to the left
Ikona - obrót gałki w lewo - icon displayed temporarily on the button when turning the knob to the left
Akcje - obrót gałki w lewo - actions performed when turning the knob to the left (configuration options as for button actions)
Tytuł - obrót gałki w prawo - text displayed temporarily on the button when turning the knob to the right
Ikona - obrót gałki w prawo - icon displayed temporarily on the button when turning the knob to the right
Akcje - obrót gałki w prawo - actions performed when turning the knob to the right (configuration options as for actions button)
Tytuł - naciśnięcie gałki - caption displayed temporarily on the button when the knob is pressed
Ikona - naciśnięcie gałki - icon displayed temporarily on the button when the knob is pressed
Akcje - naciśnięcie gałki - actions performed when the knob is pressed (configuration options are the same as for button actions)
Przesowak - assigned to the knob:
Allows you to select an instance of the active button's action and move between buttons (change the active button).
Settings:
Sposób działania - ability to select the method of operation of the knob. Specifies whether the associated button should switch the active instance or switch between buttons. This setting can be set here or changed (switch between them) by pressing this knob.
Przekretnik - assigned to the knob:
Allows you to perform additional actions assigned to the instance of the active button.
Settings:
Czas - time in which the number of knob pulses is counted (in milliseconds) to trigger the action multiple
Ilość - number of pulses that triggers the action multiple (multiple defined in the Twister configuration - the multiplicity setting for each instance may be different)
OPERATION
After defining multiple action instances for the button, we use the knob with the assigned "Przekretnik" to perform selected actions (turning or pressing the knob).
To change the active action instance for the active button, we can use the knob with the assigned "Przesowak" and the active "Wybieranie" mode.
To change the active button, we can press it (then the "Akcje" assigned to it will also be performed) or select it using the knob with the assigned "Przesuwak" and the active "Przewijanie" mode (you can switch between modes by pressing the knob) - then the actions assigned to the button will not be performed.
SUMMARY
The plugin was written to test the possibilities of optimizing Stream Dock devices for easy handling of many actions.
Since the application does not support Polish, all texts are in Polish (instead of English).
Since this is a test application, no other language versions or other modifications are planned.
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|