Class opt
Ambient options for some functions of this library.
public static class opt
Remarks
Some frequently used functions of this library have some options (settings). For example keys.send allows to change speed, text sending method, etc. Passing options as parameters in each call usually isn't what you want to do in automation scripts. Instead use this class. See examples.
To store these options, internally is used System.Threading.AsyncLocal<T>. It means that a new task or thread inherits a copy of options of the caller. It can't modify options of the caller or other tasks/threads.
Examples
opt.key.KeySpeed = 50;
Set options for trigger actions.
Triggers.Options.BeforeAction = o => { opt.key.KeySpeed = 50; };
Namespace: Au
Assembly: Au.dll
Properties
Name | Description |
---|---|
key | Options for keyboard and clipboard functions (classes keys, clipboard and functions that use them). |
mouse | Options for mouse functions (class mouse and functions that use it). |
warnings | Options for showing run-time warnings and other info that can be useful to find problems in code at run time. |