Skip to content

ddxoft/master

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 

Repository files navigation

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

Discord: ddxoft

Tlg: https://t.me/ddxoft

QQ群: 984539184

paypal.me/cnwz

The free version will be authenticated online when loading

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("MyEmail@aa.bb.cc !@#$")

 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published