Code Monkey home page Code Monkey logo

class_dd's Introduction

DD is a virtual keyboard/mouse library, used to simulate keys/mouse in hardware driver level.

Limitation

A network connection is required when loading the DD library (dll file), but once loaded the computer can go offline. The author of DD provides a paid service for removing the network requirement, you can mail him at this address.

Methods

  • btn(param) - Simulate mouse button press

param:
1 = LButton Down, 2 = LButton Up
4 = RButton Down, 8 = RButton Up
16 = MButton Down, 32 = MButton Up
64 = Button 4 Down, 128 = Button 4 Up
256 = Button 5 Down, 512 = Button 5 Up

  • mov(x, y) - Simulate mouse move

  • movR(dx, dy) - Simulate mouse move (relatively)

  • whl(param) - Simulate mouse wheel

param: 1=upward 2=downward

  • key(param1, param2) - Simulate keyboard

param1: DD code
param2: 1=Down 2=Up

  • todc(VKCode) - VKCode to DD code

  • str(string) - Send string

  • MouseMove(hwnd, x, y)

  • SnapPic(hwnd, x, y, w, h) - Screenshot to "C:\DD Snap" folder

  • PickColor(hwnd, x, y, mode=2)

-- Some helper methods:

  • _btn(sNick)

sNick: One of the following
LButtonDown, LButtonUp
RButtonDown, RButtonUp
MButtonDown, MButtonUp
4ButtonDown, 4ButtonUp
5ButtonDown, 5ButtonUp

  • _key(sKey, sflag)

sKey: The key name. e.g. F11
sflag: Down or Up

  • _key_press(sKey [, sKey2, sKey3...])

sKey: The key name

  • _whl(sParam)

sParam: Down or Up

Example

#Include, class_DD.ahk

DD.str("abc")
DD._key_press("F11")
DD._key_press("LWin", "R")
DD._key_press("Ctrl", "Alt", "S")

class_dd's People

Contributors

tmplinshi 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.