puter.ui.setWindowX()GUI


Sets the X position of the window.

Syntax

puter.ui.setWindowX(x)

Parameters

x (Float) (Required)

The new x position for this window.

Examples

<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        // sets the position of the window to 100px from the left
        puter.ui.setWindowX(100);
    </script>
</body>