Screen:setAutoScale()
Scale the screen's coordinates to the current resolution, or stop scaling them.
Signature
setAutoScale(enabled: boolean): Screen
Parameters
| Parameter | Type | Description |
|---|---|---|
| enabled | boolean | true scales coordinates; false uses them as-is |
Returns
Screen, so calls can chain.
Description
Overrides the macro-wide Settings:setAutoScale() for the full-screen Screen object. Useful
when a macro was recorded on a different resolution but the rest of the macro should keep the
global setting. The change applies to later calls on this object.
Example
Screen:setAutoScale(true)
Screen:click("button.png")
Compatible Version: 1.0.0.37 and up