Control window size of on screen keyboard using powershell script - powershell

I am running the command osk in a powershell script, which open the on-screen keyboard, whose size can be changed by dragging its corners.
I am looking for a command that will generate this window with a specific height and width. Is that possible?

Related

how to expand peek problem window in vscode

When opening peek problem window (Alt-F8) I get a one line window with a very long horizontal scrollbar.
Is there a way to increase window height or maximize it?

How to run a function when terminal width is changed in powershell

I customized my prompt and now it has a right-aligned part, but the terminal screen messed up if I changed the width of it:
So I want powershell to run a function to clear this mess every time the terminal window width is changed. How can I achieve this?

How to toggle between split layout with multiple editors and just one editor using the full screen in vscode?

After working in a multiple column layout it is nice to be able to focus on one file momentarily using the entire application space. Then, returning to a column view.
In Slick-Edit this is Window / Zoom Toggle.
In VSCode, moving between multiple columns to 1, and then back to multiple loses editor groupings.
My approach for this scenario is using CMD+KO to Open Active File in New Window. If you close the window the file will still be present in your editor group.
There are some hiccups: I prefer a maximized window over full screen mode, but that will open a new, non-maximized window. In full screen you can prevent that, but will have to use CMD+W twice to get back to original view.

PowerShell Control Where CMD Window is Displayed

Problem
My PowerShell script generates a Form Window (with a fix startup location) and has a CMD Prompt window that is displayed alongside it that is used to display certain actions. However, with each successive launch of the PowerShell script, even though the Form Window stays in one place, the CMD Prompt window moves lower and lower as it makes its way systematically to the center of the screen. Once it reaches the center of the screen, it resets its position to the top left corner of the screen, only to repeat the process all over.
Question
Is it possible to designate the starting position of CMD Prompt Window, like you can with the Form window, so that I have more control over it?

keeping prompt centered while working interactively

Doing interactive computing using IPython in a terminal or as part of an IDE like Spyder, it would be nice to maintain the prompt in the center of the screen. Here is what typically happens:
Upon starting, the prompt (e.g. In [1]:) is at the top of the screen
A few interactive steps later, the prompt is at the bottom of the screen.
You type clear and are back at the top.
Is there any way to maintain the prompt in the center of the screen? A smooth automatic scroll of the screen upwards so that the prompt stays centered would be great.
(Spyder developer here) There's no way to maintain the prompt centered at the moment (September 2017), sorry.