简体   繁体   English

如何在C ++中的X,Y位置启动CMD屏幕

[英]How to start CMD screen in a X,Y position in c++

I would like to know how can i set the coord of a c++ cmd screen, like to start in the windows 0,0 pixel. 我想知道如何设置c ++ cmd屏幕的坐标,例如从Windows 0,0像素开始。

probably is something with the system(""); 可能是system(“”); but i don't know 但我不知道

使用CreateProcess API,并在dwXdwY字段中传递带有坐标的STARTUPINFO结构。

您还可以创建过程,然后使用SetWindowPos

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 C ++校正图形上点(x,y)的位置 - C++ correcting the position for point(x,y) on the graph 从(x,y)位置计算网格线C ++ - Calculating grid cords from (x, y) position C++ 来自X,Y位置流C ++的加速度和速度 - Acceleration and Velocity from X,Y Position Stream C++ C ++ / WinRT - TextBlock,如何动态附加并将其位置(x,y)设置为XAML表单? - C++ /WinRT - TextBlock, how to dynamically attach and set its position (x, y) to XAML form? 在C ++中,如何让用户在应用程序窗口中指定屏幕上的点(X,Y)? - In C++ , how can I get the user to specify a point on the screen (X,Y) out of the app window? C ++中&#39;x%y!= 0&#39;的力学 - Mechanics of 'x % y != 0' in C++ 是否可以在RAD Studio 10 c ++中设置窗口(x,y)的位置? - Is it possible to set the Window (x, y) Position in RAD Studio 10 c++? 有什么区别! C ++中的(x &lt;y)和x&gt; = y? - What is the difference between ! ( x < y ) and x >= y in C++? c ++多态((X *)y) - > foo()vs((X)* y).foo() - c++ polymorphism ((X*)y)->foo() vs ((X)*y).foo() 对于0 &lt;= x &lt;= 1和1的优化计算pow(x,y) - Calculating in an optimized way pow(x,y) for 0<=x<=1 and 1<y<2 in C++
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM