✅ mouse events outside wpf
hello, i wanted to write a program in vs with wpf that detects mouse events(left click, right click, hold left click) also outside the wpf window. I already tried stuff with global hooks but nothing really worked (just copy pasted). Pls can smb write such a program/help me doing it :)
Ty all for any reply
9 Replies
raw input, hooks..
uhh unless someone knows a library for it you need a bunch of pinvoke. i should add this to my samples on github
ty for ur help i found a solution
which?
i asked chat gpt wanna see it?
sure
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1113853246797271138/icy_-_Microsoft_Visual_Studio_01.06.2023_17_33_45.png)
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1113853247367692359/icy_-_Microsoft_Visual_Studio_01.06.2023_17_33_52.png)
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1113853247732592712/icy_-_Microsoft_Visual_Studio_01.06.2023_17_33_59.png)
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1113853248110084208/icy_-_Microsoft_Visual_Studio_31.05.2023_15_57_37.png)
![OK](https://cdn.discordapp.com/emojis/1025884854769946634.png)
Yep
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.