0 użytkowników i 1 Gość przegląda ten wątek.
Hi, Following the requests here, I've wrote this application. Basically the application blinks the device LED every few seconds. The idea is to have some notification that the device is still alive.Main features:•Blink the LED every few seconds. If the battery level is below the threshold, orange led is blinking otherwise the green on is used.•If the radio is turned off or there is no signal, another orange blink occurs (in addition to the regular one).•When the phone is charging the orange LED lights constantly, every few seconds a sequence of green blinks according to the batter level occurs (20-40% - 1 blink, 40-60% - 2 blinks, 60-80% - 3 blinks and 80-100% - 4 blinks). If the battery is fully charged - the green led lights constantly.•Blink interval and length can be set via the registry.•Running the link once starts the application, on blink sequence occurs. Running the link again shuts the application, off blink sequence occurs.•Blink sequence for the normal , low battery, no-signal, on and off blink sequences can be set via the registry.
ConfigurationAll the configuration is done from the registry, under "HKCU\Software\Blinker". The following keys are available:ACNotifications: (DWORD), (0 = disabled, any non-zero value = enabled), (default = 1)Controls weather Blinker shows notifications when the device is plugged to power source. .BatteryThreshold (DWORD), (default = 50)Sets the threshold (in percent) for the "low battery" status. When the battery level falls below this value Blinker will use the "LowBatterySequence" (see below). When the battery level is above the threshold the "NormalSequence" (see below) is used.BlinkDelay (DWORD), (default = 10000)The period between blinks (in msec).BlinkLength (DWORD), (default = 20)This value is not being used.LowBatterySequence (STRING), (default = "O25")The blink sequence (see below) to use when the battery is below the BatteryThreshold (see above).NormalSequence (STRING), (default = "G25")The blink sequence (see below) to use when the battery is above the BatteryThreshold (see above).NoSignalSequence (STRING), (default = "S100,O25")The blink sequence (see below) to use when there is no signal. This sequence is played after the NormalSequence/LowBatterySequence.OffSequence (STRING), (default = "L5,O25,G25,S25,E,O500")The blink sequence (see below) to use when the application shuts down.OnSequence (STRING), (default = "L5,O25,G25,S25,E,G500")The blink sequence (see below) to use when the application is turned on.Blink SequencesThe sequences mentioned above can be customized by using a blink sequences. A blink sequence is a simple script. The sequence is composed of blocks separated by comas (white space is not allowed). The following commands are allowed:G# Blink the green led for a duration of # msec.O# Blink the orange led for a duration of # msec.S# Sleep for a duration of # msec.L# Loop over the following sequence (until the "E" block or to the end of the sequence) # times. E Mark the end of the sequence to loop over.example:G100,O100,L10,G25,O25,E,S100,O100This sequence will do the following:Blink the green LED for 100msec, blink orange one for 100msec, then it will repeatedly (10 times) blink the green LED (25msec) and the orange LED (25msec). then it will pause for 100msec and finally turn the orange LED for 100msec.