❔ some sort of global keyboard and mouse detection?
hey, i want to write a programm where it is neccessary to detect save and play keyboard and mouse ,,events,, in and outside of my programm, and i dont know what to look up, it would be nice if someone could tell what to look into to achieve my goal?
7 Replies
For windows there are a bunch of OS specific events you can consume
Something like
[DllImport("user32.dll")]
private static extern bool GetLastInputInfo(ref LastInputInfo lastInputInfo);
What are you making?
https://github.com/TolikPylypchuk/SharpHook
a library exists for this
GitHub
GitHub - TolikPylypchuk/SharpHook: SharpHook provides a cross-platf...
SharpHook provides a cross-platform global keyboard and mouse hook, event simulation, and text entry simulation for .NET - GitHub - TolikPylypchuk/SharpHook: SharpHook provides a cross-platform glo...
Thx im going to look into all of thos things but im leaving this thread open incase its not what i want, thx :)
Im trying to programm a macro recorder
Btw i dont want a explicit soluten for a macro recorder, id like to figure most things out for myself :D
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.ive been searching around for a while and would like to use this user32.dll library stuff, but i couldnt figure out where to start and how to implement it?
can anyone help me out i want to capture the keyboard and mouse inputs?
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.