Code Monkey home page Code Monkey logo

master's Introduction

DD 虚拟鼠标 & 虚拟键盘
DD Virtual Mouse & Virtual Keyboard

QQ群: 984539184
2

 

6个DD通用函数说明:

1. DD_btn(int btn)
功能: 鼠标点击
参数:
1 =左键按下 ,2 =左键放开
4 =右键按下 ,8 =右键放开
16 =中键按下 ,32 =中键放开
64 =4键按下 ,128 =4键放开
256 =5键按下 ,512 =5键放开
例子:
模拟鼠标右键 只需要连写(中间可添加延迟)
dd_btn(4); dd_btn(8);

2. DD_mov(int x, int y)
功能: 鼠标绝对移动
参数:
x , y 以屏幕左上角为原点。
例子:
把鼠标移动到分辨率1920*1080 的屏幕正中间,
int x = 1920/2 ; int y = 1080/2;
DD_mov(x,y) ;

3. DD_movR(int dx,int dy)
功能: 模拟鼠标相对移动
参数:
dx , dy 以当前坐标为原点。
例子:
把鼠标向左移动10像素
DD_movR(-10,0) ;

4. DD_whl(int whl)
功能: 模拟鼠标滚轮
参数:
1=前 , 2 = 后
例子:
向前滚一格,
DD_whl(1)

5. DD_key(int ddcode,int flag)
功能: 键盘按键
参数:
ddcode参考[DD虚拟键盘码表]。
flag,1=按下,2=放开
例子:
单键WIN,
DD_key(601, 1);
DD_key(601, 2);
组合键:ctrl+alt+del
DD_key(600,1);
DD_key(602,1);
DD_key(706,1);
DD_key(706,2);
DD_key(602,2);
DD_key(600,2);

6. DD_str(char *str)
功能: 直接输入键盘上可见字符和空格
参数: 单字节字符串
例子:
DD_str("[email protected] !@#$")

 

master's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.