求高手设计一个命令行小工具或代码,用来控制windows鼠标速度的

zjckwht 2006-10-07 02:31:11
能接受参数,该参数为鼠标速度值。
譬如速度最大为10,该参数则为大于1而小于10的某个值。鼠标速度随值变化而变化。

mouse.exe 10
mouse.exe 5
mouse.exe 1

各位大虾帮帮忙。。。或者贴出源代码。。

学习急用。谢谢
...全文
321 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
OOPhaisky 2006-10-07
  • 打赏
  • 举报
回复
用chenhu和虫子说的SystemParametersInfo就可以了。
OOPhaisky 2006-10-07
  • 打赏
  • 举报
回复
这个得用系统API了,至于程序逻辑倒是很好控制。
healer_kx 2006-10-07
  • 打赏
  • 举报
回复
UP
chenhu_doc 2006-10-07
  • 打赏
  • 举报
回复
SystemParametersInfo


SPI_SETMOUSESPEED
Windows NT 5.0 and later, Windows 98: Sets the current mouse speed. The pvParam parameter must point to an integer between 1 (slowest) and 20 (fastest). A value of 10 is the default. This value is typically set using the mouse control panel application.
jixingzhong 2006-10-07
  • 打赏
  • 举报
回复
SystemParametersInfo

The SystemParametersInfo function retrieves or sets the value of one of the system-wide parameters. This function can also update the user profile while setting a parameter.


BOOL SystemParametersInfo(
UINT uiAction,
UINT uiParam,
PVOID pvParam,
UINT fWinIni
);
jixingzhong 2006-10-07
  • 打赏
  • 举报
回复
查 系统API
chenhu_doc 2006-10-07
  • 打赏
  • 举报
回复
http://topic.csdn.net/t/20030620/12/1938058.html

用系统的API, 不过这个帖子用到的是vb。

65,187

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧