Set The Window Position of an application via command line

前端 未结 8 1234
轮回少年
轮回少年 2020-11-27 14:39

I have an application which start in 0x0 position of my desktop. I want to open it in center of my desktop. I do not want to open it and use a move command to move it into c

8条回答
  •  [愿得一人]
    2020-11-27 15:19

    You can use nircmd project here: http://www.nirsoft.net/utils/nircmd.html

    Example code:

    nircmd win move ititle "cmd.exe" 5 5 10 10
    nircmd win setsize ititle "cmd.exe" 30 30 100 200
    nircmd cmdwait 1000 win setsize ititle "cmd.exe" 30 30 1000 600
    

提交回复
热议问题