RoboTask User's Guide
Keyword Index
Home page



IconQuick Start Guide
IconSeveral practical recommendations
IconMenus
IconActions
IconTask Triggers
IconAppendix

© 2004-2021 TaskAutomation.Software

On Local/Remote Session Changes

Top  Previous  Next

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.

 

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

Listener

Pixels Monitor

WebSocket Server On Message

WebSocket Client On Message

WebSocket Server On HTTP Reqest