bingcas.blogg.se

How to snap a window on a center monitor
How to snap a window on a center monitor





how to snap a window on a center monitor how to snap a window on a center monitor

This problem is completely solved using a couple of helper programs and a batch file. You can also customize cmd.exe window or the "run" application by adding lines to "SetupEnvCmd.cmd assuming "run" is asynchronous win32 application otherwise add "start" command. Not so much a problem with explorer.exe or cmd.exe but something like Firefox's or java applications can vary from few seconds to several dozen seconds depending on the speed your hardware and OS tuning. So you would increase time if you have virus scanners that delay. The "wait" may need to be adjusted to give the time for the application window to initialize.

how to snap a window on a center monitor

"c:\develop\jboss-4.2.3.GA\server\default\deploy" "something" is window title usually the folder name eg. Where x,y top left corner location and width,height are the window size Nircmd wait 1000 win setsize ititle "something" x, y, width, heightĮxplorer /n,c:\develop\Project\Mapping\deploy Nircmd cmdwait 1000 win setsize ititle "cmd.exe" 30 30 1000 600Įxplorer /n,c:\develop\jboss-4.2.3.GA\server\default\deploy Nircmd win setsize ititle "cmd.exe" 30 30 100 200 Nircmd win move ititle "cmd.exe" 5 5 10 10 Here is an alternate way with nircmd util from







How to snap a window on a center monitor