Show / Hide Table of Contents

Namespace Au.More

AppSingleInstance

Implements "single instance process" feature.

BufferedPaint

Wraps buffered paint API BeginBufferedPaint etc. Must be disposed locally, like in the example.

CaptureScreen

Contains functions and tools to capture image, color, window, rectangle or point from screen.

CaptureScreenImage

Captures image pixels from screen or window.

CheckListDialog

Dialog with list of check boxes.

ComUtil

COM utility functions.

Convert2

Data conversion functions. Compression, encryption, hex encoding, etc.

CpuUsage

Gets CPU usage.

DebugTraceListener

Replaces default trace listener with listener that overrides its System.Diagnostics.DefaultTraceListener.Fail method. On failed assertion (System.Diagnostics.Debug.Assert, System.Diagnostics.Trace.Assert, System.Diagnostics.Debug.Fail, System.Diagnostics.Trace.Fail) it shows message box with buttons ExitDebugIgnore, unless debugger is attached or !AssertUiEnabled.

Dpi

Functions for high-DPI screen support.

Dpi.Awareness

DPI awareness of a window or process.

Dpi.AwarenessContext

Can be used to temporarily change thread's DPI awareness context with API SetThreadDpiAwarenessContext. Does nothing if the API is unavailable (added in Windows 10 version 1607).

EnumUI<TEnum>

Add enum members to a popupMenu menu or WPF control.

ExplorerFolder

File Explorer folder window functions.

FastBuffer<T>

Memory buffer on stack with ability to expand and use heap memory. Can be used for calling Windows API or building arrays. Must be used with [SkipLocalsInit] attribute; add it to the caller function or class.

FileOpenSaveDialog

Shows standard "Open", "Save As" or "Select Folder" dialog to select a file or folder.

FileSystemRedirection

File system redirection functions. Can temporarily disable redirection, to allow this 32-bit process access the 64-bit System32 directory. Example: using (FileSystemRedirection r1 = new()) { r1.Disable(); ... }.

FileTree

Contains file infos of this and descendant folders and files retrieved by filesystem.enumerate. Can print a formatted list of descendant sizes.

FileWatcher

Watches a file for external changes. An external change is when another process writes, creates, deletes, moves or renames the file.

GdiTextRenderer

Draws text using fastest GDI API such as TextOut and standard UI font. Can easily draw string parts with different colors/styles without measuring. Must be disposed.

GridSplitter2

Grid splitter control. Based on System.Windows.Controls.GridSplitter, changes its behavior.

Hash

Data hash functions.

Hash.MD5Context

Computes MD5 hash of data. Call Add one or more times. Finally use Hash.MD5Context.Hash to get result.

Hash.MD5Result

Result of Hash.MD5Context.Hash. It is 16 bytes stored in 2 long fields r1 and r2. If need, can be converted to byte[] with Hash.MD5Result.ToArray or to hex string with Hash.MD5Result.ToString.

HelpUtil

Static functions to open a help topic etc.

HttpServerSession

Simple HTTP 1.1 server. Can be used for communicating between two scripts or apps on local network, internet or same computer. Also can receive requests from web browsers etc.

IconImageCache

Gets images as System.Drawing.Bitmap of same logical size to be displayed as icons. Can get file icons or load images from files etc.

ImageUtil

Loads WPF and GDI+ images from file, resource or string.

KeyToTextConverter

Converts virtual-key codes to text characters.

Math2

Simple calculation functions.

MemoryBitmap

Creates and manages native bitmap handle and memory DC (GDI device context). The bitmap is selected in the DC.

MemoryUtil

Allocates memory from native heap of this process using heap API. Also has more functions to work with memory: copy, move, virtual alloc.

MenuItemInfo

Gets item id, text and other info of a classic menu.

MouseCursor

Helps to load cursors, etc. Contains native cursor handle.

OcrGoogleCloud

This OCR engine uses Google Cloud Vision API.

OcrMicrosoftAzure

This OCR engine uses Microsoft Azure Computer Vision OCR.

OcrTesseract

This OCR engine uses tesseract.exe from Tesseract installed on this computer.

OcrWin10

The default OCR engine. Available on Windows 10 and later.

PrePostBuild

Contains compilation info passed to current preBuild/postBuild script.

PrintServer

Receives messages sent by print.it.

ProcessMemory

Allocates, writes and reads memory in other process.

RecordingUtil

Functions for keyboard/mouse/etc recorder tools.

RegisteredHotkey

Registers a hotkey using API RegisterHotKey. Unregisters when disposing.

ResourceUtil

Gets managed resources from a .NET assembly.

ScriptEditor

Contains functions to interact with the script editor, if available.

SecurityUtil

Security-related functions, such as enabling privileges.

SpeakVoice

Speaks text.

StringUtil

Miscellaneous rarely used string functions. Parsing etc.

TempFile

Creates unique name for a temporary file and later auto-deletes the file.

WaitableTimer

Wraps a waitable timer handle.

WaitLoop

Can be used to easily implement "wait for" functions with a timeout.

WatermarkAdorner

Adorner that draws watermark/hint/cue text over the adorned control (TextBox etc).

WindowsHook

Wraps API SetWindowsHookEx.

WinEventHook

Helps with UI element event hooks. See API SetWinEventHook.

WinformsControlNames

Gets programming names of .NET Windows Forms controls.

WndCopyData

Send/receive data to/from other process using message WM_COPYDATA.

WndCopyData.ResultReader<TReceive>

Type of WndCopyData.SendReceive<TSend, TReceive> callback function.

WndSavedRect

Helps to save and restore window rectangle and state. Ensures in screen, per-monitor-DPI-aware, etc.

WndUtil

Miscellaneous window-related functions. Rarely used in automation scripts.

XmlUtil

Loads XElement and XDocument in a safer way.