[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

-refresh to reload the registry settings & restart S2U2

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

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:

Autostart=1 (start S2U2 when the device is woke up; 0 to disable)

BlankStart=0 (start S2U2 when the device's LCD is turned off; 0 to disable)

IdleStart=0 (start S2U2 when the device's backlight is turned off; 0 to disable)

OffLCD=17 (x seconds after the backlight is off, device will be turned off; minimum is 5 seconds; 0 to disable)

BlankScreen=0 (when OffLCD is executed, 1 means do not turn off the device but only turn off the LCD)

BlankOnTalk=0 (blank the LCD when the device is making a voice call; 0 to disable)

ACIdleStart=0 (same as IdleStart but only effective for external power)

ACOffLCD=0 (same as OffLCD but only effective for external power)

ACBlankScreen=0 (same as BlankScreen but only effective for external power)

ACBlankOnTalk=0 (same as BlankOnTalk but only effective for external power)

DateFormat=dddd', 'd MMMM (the format of the displayed date)

TimeFormat=H':'mm (the format of the displayed time)

ClockPath=clock\ (the path stored the clock graphics file under \gfx\)

ShowAlarm=1 (show the next system alarm time; 0 to disable)

ShowTask=1 (show the total no of active tasks; 0 to disable)

ShowMMS=0 (show the MMS unread count; 0 to disable)

ShowWeather=0 (show weather information from: 1 - Spb Weather; 2 - Weather Panel, 3 - Pocket Weather, 4 - HTC Weather; 5 - User-defined Weather; 0 to disable; more details at FAQ)

ShowAppointment=0 (show the no. (maximum is 6) of next week appointments information; 0 to disable)

AppointmentDays=7 (no. of next days appointment to be shown; maximum is 100 days)

AppointmentDateFormat= (the format of the appointment date)

AppointmentTimeFormat=h':'mmt (the format of the appointment time)

CallerID=0 (the CallerID; 1 - full screen mode; 2 - thumbnail mode; 0 to disable)

Slide2Answer=0 (the "Slide to Answer"; 0 to disable; more details at FAQ)

S2AAnsKey=0 (when Slide2Answer is enable, disable ANSWER key to answer a call; 1 to enable)

S2AEndKey=1 (when Slide2Answer is enable, allow END key to decline a call; 0 to disable)

PhoneNoFormat= (the format of the incoming phone no.)

ShowBattery=1 (show the full-screen battery only when charging; 0 to disable; 2 to always show)

Wallpaper= (the path of the wallpaper or folder of wallpapers in portrait mode)

WallpaperL= (the path of the wallpaper or folder of wallpapers in landscape mode)

GifSpeed=5 (the display speed of the GIF wallpaper; 1 is the slowest; 10 is the fastest; 0 to use the GIF's origianl speed)

WallpaperChangeTime=0 (the no. of minutes to change the wallpaper automatically; 0 to disable)

WallpaperRandom=0 (change the wallpaper randomly; 0 to disable)

DpadOn=0 (enable the DPAD Right key to unlock, DPAD control when the S2P control plugin is displayed & mute the incoming ring/vibration; 0 to disable)

NoSoftKey=0 (display the bottom soft unlock key; 1 to hide)

TopCurtain=1 (display the top curtain behind the clock & date; 0 to hide)

BottomCurtain=1 (display the bottom curtain behind the slide)

NoPowerSuspend=0 (suspend the power by S2U2; 1 to disable; more details at FAQ)

SafeMode=0 (run in safe mode; 0 to disable; more details at FAQ)

DisplayMode=1 (run in DirectDraw mode; 0 in RawBuffer mode; 2 in GDI mode)

KoreanSMSpatch=0 (the Korean SMS patch; 0 to disable)

ExceptionEXE0=iexplore.exe (disable S2U2's auto lock when ie is running)

ExceptionEXE1=VoiceCommander.exe (disable S2U2's auto lock when Voice Commander is running)

ExceptionEXE2=AlarmPopup.exe (disable S2U2's auto lock when Spb's Alarm is running)

ExceptionEXE3=SDDialer.exe (disable S2U2's auto lock when HTC's voice dialer is running)

ExceptionEXE4=

ExceptionEXE5=

ExceptionEXE6=

ExceptionEXE7=

ExceptionEXE8=

ExceptionEXE9=

ExceptionEXEisFG=1 (exception is checked against foreground application; 0 is checked against both foreground & background application)

UnlockSound= (play a .WAV file (must in full path) after unlock)

LockSound= (play a .WAV file (must in full path) when manually lock the device)

UnlockRunEXE= (execute an application (must in full path) after unlock)

UnlockOnRotate=0 (do not unlock after the screen is rotated. It's useful for device with slide-out keyboard. Set to 1 will unlock it when the keyboard is slided out (assume the screen will be rotated as well))

ActionOnAC=1 (action when connected to external power; 0 to disable; 1 to unlock; 2 to lock)

WakeupDelayMS=500 (delay (in ms) to start S2U2 when the device is woke up. For SPB Mobile Shell user, read FAQ for details)

BlankOnTalkDelayMS=300 (delay (in ms) to blank the screen when a phone call is connected)

VolumeControl=0 (replace the system Volume Control; 1 to enable)

TransparentVC=0 (have a transparent background for the Volume Control; 1 to enable)

NoBackLightCheck=0 (not to double check the Backlight when IdleStart is fired; 1 to enable)

NoS2P=0 (not to call the running S2P when unlocked; 1 to enable)

NoKeyBoardHook=0 (not to use the Keyboard Hook to lock the keys; 1 to enable)

StylusOutUnlock=1 (unlock the device when the stylus is pulled out; 0 to disable; only functional if the hardware is supported)

StylusInLock=0 (lock the device when the stylus is put back; 1 to enable; only functional if the hardware is supported)

Unlock2Home=0 (goto Home screen after unlock; 1 to enable)

IgnoreScreenRotation=0 (ignore the system screen rotation; 1 to enable)

- 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