bool IsWndVisible(int)

Determines whether the specified window is visible

Security

Trust Level Required: Full Trust

Parameters

Name Description
hWnd int
The handle of the window.

Return

True if the window is visible

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. With KioWare running in shell mode, as is recommended, the start menu will still be disabled.

Examples


//This example can be run from a custom toolbar javascript button or CustomToolbarCode.js
var pid
var wnd = null

if(!pid) pid = KioUtils.Execute('notepad.exe')
var wnd = null
while (!wnd) {
    wnd = KioUtils.GetProcMainWnd(pid)
    if(wnd) setTimeout(() => { KioUtils.BringWndToFront(wnd) }, 3000);
    setInterval(checkVisibility, 6000)
}

function checkVisibility(){
    //If the window is visible, send it to the background and verify that is still running.
    if(KioUtils.IsWndVisible(wnd)) KioUtils.HideWnd(wnd)
	console.log(KioUtils.IsProcRunning(pid))
}

Requirements

KioWare for Windows version 8.5 or greater.