On Local/Remote Session Changes

<< Click to Display Table of Contents >>

Navigation:  Task Triggers >

On Local/Remote Session Changes

This trigger responds to opening and closing a user session on your PC. The trigger responds to any other session, no matter in what session RoboTask is running. This can be useful when working on Terminal Server.

When a trigger responds and starts the task, it can write to a task variable information about the session in JSON format, with fields:

event - which event occurred. Possible options:

CONSOLE_CONNECT

CONSOLE_DISCONNECT

REMOTE_CONNECT

REMOTE_DISCONNECT

SESSION_LOGON

SESSION_LOGOFF

SESSION_LOCK

SESSION_UNLOCK

client_name - the client computer name. For local sessions, this field is always empty

client_address - the client network address. For local sessions, this address is always 0.0.0.0

domain - the domain name of the client computer. For local sessions, this field is always empty

user_name - The client user name. For local sessions, this field is always empty.

hres - horizontal dimension, in pixels, of the client's display

vres - vertical dimension, in pixels, of the client's display

color_depth - color depth of the client's display.

 

OnSessionChanges

 

Trigger mode

Enable one or more events for the trigger to respond:

Console connect

Console disconnect

Remote connect

Remote disconnect

Session logon

Session logoff

Session lock

Session unlock

 

Save session info to variable

Enter the variable name to save the session information. The action saves session information as JSON value with fields:

event

client_name

client_address

domain

user_name

hres

vres

color_depth

 

note Related Topics

Scheduler

Hot Keys

Tray Icon

Cyclic

Process Watcher

File Monitor

Dial-Up Connection Monitor

Expression monitor

Window Watcher

On Time Changed

On Battery Power is Low

On Spooler Changed

On Device Changed

On Palette Changed

On Display Changed

On Log Off

On Idle

On High Memory Load

On High CPU Load

On Switching to Battery

On AC Power Restored

Clipboard Monitor

Registry Monitor

Listener

Pixels Monitor

WebSocket Server On Message

WebSocket Client On Message

WebSocket Server On HTTP Request