C
C#11mo ago
CloudAcid

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
using MouseKeyHook;
using MouseKeyHook;
crosshair.csproj
<PackageReference Include="MouseKeyHook" Version="5.7.1"/>
<PackageReference Include="MouseKeyHook" Version="5.7.1"/>
8 Replies
Buddy
Buddy11mo ago
What are you making?
CloudAcid
CloudAcidOP11mo ago
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
Buddy
Buddy11mo ago
No need for a mouse / key hook for that
CloudAcid
CloudAcidOP11mo ago
u mean there is another library that can do?
Buddy
Buddy11mo ago
No libraries
CloudAcid
CloudAcidOP11mo ago
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?
felsokning
felsokning11mo ago
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

Did you find this page helpful?