Show / Hide Table of Contents

Class AutotextTriggerArgs

Arguments for actions of autotext triggers. You can use functions AutotextTriggerArgs.Replace and AutotextTriggerArgs.Menu to replace user-typed text.

public class AutotextTriggerArgs : TriggerArgs

Namespace: Au.Triggers
Assembly: Au.dll
Inheritance
object
TriggerArgs
AutotextTriggerArgs
Inherited Members
TriggerArgs.TriggerBase
TriggerArgs.DisableTriggerUntilClosed(toolbar)

Constructors

Name Description
AutotextTriggerArgs(AutotextTrigger, wnd, string, bool)

Properties

Name Description
HasPostfixChar

true if the autotext activated when the user typed a postfix delimiter character. Then it is the last character in AutotextTriggerArgs.Text.

ShiftLeft

If true, AutotextTriggerArgs.Replace will select text with Shift+Left instead of erasing with Backspace. Except in console windows. Initially true if flag TAFlags.ShiftLeft is set. Can be changed by a callback function, for example to use or not use Shift+Left only with some windows.

Text

The user-typed text. If AutotextTriggerArgs.HasPostfixChar==true, the last character is the postfix delimiter character.

Trigger
Window

The active window.

Methods

Name Description
Confirm(string)

Shows a 1-item menu below the text cursor (caret) or mouse cursor.

Menu(params TAMenuItem[])

Creates and shows a menu below the text cursor (caret) or mouse cursor, and calls AutotextTriggerArgs.Replace.

Replace(string, string)

Replaces the user-typed text with the specified text or/and HTML.

Replace2(params KKeysEtc[])

Replaces the user-typed text with the specified text, keys, clipboard data, etc.

SendPostfix()

If AutotextTriggerArgs.HasPostfixChar==true, sends the postfix character (last character of AutotextTriggerArgs.Text) to the active window.

ToString()