Using Windows 7, is there an in-built or third-party method of recording windows commands and being able to play them back?

As a very basic example of what I would like to be able to do, imagine having two desktop themes that you like to alternate between. The Windows commands would be something like

  • Open personalisation applet
  • select second theme
  • ok

(I'm calling this a macro because of the equivalent capability in Word.)

asked Feb 11 '10 at 3:34

5 Answers 5

It sounds like you are looking for AutoHotKey:

AutoHotkey is a free, open-source utility for Windows. With it, you can:

  • Automate almost anything by sending keystrokes and mouse clicks. You can write a mouse or keyboard macro by hand or use the macro recorder.
  • Create hotkeys for keyboard, joystick, and mouse. Virtually any key, button, or combination can become a hotkey.
  • Expand abbreviations as you type them. For example, typing "btw" can automatically produce "by the way".
  • Create custom data-entry forms, user interfaces, and menu bars. See GUI for details.
  • Remap keys and buttons on your keyboard, joystick, and mouse.
  • Respond to signals from hand-held remote controls via the WinLIRC client script.
  • Run existing AutoIt v2 scripts and enhance them with new capabilities.
  • Convert any script into an EXE file that can be run on computers that don't have AutoHotkey installed.

answered Feb 11 '10 at 3:42

3

  • It is probably nothing, but VirusTotal reports these signatures for AutoHotKey:<BR> ` Antivirus Result Update Antiy-AVL Trojan/Win32.Reconyc 20170505 AVG SCGeneric.MCR 20170505 Jiangmin Trojan.Reconyc.gnt 20170505 TrendMicro-HouseCall Suspici.B513A187 20170505 VBA32 TrojanDownloader.Agent 20170505 Zillya Trojan.GenKryptik.Win32.6123 20170505 ` URL: virustotal.com/en/file/…

    May 5 '17 at 22:42

  • Autoit scripts are identified as "malwares" by many Antivirus. This usually is the case in corporate environ. It is one of the best "scripting tool" around Windows API I have seen. I believe it was severely misused, so the aforementioned issue...

    Mar 9 '18 at 18:11

answered Feb 11 '10 at 3:41

1

  • +1 for Sikuli. Looks exciting, but haven't used it yet.

    Feb 11 '10 at 7:10

I'd recommend Sikuli. Very interesting graphical way to script. I got it to work on Windows 7 without a problem. They have OS X and Linux versions.

answered Dec 20 '11 at 5:35

I succesfully used autoit to automate detect hardware in win XP until keybord and mouse is detected. It seems that for simple quick tasks autohotkey is better. If you have some programming knowledge autoit is more structured and better for not so simple stuff. More info https://www.difference.wiki/autohotkey-vs-autoit/ And this post was useful to me: //autohotkey.com/board/topic/7019-autohotkey-vs-autoit/?p=44144 Autoit: https://www.autoitscript.com/site/autoit/

answered Sep 21 '20 at 0:43

I could have sworn there was a way to do this built in. I actually CAN do it, but only with my mouse. I haven't been able to figure out how to do it with keyboard shortcuts. For my mouse, I just go into the "Microsoft Mouse and Keyboard Center" and it's very simple to set things up for the mouse. I don't know why there doesn't seem to be anything about the keyboard in the "Mouse and Keyboard Center."

answered Sep 20 '20 at 21:36

Not the answer you're looking for? Browse other questions tagged windows-7 automation macros or ask your own question.