Unimodul 1

Užitečné programy

Moderátoři: gorick, schmegea, monkus

Odpovědět
Uživatelský avatar
grantec
Administrátor
Administrátor
Příspěvky: 5634
Registrován: 14 led 2009, 21:26
Bydliště: Slovensko
Dostal poděkování: 2 poděkování
Kontaktovat uživatele:

Unimodul 1

Příspěvek od grantec »

Tento malicky unimodul je urceny pre tvorcov pluginov, ktory nemaju nainstalovane vyvojove prostredie a predsa chcu, aby sa ich dielka zobrazovali v pluginoch a boli aj z pozicie pluginov ovladatelne.

Kód: Vybrat vše

Even configurable plug-in: Unimodul 
Here I have prepared for you a plugin that can be adapted using configuration file to your own needs. It is of course only a limited functionality, but still. It is clearly not as interesting as a webif and kept very simple. 

Unimodul information about the plugin 

These notes are aimed at owners of a Azbox HD that do not install the development environment and still want to have a plugin with special features to it easily accessed using the remote control to be able to. 
After the installation is found in the directory / EMU / unimodul / unimodul.cfg as an example the simple text file that we can customize to your own needs. In the same state, the plugin is now registered with the functionality is fully usable. To edit a linuxkonformen editor to use to connect to Windows, for example, with the Azbox winscp, navigate to the directory and call by rightclicking edit this file. 
The individual lines of configuration are described below: 

The key words always write in big letters, Gleichheitsszeichen apostrophe and no spaces. The order FORM. Command1. OPTION1. Command2. OPTION2. ... must be met. 

Form.title = 'Unimodul' is the headline in the plug at the top 
FORM.CAPTION = 'Clear' the text for the central clearing gang, the ground state to restore. This button is always displayed at startup and has the focus 
FORM.WINDOWX = '10 'x position (in pixels) for the window within the area granted to us by the firmware of 640x480 
FORM.WINDOWY = '20 'y position from the top 
FORM.WINDOWW = '400 'window width (pixels) 
FORM.WINDOWH = '300 'height (in pixels) 
FORM.BORDERW = '3 'border width (pixels) 
FORM.COMMANDS = '3 'number of command-line 
FORM.FONTSIZE = '16 'does not work for all fonts 
FORM.FONTFILE ='...' the file with the Lieblingsfont, then when reading there is nothing useful is the built-in font used. 

Of the following commands with their options can be set up to 4 levels 
Command1.Caption = 'ping' text on the button 
COMMAND1.WIDTH = '80 'width of the button 
COMMAND1.RESULT = 'LIST' 

Options are the things that can be selected on the remote control with left / right, if the appropriate level, the focus has. 
OPTIONS1.XPOS = '110 ' 
OPTIONS1.TEXT = 'PC games | | | Laptop' the two texts, separated by three vertical lines 
OPTIONS1.EXEC = 'ping-c 1 192.168.1.11 | | | ping-c 1 192.168.1.19' to the commands here: ping the gaming PC for my little brother once, three vertical lines, the laptop part of my father again . pinging Ping no response, it takes 2 s to the plugin responds. 

Command2.Caption = 'USB devices' 
COMMAND2.WIDTH = '150 ' 
COMMAND2.RESULT = 'LIST' result in a list below map 
OPTIONS2.XPOS = '150 ' 
OPTIONS2.TEXT = 'Show' 
OPTIONS2.EXEC = '. / Lsusb_mini' the program is in the same directory 

Command3.Caption = 'processes' 
COMMAND3.RESULT = '/ tmp / list.txt' for complex commands to draw the results into a file and pick up from there, the file name must begin with / tmp / 
OPTIONS3.XPOS = '100 ' 
OPTIONS3.TEXT = 'filtered Process List | | | Module List' 
OPTIONS3.EXEC = 'ps | grep DSTAR> / tmp / list.txt | | | lsmod> / tmp / list.txt'
THX juli13
Nemáte oprávnění prohlížet přiložené soubory.


Zapol som si surflock ! Max 1sz za 24 hod ! A0 00
Odpovědět

Zpět na „Utility AzBox HD“