PictureLoKiT v1.0 Guide - Using LokPic commands
Lokpic commands are built into PictureLoKiT for those who want to add the program's features to their script, CM, or custom application. You can run these…
Lokpic commands are built into PictureLoKiT for those who want to add the program’s features to their script, CM, or custom application. You can run these from the Command Prompt by passing a trailing command to PictureLoKiT.exe. Rather than launching the GUI, the program checks and executes the necessary command. These commands can also be included in internal batch scripts.
For instance, the Splash command will fade a borderless picture into the center of the screen for 5 seconds… Code: Select all
C:\Documents and Settings\LoKiT>"c:\Program Files\PictureLoKiT\PictureLoKiT.exe" "splash=c:\Documents and Settings\LoKiT\Desktop\test.jpg" 5
Simple commands: backup = Creates a backup of the entire Piclokit folder to a named file, including the full path. Example: ”…PictureLoKiT.exe” backup “X:\Backups\backup_filename” restore = Restores the backup file back into the Piclokit folder. Example: ”…PictureLoKiT.exe” restore “X:\Backups\backup_filename” setup = Configures a session without using the GUI. For example, to hide a pic for 120 seconds from now [/color]: ”…PictureLoKiT.exe” setup “X:\Backups\releasepic.jpg” 120 piclok = Restores the release picture that was set by the setup command. play = Plays an audio file (supports wav, flac, or ogg). Example: ”…PictureLoKiT.exe” play=“c:\WINDOWS\Media\tada.wav” eject = Ejects the main (or 1st) CD/DVD tray. Example: ”…PictureLoKiT.exe” eject eject2 = Ejects the main (or 2nd) CD/DVD tray. Example: ”…PictureLoKiT.exe” eject2 check = Stops PictureLoKiT from starting if a session is already in progress. Command: ”…PictureLoKiT.exe” check user = Changes the folder location used for Piclokit. Example: ”…PictureLoKiT.exe” user=“X:\My Data stuff\here” exec = Starts another program when PictureLoKiT launches. Example: ”…PictureLoKiT.exe” exec=“C:\WINDOWS\system32\sol.exe” splash = Fades a borderless picture into the center of the screen for a set number of seconds or until a mouse button is pressed. Example: ”… PictureLoKiT.exe” splash=“C:\where\ever\mypic.jpg” 10 display = Shows an aspect-resized full-screen picture in the center of the screen, enlarging smaller pictures and fitting larger ones. Example: ”… PictureLoKiT.exe” display=“C:\where\ever\mypic.jpg” 10 Conditional commands: Used for executing a program during a session checktrue = Executes the command if the session is still active. Example: ”…PictureLoKiT.exe” checktrue=“C:\WINDOWS\system32\sol.exe” checkfalse = Executes the command if the session has completed. Example: ”…PictureLoKiT.exe” checkfalse=“C:\WINDOWS\system32\sol.exe”
Phew, that’s it folks, have fun