修改的方法是这样的

下载nircmd:

http://www.nirsoft.net/utils/nircmd.html

修改分辨率:

./nircmd.exe setdisplay 1280 720 32
./nircmd.exe setdisplay 1024 768 32
./nircmd.exe setdisplay 800 600 32

Changes your display settings. The [width] and [height] parameters represents the number of pixels on your screen. The [color bits] parameter represents the number of colors shown on your screen (8 - 256 color, 16 - 16bit color, 24 - 24bit color, and so on). {refresh rate} is an optional parameter that specifies the monitor refresh rate. If you specify the {-updatereg} parameter, the new settings will be saved in the Registry. If you specify both {-updatereg} and {-allusers} parameters, the new settings will be saved in the Registry for all users.
If you have multiple monitors, you can use the optional monitor parameter, which specifies for which monitor you want to change the display settings. You can specify the monitor by index (0 for the first monitor, 1 for the second one, and so on) or by specifying a string in the system monitor name. The monitor name can be found in the Device manager of Windows: Right click on the monitor item, and then choose ‘Properties’. The string displayed in the ‘location’ field is the monitor name.
Example:

setdisplay 800 600 24 -updatereg
setdisplay 1024 768 24 90
setdisplay 1024 768 8
setdisplay monitor:1 1024 768 24 90
setdisplay monitor:name1 1024 768 24 90

nircmd的功能还是非常强大,键盘输入也可以模拟

https://nircmd.nirsoft.net/sendkeypress.html
https://nircmd.nirsoft.net/sendkey.html

NirCmd Command Reference - sendkeypress
sendkeypress [Keys Combination 1] [Keys Combination 2] [Keys Combination 3] …
Sends one or more key press combinations to the system. The operating system will behave exactly as the user really pressed the specified keys combination.
The [Key Combination] parameter specifies a single key press to send or a combination of a single key and shift/ctrl/alt/Windows keys, delimited by ‘+’ character.
The key in the [Key Combination] parameter can be specifed as numeric virtual key code (For example: 0x2e for Delete key), or as one of the following predefined values: a - z and 0 - 9 (for alphanumeric keys), F1 - F24 (for Fxx keys), shift, ctrl, alt, enter, esc ,leftshift, rightshift, leftctrl, rightctrl, leftmenu, rightmenu, spc (space), down, up, left, right, home, end, insert, delete, plus, comma, minus, period, lwin, rwin (Windows key), apps, pageup, pagedown, tab, multiply, add, subtract, seperator, divide, backspace, pause, capslock, numlock, scroll, printscreen.
You can specify more than one [Key Combination] in a single sendkeypress command.

Here’s some examples for using sendkeypress:

Send ctrl+shift+esc to show the task manager of Windows:
sendkeypress ctrl+shift+esc
Send ctrl+shift+esc to show the task manager of Windows and then move to the next window with alt+tab:
sendkeypress ctrl+shift+esc alt+tab
Switch the capslock mode:
sendkeypress capslock
Print ‘Nir Sofer’ to the current text editor in focus (The shift key combination is used to get the capital letters):
sendkeypress Shift+n i r spc shift+s o f e r
Save the current screen image into the clipboard (Ctrl+PrintScreen):
sendkeypress Ctrl+printscreen
Send Ctrl+Shift+K and then Ctrl+Shift+A and then Alt+Shift+P:
sendkeypress ctrl+shift+k ctrl+shift+a alt+shift+p

NirCmd Command Reference - sendkey
sendkey [Key] [press | down | up]
Sends a keystroke to the system. The operating system will behave exactly as the user really pressed the specified keys.
The [Key] parameter specifies the key as virtual key code (For example: 0x2e for Delete key), or as one of the following predefined values: a - z and 0 - 9 (for alphanumeric keys), F1 - F24 (for Fxx keys), shift, ctrl, alt, enter, esc ,leftshift, rightshift, leftctrl, rightctrl, leftmenu, rightmenu, spc (space), down, up, left, right, home, end, insert, delete, plus, comma, minus, period, lwin, rwin (Windows key), apps, pageup, pagedown, tab, multiply, add, subtract, seperator, divide, backspace, pause, capslock, numlock, scroll, printscreen.
The second parameter specifies the key action: ‘press’, ‘down’, or ‘up’. For each key down action, you should also add the appropriate key up action.
In the following script example, the system behaves like the user presses Shift+Ctrl+Esc (the task manager should appear):
sendkey shift down
sendkey ctrl down
sendkey esc down
sendkey shift up
sendkey ctrl up
sendkey esc up

More examples:
sendkey a press
sendkey f10 press
sendkey enter press
sendkey 0x2e press

鼠标输入也可以模拟

https://nircmd.nirsoft.net/sendmouse.html
https://nircmd.nirsoft.net/movecursor.html

NirCmd Command Reference - sendmouse
sendmouse [right | left | middle] [down | up | click | dblclick]
sendmouse [move] [x] [y]
sendmouse [wheel] [Wheel Value]
Sends the specified mouse event to the system. The operating system will behave exactly as the user really made the specified mouse action.
Heres some example of sendmouse command:
Sent a right click (For most applications, a context menu is opened):
sendmouse right click
Sent a double-click with the left mouse button:
sendmouse left dblclick
Press the left mouse button, move the mouse cursor 20 pixels left and 30 pixels down, and then release the button:
sendmouse left down
sendmouse move -30 20
sendmouse left up
Scroll the mouse wheel 10 units in standard wheel mouse. (On standard wheel mouse, the wheel value should be a multiple of 120).
sendmouse wheel 1200

window通过命令行修改屏幕分辨率的方法相关推荐

  1. linux命令 查看分辨率,Linux命令行(console)屏幕分辨率调整

    grub是系统启动器之一,用来存放启动项设置和信息,修改的时候必须特别小心,否则系统会瘫痪掉~~接下来是小编为大家收集的Linux命令行(console)屏幕分辨率调整,欢迎大家阅读: Linux命令 ...

  2. 利用 xrandr 命令强制修改屏幕分辨率

    利用 xrandr 命令强制修改屏幕分辨率 $ cvt 1366 768 然后屏幕上会返回两行内容,赋值第二行中 'Modeline' 后面的所有内容,并接到下面 xrandr --newmode 后 ...

  3. 【银河麒麟V10操作系统】修改屏幕分辨率的方法

    文章目录 前言 系统概述 方法1:使用命令行修改 方法2:写文件修改 方法3:界面端修改的方法 前言 本文记录了银河麒麟V10系统修改分辨率的方法. 使用命令行修改 写文件修改 界面端修改的方法 系统 ...

  4. ubuntu 改屏幕分辨率命令_如何使用Ubuntu命令行更改屏幕分辨率?

    问题描述 我安装了Ubuntu,台式机的分辨率是如此之大,以至于它只能显示约50%的屏幕,但是在使用命令行时却可以正常显示. 我应该在命令行中键入什么来更改桌面屏幕分辨率? 最佳方案 这为我工作: 枚 ...

  5. ubuntu16.04 通过命令,修改屏幕分辨率

    第一次写博客,,,好激动,, 首先通过命令: xrandr 查看可以修改的分辨率,如下图: 带*号的为当前的分辨率,通过 xrandr -s +分辨率_刷新频率,设置相应的分辨率(例如 xrandr ...

  6. ubuntu 改屏幕分辨率命令_如何使用 命令行 更改屏幕分辨率?

    枚举所有视频输出的名称,以及当前连接到监视器的分辨率:xrandr -q 选择要更改分辨率的输出的名称,然后:xrandr --output --mode 1024x768 注:如果从未在gfx环境中 ...

  7. Linux命令行(console)屏幕分辨率调整

    在root用户模式下,输入$ vi /boot/grub/grub.conf(路径可能会不一样,也可以是 /etc/grub.conf),打开grub.conf文件 grub是系统启动器之一,用来存放 ...

  8. console linux 分辨率,Linux命令行(console)屏幕分辨率调整

    在root用户模式下,输入$ vi /boot/grub/grub.conf(路径可能会不一样,也可以是 /etc/grub.conf),打开grub.conf文件 grub是系统启动器之一,用来存放 ...

  9. linux系统修改屏幕分辨率6,Linux系统怎么更改屏幕分辨率

    现在越来越多人开始使用Linux系统,那么Linux系统怎么设置屏幕的分辨率呢?下面是学习啦小编收集整理的Linux系统如何更改屏幕分辨率,希望对大家有帮助~~ Linux系统更改屏幕分辨率的方法 我 ...

最新文章

  1. 最短路径问题-Dijkstra
  2. Swagger UI
  3. 如何分析apache日志[access_log(访问日志)和error_log(错误日志)]
  4. 福建省计算机二级c语言题型,计算机二级C语言题型和评分标准
  5. 【渝粤题库】广东开放大学 标准的研制与编制 形成性考核
  6. (转)Android Bitmap 与 Drawable之间的转换
  7. 走在WCF学习的路上---印在脑子里的点点滴滴(两种元数据交换方式的优缺点)...
  8. C语言终极贪吃蛇代码,直接COPY上手。
  9. PBRT——零基础到完全吃透系列
  10. 软件工程实践 Blog5
  11. 股市中如何用筹码分布选牛股,通达信幅图指标公式筹码寻牛
  12. IDE工具、文本编辑器的列块编辑模式
  13. 关于我用过的机械键盘
  14. linux vim粘贴和复制文件,【linux】vim怎么粘贴其他地方复制的代码?
  15. 我在51CTO微职位学软考——东隅已逝,桑榆非晚
  16. left join、right join、full join、inner join区别
  17. 前端拓展:如何开发一个 Chrome 插件?
  18. Mysql数据库的字段类型
  19. 用电脑搭建视频会议系统的方法
  20. C++一本通题库1005

热门文章

  1. 如何配置Instantiable pallets
  2. 如何成为大数据架构师?
  3. 物联网时代人才培养的大环境因素和面临的严峻挑战
  4. 2021年熔化焊接与热切割报名考试及熔化焊接与热切割考试内容
  5. 小功率开关电源传导干扰的分析
  6. 怒肝 Java 学习路线一条龙!
  7. 死锁、活锁和饿死的理解(转)
  8. 基于jquery+php+mysql 制作 仿google日历记事
  9. Qt 中关于QTabWidget的理解
  10. 学习STM32单片机之结构体思想