bool SetWndBounds(int, int, int, int, int)
Sets the size and location of the specified window
Security
Trust Level Required: Full Trust
Parameters
Name | Description |
hWnd |
int The handle of the window |
x |
int The new x position |
y |
int The new y position |
w |
int The new width |
h |
int The new height |
Return
True on success
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.This method is useful when the user does not have access to a mouse.
Examples
var pid
var wnd = null
if(!pid) pid = KioUtils.Execute('notepad.exe')
var wnd = null
while (!wnd) {
wnd = KioUtils.GetProcMainWnd(pid)
setTimeout(function(){KioUtils.BringWndToFront(wnd);}, 3000)
}
//place a 600px by 600px window in the top left of the screen
console.log(KioUtils.SetWndBounds(wnd, 0, 0, 600, 600))
Requirements
KioWare for Windows version 8.5 or greater.