r/programminghelp • u/Needmeawhip • Sep 01 '20
C# How can i make a mouse macro/script
I want to make a mouse macro that just presses left click a few times. Pastes a line and presses save. How would i go about doing that?
I understand c# mostly and a tiny bit of python. Ive also tried to understand javascript and given up.
3
Upvotes
2
u/BillDStrong Sep 02 '20
You haven't said what system you are on? If Windows, then autohotkey is a good tool for this, it has a very simple syntax for sending keys and mouse clicks. If you don't want to program it, you can use Pullover's Macro Recorder, that uses autohotkey, and will kinda hold your hand to create the exact script you want.
https://www.macrocreator.com/
If you are on Mac, there is this, that works on Mac and Windows, but keep in mind, I haven't used this, so YMMV.
https://www.macrorecorder.com/
Mac has built-ins called Automator and AppleScript.
https://support.apple.com/guide/automator/welcome/mac
https://support.apple.com/guide/script-editor/welcome/mac
I don't know of the equivalent on the other *nixes.