Text Expansion Snippets
Core API Hook: Clipboard Paste / Virtual Key Simulation
Instantly type multi-line strings, email boilerplate templates, or custom date/time formats into the active foreground input cursor field.
Configuration Parameters
| Parameter | Type | Description |
|---|---|---|
| Target | string | The raw text string block or template code snippet to output into the editor. |
| PasteAsText | boolean | If true, utilizes Windows Clipboard backing to paste in one instant operation, otherwise types key-by-key. |
| TypeTextDelay | integer | Typing delay intervals in milliseconds between consecutive letters (used when PasteAsText is false). |
config.json Mapping
{
"Type": "TypeText",
"Name": "Insert Signature Template",
"Target": "Best regards,\
Isocent Studios Development Team\
https://isocent.com",
"PasteAsText": true,
"TypeTextDelay": 0
}
Save inside database layout actions configuration map.
Native Execution Hook
// TypeText execution logic (STA Thread Safe)
Application.Current.Dispatcher.Invoke(() =>
{
if (action.PasteAsText)
{
var prevText = Clipboard.GetText();
Clipboard.SetText(action.Target);
SendInputEngine.SendKeyStroke("Ctrl+V");
// Restore clipboard state async
Task.Delay(100).ContinueWith(_ => Clipboard.SetText(prevText));
}
else
{
SendInputEngine.SimulateKeyboardTyping(action.Target, action.TypeTextDelay);
}
});
Executed within IsoCore remapping runtime loop.
← Back to Actions Directory
IsoKey Module: TypeText