Uploaded November 2024 | Updated September 2026, 1 week ago
Brief demo on how my #csharp hobby automation tool works using Windows API and System.Drawing
Windows API
- Mouse and Keyboard Input using SendInput
- Active Window Title
System.Drawing
- Capture screen images
C# Automation Playlist:
youtube.com/playlist?list=PLAW4P1Sb_oJbIJIQd8-HPmsVUE6Ez6NFL
Codeproject InputSender:
codeproject.com/Articles/5264831/How-to-send-Inputs-using-Csharp
P103
Brief demo on how my #csharp hobby automation tool works using Windows API and System.Drawing
Windows API
- Mouse and Keyboard Input using SendInput
- Active Window Title
System.Drawing
- Capture screen images
C# Automation Playlist:
youtube.com/playlist?list=PLAW4P1Sb_oJbIJIQd8-HPmsVUE6Ez6NFL
Codeproject InputSender:
codeproject.com/Articles/5264831/How-to-send-Inputs-using-Csharp
P103








![C# - Simulate mouse clicks with SendInput (codeproject implementation)
How I simulate left and right mouse clicks in Windows apps with C# SendInput function. A download from codeproject.com is used to build functions for LeftClick and RightClick.
InputSender Download:
https://www.codeproject.com/Articles/5264831/How-to-Send-Inputs-using-Csharp
C# Automation Playlist:
https://youtube.com/playlist?list=PLAW4P1Sb_oJbIJIQd8-HPmsVUE6Ez6NFL&si=3rb4bQHNPmHYsaXs
#csharp
private void LeftClick(int x, int y)
{
InputSender.SetCursorPosition(x, y);
InputSender.SendMouseInput(new InputSender.MouseInput[]
{
new InputSender.MouseInput
{
dwFlags = (uint)InputSender.MouseEventF.LeftDown
}
});
Thread.Sleep(100);
InputSender.SendMouseInput(new InputSender.MouseInput[]
{
new InputSender.MouseInput
{
dwFlags = (uint)InputSender.MouseEventF.LeftUp
}
});
} C# - Simulate mouse clicks with SendInput (codeproject implementation)](https://i.ytimg.com/vi/qv1QcXO0v-M/mqdefault.jpg)

