system.net.getHostName
Description
Returns the host name of the computer that the client is currently running on. On Windows, this is typically the "computer name". For example, might return EAST_WING_WORKSTATION or bobs-laptop .
Syntax
Code Examples
Code Snippet
#Put this script on a navigation button to link dedicated machines to specific screens.comp = sytem.net.getHostName()#check which line this client is tied toif comp == "Line1Computer": system.nav.swapTo("Line Detail", {"line":1})elif comp == "Line2Computer": system.nav.swapTo("Line Detail", {"line":2})else: system.nav.swapTo("Line Overview")