KioUtils Class

The purpose of this class is to allow a web page to perform functions not available due to kiosk restrictions. These restrictions include launching third party applications and basic keyboard or mouse functionality. It also allows the kiosk to manipulate the window parameters.


Type Signature
int Execute(string, bool)
Executes the specified command line.
int ExecutePath(string, string, bool)
Executes the specified path with args and returns the process id of the new process
void LogPageStats(string, string)
Manually logs a new page navigation entry into the KioWare usage statistics log
bool SendKey(int, uint, uint)
Sends a keyboard key value to target
bool SendKeyString(string, uint)
Attempts to convert each character in msg to keys
bool SetClipboard(string)
Sets the Windows clipboard with text
bool Paste(string, uint)
Sends Ctrl+V to paste the current clipboard contents to target
bool SetClipboardPaste(uint)
Sends the provided string directly to the target
double GetMasterVolume()
Gets the current master sound volume level
void SetMasterVolume(double)
Sets the master volume level
string NewGuid()
Gets a GUID
bool? CapsLockEnabled(bool?)
Gets or sets caps lock key state
bool? NumLockEnabled(bool?)
Gets or sets num lock key state
bool? ScrollLockEnabled(bool?)
Gets or sets scroll lock key state
bool IsProcRunning(int)
Determines if the specified process is running
int GetProcMainWnd(int)
Returns the specified process's main window handle
bool KillProc(int)
Kills the specified process
bool CloseWnd(int)
Closes the specified window
bool ShowWnd(int, bool)
Shows and activates the specified window
bool RestoreWnd(int)
Restores the specified window to the previous show state
bool HideWnd(int)
Hides the specified window
bool MinimizeWnd(int)
Minimizes the specified window
bool MaximizeWnd(int)
Maximizes the specified window
bool IsWndVisible(int)
Determines whether the specified window is visible
bool IsWndMinimized(int)
Determines whether the specified window is minimized
bool SetActiveWnd(int)
Activates the specified window
bool SendWndToBack(int)
Sends the specified window to the bottom of the z-order
bool BringWndToFront(int)
Attempts to bring the specified window to the top of the z-order
bool SetWndTopMost(int, bool)
Sets the top-most property of the specified window
bool SetOwnerWnd(int, int)
Sets new window owner
string GetWndBounds(int)
Returns the size and location of the specified window
bool SetWndBounds(int, int, int, int, int)
Sets the size and location of the specified window
bool SetWndPosition(int, int, int)
Sets the location of the specified window
bool SetWndSize(int, int, int)
Sets the size of the specified window
int FindWnd(string, string)
Searches for a top-level window by title and class name
bool SendWndMsgTimeout(int, int, int, int, int)
Sends the specified message to a window or windows
int GetWndProcId(int)
Returns the process id to which a window belongs
bool LogOffMachine(bool)
Logs out of the current system user
bool RestartMachine(bool)
Reboots the system
bool ShutDownMachine(bool)
Shuts down the system
int64 GetSystemUptimeMs()
Gets the system uptime in milliseconds
void NudgeMouse()
Moves the mouse 1 pixel and then back
NetworkConnectionType GetConnectionType()
Gets the current system network connection type
void PrintPDF(string filePath, string printerName = null)
Prints a PDF from the filesystem.

Related Types

Type Signature
enum NetworkConnectionType
The network connection type indication values.