写了个鼠标键盘模拟器,希望对大家有用哈!

Posted yangzhenping

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了写了个鼠标键盘模拟器,希望对大家有用哈!相关的知识,希望对你有一定的参考价值。

写了个鼠标键盘模拟器,希望对大家有用哈!

NOTE:写这个工具主要是帮老婆写了个自动化工具,减轻老婆重复操作的麻烦。


地址:


https://github.com/yangzhenping/KeyboardMouseSimulator

https://github.com/JumpingYang001


内容:


KeyboardMouseSimulator

Keyboard and Mouse Simulator on Windows

Introduction

This is a Keyboard and Mouse Simulator on Windows, which is a program coding with C# .net 2.0.

Usage

  1. Create a file 'model.txt' under same directory with current application.

  2. Edit model.txt with Keyboard or Mouse actions, each action a line, and the format is actionname###actionvalue

actionname can be below values:

LeftClick
单击
左键
DoubleClick
双击
RightClick
右键
Move
移动
Drag
拖动
Input
输入
Sleep
延迟

actionvalue can be below work with actionname values:

LeftClick###473,472
单击###473,472
左键###473,472
DoubleClick###473,472
双击###473,472
RightClick###473,472
右键###473,472
Move###473,472
移动###473,472
Drag###373,372,473,472
拖动###373,372,473,472
Input###ENTERI am Jumping
输入###ENTER我是Jumping
Sleep###1000
延迟###1000

Screen shots

A tool to get screen x value and y value

mousexy.exe is under this repository, but I don't know who is its owner, so just share it...... If you are the owner, please contract me, thanks.


以上是关于写了个鼠标键盘模拟器,希望对大家有用哈!的主要内容,如果未能解决你的问题,请参考以下文章

selenium模拟多种键盘操作

selenium模拟多种键盘操作

13.Selenium鼠标和键盘操作模拟鼠标操作页面元素(了解)

尝试用 Python 写了个病毒传播模拟程序

python怎么编是不是按键

Linux 模拟 鼠标 键盘 事件