Create a method (C#) to send keyboard/mouse instructions to a specific window
$30-100 USD
Færdiggjort
Slået op over 13 år siden
$30-100 USD
Betales ved levering
I need a method I can implement in my existing C# application which will allow me to send mouse and keyboard instructions to specific windows without? necessarily? having that window visible (e.g. minimized, or dragged to the side)
## Deliverables
I will be using your method to send mouse and keyboard instructions to different kinds of windows, like regular windows forms, games etc.
Your code must be able to send instructions to window that are not currently in the foreground, such as minimizes windows, windows dragged to the side etc.
The software I will be implementing your code in, is currently working with the [login to view URL] datatype, of the .NET framework 3.5
Preferable id like to pass these to your method, to call "Hold" and "Release" on.
Whichever input required to your method, like window handles etc. I can already provide, and will not need you to write code to retrieve.
Preferable id like your Methods to have the following signatures:
void PressKey([login to view URL] windowHandle, [login to view URL] key);
void HoldKey([login to view URL] windowHandle,? [login to view URL] ? key);
void ReleaseKey([login to view URL] windowHandle,? [login to view URL] ? key);
and for the mouse:
void Click([login to view URL] windowHandle, [login to view URL] location, [login to view URL] button);
I'm open to suggestions for a better way to achieve the functionality I need.
Your code will need to support the following environments:
Windows XP,
Windows 2000 Server,
Windows 2003 Server,
Windows 2008 Server,
Windows Vista,
Windows 7
And for all of them, 32 + 64 bit.
Please feel free to ask me any question, or let me know if you know of a better way to achieve my goal different from what I presented you with here.