Answered by:
Let Windows form use SDK to control mouse for sending message

Question
-
I try to use logitech s300 this mouse to simulate keybd event.
It provide a software that can simulate keybd event like
This mouse contain memory allow me to store string.
It provide sdk allow people to use the G-key SDK with C#
Here is it SDK link
https://www.logitechg.com/zh-tw/innovation/developer-lab.html
Is it possible I can use windows Form send message (string data) to mouse memory.
Then I click mouse bottom (not left right mouse event )(is other bottom) it will send string.
How to do this?
- Moved by Kyle Wang - MSFTMicrosoft contingent staff Monday, February 3, 2020 1:56 AM
Sunday, February 2, 2020 1:04 PM
Answers
-
there is a developer support link on the page you linked. or go to https://stackoverflow.com/questions/tagged/logitech-gaming-software. WinForms has no support for this.
If you never called any Win32 DLLs in C# before, start with https://docs.microsoft.com/en-us/dotnet/standard/native-interop/pinvoke and https://docs.microsoft.com/en-us/dotnet/standard/native-interop/type-marshaling. If you need future help in pinvoke you can ask at https://social.msdn.microsoft.com/Forums/en-US/home?forum=clr
Visual C++ MVP- Proposed as answer by Dave PatrickMVP Monday, February 3, 2020 2:25 AM
- Marked as answer by Richard MuellerMVP Monday, February 10, 2020 2:47 PM
Sunday, February 2, 2020 11:20 PM
All replies
-
there is a developer support link on the page you linked. or go to https://stackoverflow.com/questions/tagged/logitech-gaming-software. WinForms has no support for this.
If you never called any Win32 DLLs in C# before, start with https://docs.microsoft.com/en-us/dotnet/standard/native-interop/pinvoke and https://docs.microsoft.com/en-us/dotnet/standard/native-interop/type-marshaling. If you need future help in pinvoke you can ask at https://social.msdn.microsoft.com/Forums/en-US/home?forum=clr
Visual C++ MVP- Proposed as answer by Dave PatrickMVP Monday, February 3, 2020 2:25 AM
- Marked as answer by Richard MuellerMVP Monday, February 10, 2020 2:47 PM
Sunday, February 2, 2020 11:20 PM -
Hi Sheng Jiang
Thanks for answering
Sorry I ask at wrong place.
Can I ask is possible I can let my winform to control logitech mouse to send message.
Is this thing possible to work?
I will star with Win32 DLLs in C# I never try it before.
Thanks
Monday, February 3, 2020 1:34 AM -
If you have C++ experience writing a C++/CLI wrapper DLL and reference in your C# project might be better.
Visual C++ MVPMonday, February 10, 2020 4:48 PM