C
C#2mo 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
Buddy2mo ago
What are you making?
CloudAcidBR
CloudAcidBROP2mo 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
Buddy2mo ago
No need for a mouse / key hook for that
CloudAcidBR
CloudAcidBROP2mo ago
u mean there is another library that can do?
Buddy
Buddy2mo ago
No libraries
CloudAcidBR
CloudAcidBROP2mo 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
felsokning2mo 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
Want results from more Discord servers?
Add your server