Skip to content

Function move issue and setWindowPos sample #6

@genesisneo

Description

@genesisneo

I am using the move function as:

activeWindow = winctl.GetActiveWindow();
activeWindow.move(0, 0, 800, 600);

but I have multiple issues:

  • there is a space (7px gap) between the screen area and the active window
  • on a high-resolution screen with more than 100% scale, the x, y, width, and height are not accurate

I saw that there is a function called setWindowPos but there is no sample on how to use it.
Does anyone know how I can use setWindowPos and is it better than move? Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions