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?
Related
I have a Python script written using Visual Studio Code that periodically moves the mouse icon to keep the computer active and stop it from falling asleep. This computer is used for displaying other info, so when the program is running the script window is minimized and another window is selected and opened and then the computer is left alone. When I want to use the computer again the Ctrl+C keyboard interrupt to terminate the script does not work unless the script window is reopened. This proved to be annoying as the script takes control of the mouse away from the user. I have a 'time.sleep' command that pauses the mouse movement to allow for user control again for a bit, but I would like to be ab le to just exit the script without having to wait for this pause to be able to open up the script window.
I am fairly new to Python, so I am unsure of other commands or keyboard inputs that might allow this to be possible.
The code I have does utilize the pyautogui module and has the default failsafe of moving the mouse icon to the corner of the screen enabled. However, this still requires me to wait for the pause in the script when I have control of the mouse again.
This is for a Windows environment.
If you are using pyautogui, just quickly move your mouse to the top left corner of the screen and your program will stop
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?
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.
I am experiencing following problem with ipython-qtconsole:
I type in ipython-qtconsole window, then I switch to another application window with Alt+Tab. When I switch back again into ipython-qtconsole the text area is no longer selected/activated, but rather the menu. That means, when I start typing or hit enter, I am actually in the top menu. I have to click with the mouse in the text area first, and then I can start typing.
Is this normal behavior? I cannot imagine that anybody would want this "functionality". Is it possible to change it, so that when ipython-qtconsole window is activated, the text area is automatically active (i.e. the cursor is there) ?
I am using matlab on linux with gnome and I have a problem with the command window. Note that this problem goes away when I switch to twm, but I don't want to do that (for obvious reasons).
When the command window loses focus and then regains focus, it freezes, i.e., it ignores anything I type. The only consistent way I've found to unfreeze it is to click somewhere within the matlab window, but outside the command window (for example, the workspace or command history windows), and then click back in the command window.
This is very annoying and it happens all the time. Any help would be appreciated!
Thanks