int findWnd(string title = null, string className = null)

Searches for a top-level window by title and/or class name

Security

Trust Level Required: Full Trust

Parameters

Name Description
title (Optional) string
The window title. Defaults to null.
className (Optional) string
The window class name. Defaults to null.

Return

The window handle, or 0 if not found

Remarks

IMPORTANT: While KioWare can be used to open 3rd party applications, it cannot guarantee any security of your kiosk while these applications are in use.

It is also possible to show a taskbar with all open apps via the User Interface section of the Configuration Tool.

Window titles and class names can typically be found in the menu bar of the window, or by using utilities such as xprop.

Examples


var handle = KioUtils.findWnd('My App');
var pid = KioUtils.getWndProcId(handle);
if (KioUtils.killProc(pid))
	console.log('Successfully killed process ' + pid);

Requirements

KioWare OS (Linux®) version 1.0 or greater.


Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.