gmamaladze / globalmousekeyhook

This library allows you to tap keyboard and mouse, detect and record their activity even when an application is inactive and runs in background.
MIT License
1.05k stars 257 forks source link

Combine Input Capture + Input Simulation #118

Open TonyValenti opened 4 years ago

TonyValenti commented 4 years ago

Hi @gmamaladze , There are two libraries that we see used together a lot: https://github.com/gmamaladze/globalmousekeyhook (this library) and https://github.com/michaelnoonan/inputsimulator

Per this discussion: https://github.com/michaelnoonan/inputsimulator/issues/15

the project author is open to InputSimulator being combined with this project into one library. I wanted to find out if you are open to the same. I am volunteering to do the work.

zaafar commented 4 years ago

Is there any specific reason due to which you want to combine the two library together? Can’t we just reference two libraries together in a project?

TonyValenti commented 4 years ago

@zaafar - There is actually a lot of room for unification between the two libraries and some really great things that can be done when they are combined. For example, I envision being able to record mouse and keyboard input and then being able to play it back. With the libraries as they are today, that is technically possible but you end up having to do a lot of conversion between each apps formats. By unifying them, there will be one data format for both listening to events and playing them back.

TonyValenti commented 4 years ago

Hi all, I wanted to let you know that the unification of these two libraries is well underway! I will have things online and available most likely later this week.

TonyValenti commented 4 years ago

Hi All! Here's the initial release of WindowsInput: https://www.nuget.org/packages/WindowsInput/6.0.0 http://github.com/tonyvalenti/windowsInput/