ph_switchto PowerHome formula function
Description
Switches focus to the specified window.
Syntax
ph_switchto ( s, n )
Argument Description
s The title or classname of the window you wish to switch to.
n An integer representing type type of argument s. Use a 0 if you wish to switch using the classname of the window. Use a 1 if you wish to switch using the title of the window.
Return value
Integer. Returns a 0 if successful. A 1 indicates an error occurred while trying to set the specified window as the foreground window. A 2 indicates that the specified window was not found. A 3 indicates that an error occurred while retrieving the handle of the current window.