gui.setCurrentDesktop
Switches to a specified ShiVa desktop.
Prototype
bOk = gui.setCurrentDesktop ( nDesktop )
Parameters
nDesktop - desktop index number 1..n
Return values
bOk - true on success
Sample
function onDesktop1 ( ) if ( gui.getDesktopCount ( ) > 0 ) then gui.setCurrentDesktop ( 1 ) end end
Available since ShiVa 2.0