C
C#7mo 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
Buddy7mo ago
What are you making?
CloudAcidBR
CloudAcidBROP7mo 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
Buddy7mo ago
No need for a mouse / key hook for that
CloudAcidBR
CloudAcidBROP7mo ago
u mean there is another library that can do?
Buddy
Buddy7mo ago
No libraries
CloudAcidBR
CloudAcidBROP7mo 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
felsokning7mo 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?