Based on the famous tool in Python, PYAUTOGUI I present to you, a class in C# with similar functionality With this tool, you can control your mouse and keyboard automatically, so you can easily create task automation for inumerous things
DLL:
Create your project
Click on Add Reference
Browse and select Cyautogui.dll
Click OK
Done
Class
Create your project
Click on Add New Item
Select Class
Put any name you want
Copy and paste all code of CAutoGui.cs to your new class file
Done
Mouse Options::
Do a mouse right clik on current mouse position
Move cursor to XY pos and do right click
Move cursor relative to current position and do right click
Do a mouse clik on current mouse position
Move cursor to XY pos and do click
Move cursor relative to current position and do click
Do double click on current position
Move cursor to XY position and do double click
Move cursor to XY current relative position and do double click
Move the mouse to XY coordinates
Move mouse relative to its current position
Get the Y position of the mouse
Get the X position of the mouse
Get the Y position of the mouse on STRING format
Get the X position of the mouse on STRING format
Keyboard Options::
Shift Hotkey Function
Alt Hotkey Function
Ctrl Hotkey Function
TAB key
Write string, simulates keyboard
Write Loop, Used to press same key, what times you want
Simulate keyboard press
Misc Options::
Change Global Time Pointer (functions delay)
Start another process by name
Open folders or files on your PC
Get the size X of the primary monitor on string format
Get the size Y of the primary monitor on string format
Get the size X of the primary monitor
Get the size Y of the primary monitor
Displays some text with an OK button.
Pause code option
Join several string and make onlt one
Convert Options::
Convert INT value to DOUBLE
Convert STRING value to DOUBLE
Convert STRING to INT32
Convert FLOAT to INT32
Convert INT value to STRING
Convert FLOAT value to STRING
Convert DOUBLE value to STRING
Do a mouse right clik on current mouse position
cyautogui.Mouse.DoMouseRightClick()
Move cursor to XY pos and do right click
cyautogui.Mouse.MoveAndRightClick(posX, posY)
Move cursor relative to current position and do right click
cyautogui.Mouse.MoveCursorRelAndRightClick(posX, posY)
Do a mouse clik on current mouse position
cyautogui.Mouse.DoMouseClick();
Move cursor to XY pos and do click
cyautogui.Mouse.MoveAndClick(posX, posY);
Move cursor relative to current position and do click
cyautogui.Mouse.MoveCursorRelAndClick(posX, posY);
Do double click on current position
cyautogui.Mouse.DoMouseDoubleClick();
Move cursor to XY position and do double click
cyautogui.Mouse.MoveAndDoubleClick(posx, posy);
Move cursor to XY current relative position and do double click
cyautogui.Mouse.MoveCursorRelAndDoubleClick(int x, int y)
Move the mouse to XY coordinates
cyautogui.Mouse.MoveCursorTo(int x, int y)
Move mouse relative to its current position
cyautogui.Mouse.MoveCursorRel(int x, int y)
Get the Y position of the mouse
cyautogui.Mouse.getMouseY()
Get the X position of the mouse
cyautogui.Mouse.getMouseX()
Get the Y position of the mouse on STRING format
cyautogui.Mouse.StringgetMouseY()
Get the X position of the mouse on STRING format
cyautogui.Mouse.StringgetMouseX()
Shift hotkeys
cyautogui.Keyboard.ShiftHotkey(string key)
Alt hotkeys
cyautogui.Keyboard.AltHotkey(string key)
TAB
cyautogui.Keyboard.TAB(int times)
CTRL hotkeys
cyautogui.Keyboard.CTRLHotkey(string key)
Write strings
cyautogui.Keyboard.Write(string key)
Used to press same key, what times you want
cyautogui.Keyboard.WriteMoreThan1time(string key, int times)
Simulate keyboard press
cyautogui.Keyboard.KeyPress(string key)
Define your new Global Wait Timer, default is 500
cyautogui.Other.ChangeGlobalTimePointer(int time)
Start another process by name
cyautogui.Other.StartProcess(string proc)
Used to open folders or files on your PC
cyautogui.Other.OpenFolder(string path)
Get the size X of the primary monitor on string format
cyautogui.Other.StringsizeScreenX()
Get the size Y of the primary monitor on string format
cyautogui.Other.StringsizeScreenY()
Get the size X of the primary monitor
cyautogui.Other.sizeScreenX()
Get the size Y of the primary monitor
cyautogui.Other.sizeScreenY()
This displays some text with an OK button.
cyautogui.Other.alert(string msg)
Do some pause on code.
cyautogui.Other.Wait(int timeMiliseconds)
Join several string and make onlt one
cyautogui.Other.AddString(.....);
Convert INT value to DOUBLE
cyautogui.ConvertTo.toDouble(int value);
Convert STRING value to DOUBLE
cyautogui.ConvertTo.toDouble(string value);
Convert STRING to INT32
cyautogui.ConvertTo.toInt(string value);
Convert FLOAT to INT32
cyautogui.ConvertTo.toInt(float value);
Convert INT value to STRING
cyautogui.ConvertTo.toString(int key);
Convert FLOAT value to STRING
cyautogui.ConvertTo.toString(float key);
Convert DOUBLE value to STRING
cyautogui.ConvertTo.toString(double key);
This DLL/Code is created by me (BresoDEV), and if you use this on your tool or make some changes on code, give me credits, because this spend a lot of my time, then be honest =)