app window size/location

Allows you to set the size and location of the specified window.


Example

Running this code will run “Notepad”, then will set the following size and location for it:

  • Windows Location X: 0
  • Windows Location Y: 0
  • Window Width: 1920
  • Window Height: 1040
ui button("Run Notepad") {
    shell("cmd /c start \"\" \"notepad.exe\"")
}
plugin command("Desktop Automation.dll", "app window size/location", "notepad", "", 0, 0, 1920, 1040, "")

Was this helpful?