Code Monkey home page Code Monkey logo

priscilla's Introduction

Priscilla

A small mouse interop library.

var mouse = new Mouse();

// put the cursor at screen coordinate x:100 y:200
mouse.PositionCursor(new Coordinate(100, 200));

//get to the current location of the cursor
var currentPosition = mouse.FindCursor();

//left button down
mouse.LeftDown();

//left button up
mouse.LeftUp();


//Higher level actions are available as extensions in Priscilla.Extension

//move the cursor 
mouse.MoveTo(new Coordinate(200, 200), MovementSpeed.Medium);
mouse.MoveTo(new Coordinate(300, 300), MovementSpeed.Instant);
mouse.MoveTo(new Coordinate(100, 100));

//drag and drop from point x:400; y:100 to x:100; y:150
mouse.DragAndDrop(new Coordinate(400, 100), new Coordinate(100, 150);

//click actions
mouse.LeftClick();
mouse.RightClick();
mouse.MiddleClick();

priscilla's People

Contributors

sebastianhallen avatar

Watchers

 avatar

priscilla's Issues

keyboard support

Now that priscilla uses SendInput, it should be a bit easier to add keyboard support as well.

Create a window bound mouse

  • Should not hi-jack cursor
  • Should be able to work with a minimized window.

If possible do not use SendMessage

Search for windows with wildcard titles

Add support for searching windows with wildcards.
Use some kind of magic string like '*' to denote the wildcard in the title. If an exact match exits, use it. If multiple matches exists when an exact match is not found, throw an exception.
Should be possible to have the wildcard anywhere in the title.

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.