Skip to content

MrWindows/MrWindows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mr. Windows

Tell MrWindows to do anything for you. A.K.A. P/Invoke like a boss :)

Nuget: Instal-Package MrWindows


Create our butler

var win = new Dear.MrWindows();

Interact with the Mouse

var cursorLocation = win.Mouse.CursorLocation;
win.Mouse.MouseLeftClick();
win.Mouse.ScrollHorizontally(10);
win.Mouse.MoveCursor(x, y);

Interact with the Keyboard

win.Keyboard.Type(VirtualKey.A).Type(VirtualKey.Return);
win.Keyboard.Press(VirtualKey.Up).Wait(10).Release(VirtualKey.Up);

Interact with Media

win.Media.VolumeUp();
win.Media.VolumeMute();

Interact with the TaskManager

var processes = win.TaskManager.ListAllProcesses();
win.TaskManager.GoogleThis("asdf");
win.TaskManager.OpenApp("some app");

Interact with the Screen

var mainScreenSize = win.Screen.MainScreenSize;
var currentScreenSize = win.Screen.GetActiveScreenSize();

About

Tell MrWindows to do anything for you. A.K.A. P/Invoke like a boss :)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages