SplitScript reference / Module / scan
Module.scan
Method
Module.scan(signature: Signature) -> async address
Scans a module for a signature.
The module's address and size define the scanned range. Large modules are scanned cooperatively across ticks so the autosplitter keeps yielding to the host.
Parameters
signature: The compiled signature pattern.
Effects: reads process memory, requires an attached process, suspends, cancels when the process closes
Runtime behavior: available only in onAttach; suspends; cancels when the process closes
Examples
Scan an entire module
let gameAssembly = await process.module("GameAssembly.dll")
let marker = await gameAssembly.scan(sig"48 8B ?? 89")