MorphOS Developer
Posts: 1049 from 2004/9/23
Quote:
Sprocki wrote:
Is there any similar approach to https://morph.zone/modules/newbb_plus/viewtopic.php?topic_id=11217&forum=9 for MUI program windows? I need to set position and size from a Shell script on startup. I don't wan't to snapshot them as I need different positions and sizes for different setups.
You can open a new shell with matching coords.
newcli MUICON:0/10/400/200/ThisIsTheName/CLOSE
Same works if you want to launch a tool you can redirect input or output to a new shell.
ShellUsingApp <>MUICON:0/10/400/200/ThisIsTheName/CLOSE
EDIT: Ups. Got it wrong. :) For MUI applications this does not work, but i guess there are tools in aminet allowing to change position of windows after they are open. Its a hack, but should work.
e.g. MMKeyboard provides some macro which allows this via hotkey.
[ Edited by geit 01.10.2015 - 23:42 ]