Record a macro of windows commands

73,912

Solution 1

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.

Solution 2

AutoHotkey can record and play back macros, though it's usually easier just to write them in the AutoHotkey language in the first place.

There's also this new kid on the block automation solution for Windows: http://lifehacker.com/5459673/sikuli-automates-almost-anything-with-screenshot-ease

Share:
73,912

Related videos on Youtube

Antony
Author by

Antony

All-rounder

Updated on September 17, 2022

Comments

  • Antony
    Antony over 1 year

    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.)

  • michaelmoo
    michaelmoo over 7 years
    Here is a pre-written auto-hotkey script for recording and playing back in windows: autohotkey.com/board/topic/28541-instantdoover
  • Ruslan Kadylak
    Ruslan Kadylak about 7 years
    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/…
  • Sreejith. D. Menon
    Sreejith. D. Menon about 6 years
    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...