SystemEvents connector methods
The SystemEvents connector methods watch various system events and, if needed, stop watching.
Methods
Provides the following methods and the events these methods track:
WatchFileSystem
Watches the following events.
| Event | Description | Parameter |
|---|---|---|
| FileChanged | Update to the file. |
|
| FileCreated | New file created in the path watched by the WatchFileSystem method. |
|
| FileDeleted | File deleted from the path watched by the WatchFileSystem method. |
|
| FileRenamed | Name of the file changed. |
|
| FileWatchError | WatchFileSystem method error. |
- Input
- Path
WatchNetworkAvailability
Watches the network availability in the system. It uses the following events. You must
execute the WatchNetworkAvailability method before executing any of the following
events.
| Event | Description | Parameter |
|---|---|---|
| NetworkAvailable | Watches the system when network is available. | |
| NetworkUnavailable | Watches the system when network is unavailable. |
WatchSessionEvents
Watches the following events.
| Event | Description | Parameter |
|---|---|---|
| OnSessionLock | When a session is locked by the user. | |
| OnSessionUnlock | When a session is unlocked by the user. | |
| OnSessionRemoteControl | When a session is remote controlled by the user. | |
| OnSessionLogoff | When the session is logged off. |
UnwatchFileSystem
Stops or prevents the RPA Desktop Design Studio from watching the file system events. You can use this method before or after the WatchFileSystem method was already used.
UnwatchNetworkAvailability
Stops or prevents the RPA Desktop Design Studio watching the network availability events. You can use this method before or after the WatchNetworkAvailability method was already used.
UnwatchSessionEvents
Stops or prevents RPA Desktop Design Studio watching the network availability events. You can use this method before or after the WatchSessionEvents method was already used.