[Windows Mobile Development and Hacking General] tweakradje:
Tweakradje nov 2008, translation for Skin INI version 2.4.6

Translated from http://bbs.pdafans.com/archiver/tid-504073.html by Google

In very short:

The skin is made of a Header and Groups (pages on the screen).

The first argument of a Command is general the Group number.

Switching between groups (pages on the screen) can be done using

the ....Action commands. This can be screen clicks, mouse gestures.

or time based actions.

There are a lot of program variables built in. Those are used

with {}. There is a "if the else" and you can use basic calculation.

You can create your own variables with the var= command.

Skin commands that can be used for the Header:

Name, Refresh, Height, ClickRectAlpha, HideSoftKeyBar

Skin commands that can be used for groups:

AutoActive, wxDrawCalendar, wxDrawPic, wxDrawString, wxDrawStringEx, wxDrawClock,

wxSecondDraw, wxClickAction, wxBarRect, wxBarDrawPic, wxBarDrawStringEx, wxBarClickAction,

wxGestureRect, wxGestureAction

(* Note: The unlimited compatibility of the old order today, DrawCalendar, DrawPic, DrawString, DrawStringEx,

DrawClock and ClickAction, please refer to the specific use of the calendar documentation)

Parameters in order to explain the group numbers are as follows:

1. To allow unlimited today in the same INI file, the script will be sub-divided into two groups when the script,

you can use wxClickAction switch to a group or a combination of what group is valid.

2. Group numbered 0 = never showed = 4294967295 always show that 1 = default show, group show is (the designated number to display and script code division "phase"),

the result does not mean to judge 0 Indicate that the script

3. Group numbers in accordance with the following rules: 1,2,4,8,16,32,64, ... 1073741824, 2147483648, 4294967295, and 0 for a specific number

4. When the group does not require a combination of show, in wxClickAction directly to the designated group number

5. When the need for the group, "shows that portfolio", in wxClickAction specified in the group want to show that

the cases can add up to 1: to show only Group 4, wxClickAction designated for the No. 4 team,

Example 2: 2,4 group show at the same time, wxClickAction designated for the No. 6 group,

Example 3: 1,4,16 group show at the same time, wxClickAction designated by the group numbered 21

Operation of the variable can be explained as follows:

1. Variables can be operational by the system is the variable component of the operation expression (Format: <? Xxxxxxxx?>), Will be based on need, in the process of dynamic running back to the string or value (<? Is a start,?> Is Marks the end)

2. Variable expression of support for the operation operator + - * / \% ^ (), variable operations using real operations, the whole output (not rounded) way. (/ In addition to, to get more than% \ is divisible, power ^)

3. Support for the statement to determine and compare symbols if then else, ==,! =>,> =, <, <=.

4. Instruction in the string of parameters in the computing needs of expression, with all brackets. If you do not use brackets, the string will be regarded as a direct output, and not for processing

5. Variables in the use of computing and the case should strictly abide by the format, the user's own guarantee the accuracy of expression.

(* Examples: <? {SS}?> <? {SS}*5 + (23-{SF}-4)?> <? 3/{SF}+30?> <? {SY}^(-3)+50?>

<? if ({SS}+4)==20 then 20 else 0?> <? if {APM_CHS}!=morning, then in the afternoon else is not in the afternoon?>

<? if ({SF}+3)>=30 then ({SS}-3) else 0?> <? if {APM_CHS}!=morning, then 1 else 0?>

wxDrawPic = 1,2, <? {SH}?>,16,<? {SS}?>,#000000,<? if {SS}>30 then TRUE.bmp else FALSE.bmp?>

xDrawString = 1,9,5,<? {SS}*3?>,{SY1}-{SM}-{SD} ({WD}) {JQ}

1) Name of skin that name is the name of parameters, such as:

Name=default skin, said today that the skin is the name of "default skin"

2) Refresh, said the frequency of updates,

the parameters are: (0 - per day (per minute has been changed), 1 - per minute, 2 - per second, 3 - when the parameters change as soon as updates [delayed up to 3 seconds]) For example:

Refresh=1 That the update frequency of the skin is "minute"

Refresh=2 That the update frequency of the skin is "second" and does not recommend the use of this method (note the use of updates per second may reduce your battery life)

Refresh=3 That the skin when the update frequency of updates as soon as changes in the parameters, the parameters change is not "every minute" updated

(* Note 1: 3 mode is not similar to the model 2, is not the time to refresh seconds, is the principle of internal procedures to determine whether the update, faster, less power consumption)

(* Note 2: This command does not support system variables and computing variables)

3) Height of the plug-in that the fixed height of the parameters are: a high degree of pixel value, a value of 0:00, a high degree of automated, allowing the default order, the default for automatic height

Height=150

(* Note: This command does not support system variables and computing variables)

4) ClickRectAlpha click in the designated area that is semi-transparent when it showed that the parameters are: (whether or not transparent (0 - no, 1 - semi-transparent), whether or not vibration (0 - no, 1 - vibration)), allows the default order, When the default for the 1 - translucent, 1 - vibration

ClickRectAlpha=1,1

(* Note: This command does not support system variables and computing variables)

5) HideSoftKeyBar said today in desktop software to hide the menu bar Jian, the parameters are: (whether or not to hide (0 - do not hide, 1 - to hide)), this command line allowed default, the default is to not hide

HideSoftKeyBar=1,0

(* Note: This command does not support system variables and computing variables)

6) AutoActive said that the value of the variable and fixed string value compared to the same time completely on the trigger of Specified, is a parameter (code division, the variable value of the fixed value, the type of event, the event string (not empty, this parameter, please WxClickAction reference to the directive))

AutoActive=1,{SS},8,2,abc

That for the Group 1, when the {SS} variable equal to 8 seconds, automatically trigger unlimited access to set up today.

AutoActive=1,<? If ({SS}*2)>30 then I leave else?>,Really,2,abc

That for the Group 1, when the {SS} more than 30 seconds * 2 when I return, with the value of 2 for string comparison, the same would automatically trigger unlimited access to set up today.

AutoActive=2,<? {SS}*2?>,40,4,1

That for the Group 2, when {SS} * 2 seconds, with the results of the 40 string with the same time, automatically trigger designated for the No. 1 team.

7) wxDrawCalendar that show calendar,

the parameters are: (code division, the pixels on the top left pixel left, font size, color (#000000 - #FFFFFF, 0 is the default color), the color of the weekend (# 000000 - # FFFFFF, 0 As the default color), size (0-1000,400 general, is a bold 700), the width of each cell, each cell height, shows the lunar calendar (0 - do not show that 1 - show), show that the header)

wxDrawCalendar=1,4,304,7,0,#FF0000,400,12,10,0,1

Said in the skin (4,304) showed that coordinates the calendar, group 1, 7 pix font, the default color for the weekend show red, the normal font size, wide-day show is from 12, a day of the show from a high of 10 Does not show the lunar calendar, marked the first show. (This is recommended in small format)

wxDrawCalendar=1,0,0,9,0,#FF0000,700,34,15,1,1

Said in the skin (0,0) showed that coordinates the calendar, group 1, 9 pix font, the default color for the weekend show the red, bold fonts for a day of the show is wide from 34, the day showed a high Distance is 15, shows the lunar calendar, marked the first show. (This is a great format recommended)

(* Note: on the left, font size, thickness and width of each cell, each cell height of the lunar calendar show, Headers show support for the operation can be variable)

8) wxDrawPic said the picture shows,

the parameters are: (code division, on top, left left, wide-width, high-hight, transparent color # 000000 - # FFFFFF, 0 said that the lack of transparency, picture), such as:

wxDrawPic=1,2,2,16,16,#000000,clock16.bmp

Said in the skin (2,2) according to the coordinates of the wide high 16 * 16 picture shows clock16.bmp, and the color # 000000 as a transparent color for the group 1

(* Note 1: PNG image, transparent color is invalid parameters)

(* Note 2: The only support 32-bit color picture of the PNG)

(* Note 3: When the width, height are set to 0:00, the actual size of the pictures automatically show)

(* Note 4: on the left, width, height, the file name in support of operations can be variable)

9) wxDrawString show that string is the parameters (group number, font size, the pixels on the top left pixel left, string), such as:

wxDrawString=1,9,5,28,{SY1}-{SM}-{SD} ({WD}) {JQ}

Said in the skin (5,28) coordinates display font size of 9 of the string "{SY1}-{SM}-{SD} ({WD}) {JQ}", the string will be automatically replaced by the corresponding The data for the group 1

(* Note: The font size, on the left, the string can support the operation variables)

<see next post>