How To Call It#
This is an object method: call it with a colon on a template from Asset.image(...), Asset.color(...) or Asset.text(...) (template:<method>(...)). AssetTemplate is not a global name; the method exists only on that object. Requires Macro Handler 1.0.51 or later.
When To Use It#
In detection flow, refresh the screen with Snap.screenRefresh() first, then narrow the search area and confidence using Region and FindParam.
Parameters and Return#
Optional: enabled (omit to pass nil and use the runtime default). Returns a AssetTemplate object.
Best Combined With#
It is typically combined with Snap, Region, Asset, and FindParam; you can feed the result into quickTap(), click(), or a follow-up OCR step.