Open LisBerndt opened 4 years ago
Are there ambitions to realize a positioning function to focus a window to defined coordinates
You want to focus the front-most window at given coordinates? Or do you want to focus a window and move it to defined coordinates? If the latter, position is window center or top left corner?
I'm pretty sure @PfrLisBerndt means the latter one :-)
@RaiMan
Should't be too hard to implement
SetWindowPos
xdotool windowmove
/ xdotool windowsize
MacOS: AppleScript
Something like:
tell application "System Events" to tell process "Safari"
set position of window 1 to {0, 50}
set size of window 1 to {600, 650}
end tell
Are there ambitions to realize a positioning function to focus a window to defined coordinates
You want to focus the front-most window at given coordinates? Or do you want to focus a window and move it to defined coordinates? If the latter, position is window center or top left corner?
We handle two windows: one for our UI to be tested and another one for a telnet terminal which receives commands. Initializing our test we first position each window to a specific position, side by side. While performing the test we focus them depending on the upcoming action.
implementation suggestion
SetWindowPos
xdotool windowmove
/xdotool windowsize
Hello again!
In our framework we use AutoIt to focus, position and send keys to an app-window.
I just recognized the app-feature in Sikulix and I successfully tried to focus and send keys to window.
Are there ambitions to realize a positioning function to focus a window to defined coordinates (or is there already one I missed)? This would allow us to substitute AutoIt by Sikulix in long-term.