[Windows Mobile Development and Hacking General] A_C:
Command Switch of iLock2:

iLock2.exe accepts the following command switches:

-slide to start/invoke S2U2

-nomsg to not to show any message even it closes itself & S2U2

-reset to reset the unread counts of SMS, MMS, email & vmail

-password to turn on the password lock immediately no matter how long the "require password" is set

Configuration:

- Use the "s2u2 Settings.exe" to change the settings.

(There are some extra options that cannot be changed by "s2u2 Settings" yet, but ichijou-san & mushipkw had made their own programs for them, you may try out here & here. Thanks all of them.)

- Through the lang.ini, the default values of DateFormat, TimeFormat, AppointmentTimeFormat, PhoneNoFormat, Wallpaper (Protrait & Landscape) & ClockPath can be customised. They are s_DefaultDateFormat, s_DefaultTimeFormat, s_DefaultAptTimeFormat, s_DefaultPhoneNoFormat, s_DefaultWallpaper(L) & s_DefaultClockPath.

- For advanced users, you can edit the registry (\HKEY_CURRENT_USER\Software\A_C\S2U2) directly. Please remember to RESTART iLock2 after any registry settings changed, otherwise it won't work. The default values are added on the first run of iLock2.

Please refer to this Excel file for the detail description of each setting. (thanks rctneil for the idea)

- All files under \GFX\ can be modified. To keep the transparent effect of some graphics, the top left corner pixel must be the transparent color; or use the ARGB PNG format.

Command Switch of iLock2:

iLock2.exe accepts the following command switches:

-slide to start/invoke S2U2

-nomsg to not to show any message even it closes itself & S2U2

-refresh to reload the registry settings & restart S2U2

-reset to reset the unread counts of SMS, MMS, email & vmail

Known limitations & FAQs:

General

Q. My device shows a blank/black screen when run S2U2 or "S2U2 Settings"?

A. It's not compatible with S2U2. It's a h/w problem. Try to turn ON or OFF the DirectDraw option:

1. stop iLock2

2. edit the registry, under \HKEY_CURRENT_USER\Software\A_C\S2U2, find the key DirectDraw

3. set it to 0 or 1 (depending on which mode it doesn't work, set an opposite value)

4. start iLock2 & S2U2

Q. How to edit the registry?

A. You need 3rd party software like "Task Manager" & "Total Commander". Try to google them & they are very user friendly.

Q. After changing the registry settings, iLock2/S2U2 do not behave as instructed??

A. Pls RESTART iLock2 after any registry settings is made.

Q. S2U2 always run unexpectedly?

A. Try to disable the IdleStart.

Q. S2U2 suddenly does not start automatically?

A. Check if there is any applications which are included in the ExceptionEXE list are running in the foreground.

A. If you have installed Battery Status, disable the "show Today Screen after wake up".

A. If you have installed Ultimate Launcher, disable "activate plugin on start up".

Q. S2U2 consumes a lot of power?!

A. Make sure there is no music player running in the background.

A. Use digital clock without showing the second.

A. Don't use GIF wallpapers.

A. Don't use a folder of wallpapers.

A. Turn off "Show Appointment".

A. Turn off "Show Weather".

A. Turn on "Don't use Keyboard Hook".

A. Turn on "Ignore screen orientation"

A. If any "auto-rotation" application is installed, add "S2U2" to it's exception list.

A. Disconnect the data connection.

Q. S2U2 sometimes reappear by itself immediately after an unlock?

A. set a longer "WakeupDelayMS".

A. If any "auto-rotation" application is installed, please add "S2U2" to it's exception list.

Q. My device's special Keys are not blocked by S2U2?! (e.g. the camera key on P525 & P535...)

A. Some devices have some specific keys that are hooked directly to the system.

This is a device specific problem. Unless the corresponding SDK is released by the manufacturer, it cannot be solved.

A. Please check if you have installed any key mapping s/w that will break S2U2.

Q. I can still activate "Touch Flo" even S2U2 is locked?!

A. Exclude S2U2.exe in the "Touch Flo" setting either by edit the \Windows\Touch Flo\FTouchFloConfig.txt

or edit the registry: go to HKLM\Software\HTC\Biotouch\Disable4SpecificApp; add new key called "S2U2"; in the folder for this Key, add new string value "ClassName" = "S2U2"; softreset the device.

Q. Some of my device's background jobs (like email sync or bluetooth connection) stopped unexpectedly when S2U2 is running?

A. Try to turn on NoPowerSuspend.

Q. What is NoPowerSuspend?

A. There is a few options in S2U2 to set when to suspend your device's power. If NoPowerSuspend is set to 1, all these options will be disabled.

Q. Some of my scheduled tasks did not run as schedule, but it'll start when manually turn on the device?

A. Try to set OffLCD longer (17 seconds or more) or add it to the ExceptionEXE list as below.

Q. How to configure S2U2 not to start when some applications are running?

A. Edit the Registry, under \HKEY_CURRENT_USER\Software\A_C\S2U2, add key ExceptionEXE0 (STRING) with the name of the application (e.g. iexplore.exe). A total of 10 (0-9) ExceptionEXE can be added. Set ExceptionEXEisFG to 1 for checking it's running in foreground only; while set to 0 for checking it's running in foreground or background. Then restart iLock2.

Q. Spb Repeating Alarm does not work when "Lock Notification" is turned on?

A. It's a known limitation. Spb RA relies on the system notification bubble to literate its own alarm.

But if "Lock Notification" is turned on, S2U2 will force the notification to background & Spb RA will be misleaded

and think that notification is already dismissed. So, if Spb RA is used, "Lock Notification" must be turned off.

Q. How to customize the application opened when "slide to view"?

A. They are under HKEY_CURRENT_USER\Software\A_C\S2U2\S2VEXE, named 0File, 0Parameters, 1File, 1Parameters,... 8File, 8Parameters.

0 - missed call; 1 - voice mail; 2 - SMS; 3 - MMS; 4 - email;

5 - Flexmail; 6 - WL Messenger; 7 - reminder; 8 - active task.

e.g. when there is a missed call, open iContact's call history instead of the system call history,

edit 0File to \Program Files\iContact\iContact.exe;

and 0Parameters to -recents (the path may be different on different language device & where it's installed).