C
C#4mo ago
CloudAcidBR

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
Buddy4mo ago
What are you making?
CloudAcidBR
CloudAcidBROP4mo 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
Buddy4mo ago
No need for a mouse / key hook for that
CloudAcidBR
CloudAcidBROP4mo ago
u mean there is another library that can do?
Buddy
Buddy4mo ago
No libraries
CloudAcidBR
CloudAcidBROP4mo 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
felsokning4mo 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?