This article is a mirror article of machine translation, please click here to jump to the original article.

View: 536251|Reply: 179

[Source] .NET/C# driver-level analog keyboard input

  [Copy link]
Posted on 5/27/2017 9:37:08 AM | | | |
Introduction:
The most user-selected, the simplest and easiest to use, the most stable and reliable Free forever The underlying integration of the system, true driver-level hardware simulation One-click installation, that is, add a pair of fully programmable keyboards and mice to the computer, easy and automatic operation of the computer Suitable for VB6, DELPHI, VC, BC, VB.NET, C#, JAVA, easy language and other programming languages Support WINXP and above 32-bit and 64-bit operating systems Essential for personal desktop applications and game studio installations In addition, it provides drivers that do not require a real keyboard and mouse version at all, as well as drivers that have been protected by NP and other protected versions

Recommend the others:
.net/c# WinRing0 driver-level analog keyboard input [source code]
http://www.itsvse.com/thread-3924-1-1.html
(Source: Architect)


How to use DD:
32-bit compiled program calls DD32.dll (VB6, easy language), 64-bit compiled program calls DD64.dll (this dll can also be named arbitrarily). Then call the interface function.

Screenshot of the case effect:



Function description:
All functions (unless otherwise specified) have parameters and return values of type int32

1. DD_btn (Parameters)
Function: Simulates mouse clicks
Parameters: 1 = Left-click press, 2 = Left-click release
4 = Right-click to press , 8 = Right-click to release
16 = Press the middle button , 32 = Release the middle button
64 = 4 keys to press , 128 = 4 keys to release
256 =5 key to press , 512 =5 key to release
Example: Simulate the right mouse button only needs to write continuously (delay can be added in the middle) dd_btn(4); dd_btn(8);

2. DD_mov (parameter x, parameter y)
Function: Simulates mouse pair movement
Parameters: Parameter x, parameter y is the origin in the upper left corner of the screen.
Example: Move the mouse to the middle of the screen with a resolution of 1920*1080,
int x = 1920/2 ; int y = 1080/2;
DD_mov(x,y) ;

3. DD_movR (parameter dx, parameter dy)
Function: Simulates relative mouse movement
Parameter: Parameter dx , parameter dy takes the current coordinates as the origin.
Example: Move the mouse 10 pixels to the left
DD_movR(-10,0) ;

4. DD_whl (Parameters)
Function: Simulates a mouse wheel
Parameters: 1 = Front, 2 = Back
Example: Roll forward one block, DD_whl (1)

5. DD_key (parameter 1, parameter 2)
Function: Simulates keyboard keys
Parameters: For parameter 1, please refer to [DD Virtual Keyboard Table].
Parameter 2, 1 = press, 2 = release
Example: Simulate TAB key, just write continuously (delay can be added in between)
DD_key(300, 1);
DD_key(300, 2);

6. DD_todc (parameter)
Function: Convert Windows virtual key code to DD dedicated key code.
Parameters: Windows virtual key code
Example: int ddcode = DD_todc(VK_ESCAPE);
Dim ddcode As int32 = DD_todc(27);

7. DD_str (Parameters)
Functions: Directly enter characters and spaces visible on the keyboard
Parameters: string, (note that this parameter is not of type int32)
Example: DD_str("MyEmail@aa.bb.cc !@#$")


Postscript:
Normal games and desktop operations are automated, and all mouse and keyboard simulation operations can be completed with only DD_btn, DD_mov, DD_whl, DD_movR four functions to control the mouse and DD_key one function to control the keyboard. (DD Enhanced is required for simulation in some games with protections)
For local calls, the DD32.dll or DD64.dll path file names are saved in the registry as follows:
HKEY_LOCAL_MACHINE\SOFTWARE\DD XOFT\path


C# demo code:
Download Address:

Tourists, if you want to see the hidden content of this post, pleaseReply






Previous:C# analog keyboard input, the corresponding numeric symbol keys on the keyboard
Next:.net/c# to switch between English and Chinese
Posted on 1/4/2019 11:37:54 PM |
       
Engage/reply topics are off
RE: .net/c# 驱动级模拟键盘输入 [修改]
Posted on 9/22/2020 10:07:08 PM |

Not bad, you can simulate keyboard input is a must-have for assistance
Posted on 7/23/2018 8:59:44 PM |
Not bad, you can simulate keyboard input is a must-have for assistance
Posted on 6/29/2017 4:57:43 PM |
Looking for Dongdong in this regard, thank you for sharing!
Posted on 6/29/2017 7:49:48 PM |
1111111111111111111111

Score

Number of participants1MB-1 contribute-1 Collapse reason
QWERTYU -1 -1 Do not pour water, improving the quality of reply posts is the duty of every member.

See all ratings

Posted on 6/30/2017 9:26:10 AM |
Not bad, you can simulate keyboard input is a must-have for assistance
Posted on 8/16/2017 1:57:08 PM From the phone |
Just need, take a look, thank you
Posted on 9/9/2017 10:46:33 PM |
Thank you to the landlord,
Posted on 9/20/2017 12:01:28 PM |
Thank you for sharing!
Posted on 9/20/2017 6:46:34 PM |
kankan~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Posted on 9/22/2017 2:30:49 PM |
Network validation every time it loads. Errors are often reported
Posted on 9/22/2017 5:25:11 PM |
Thanks for sharing
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com