Library not importing?
sorry very new to c# i tried to import a library called
MouseKeyHook and it shows an error with the description: "The type or namespace name 'MouseKeyHook' could not be found (are you missing a using directive or an assembly reference?"
i trying to import this way idk if is a syntax error or smh
MainWindow.xaml.cs
crosshair.csproj
8 Replies
What are you making?
a crosshair project that do a overlay and stays on screen, the mousekeyhook would give the function to change opacity when u left click and change back when u left click again
No need for a mouse / key hook for that
u mean there is another library that can do?
No libraries
but the method OnMouseDown is supposed to work if im not clicking in the program? like if i click with left mouse button in another windows?
Last updated 4/10/2023
Looks like it doesn't have much support, these days.
Looks pretty dead - maybe another library would be better? https://github.com/gmamaladze/globalmousekeyhook/issues