When comparing VirtualBox vs AutoHotkey, the Slant community recommends AutoHotkey for most people. In the question“What are the best power user tools for Windows?” AutoHotkey is ranked 6th while VirtualBox is ranked 8th.
Ranked in these QuestionsQuestion Ranking
Pro Free and mostly open source
VirtualBox is available for free with source code available here. A "VirtualBox Extension Pack" that includes virtual USB 2.0, VirtualBox RDP & PXE boot support is available only under a commercial license.
Pro Can map keys to scripts
Pro Fully programmable
With a full programming language powering the hotkeys, including GUIs, it is powerful and flexible
Pro Scripting of common procedures
AHK allows full scripts to be created and used. it is very flexible.
Pro Allows for extremely easy remapping keys and buttons on your keyboard, joystick, and mouse
You can reprogram any key combination, including the Windows key with a syntax like this one:
that automatically remaps the H key to show a message box.
Can interact with any Windows program / dialog / form, filling fields, submitting data, etc., without dependency on the window placement.
Con Inferior performance
Apart from second-class performance in virtualization, there are some visual glitches with Windows 8.1 on Mavericks.
Con Confusing interface and lacking usability features
VirtualBox might be a bit confusing for beginners - it requires an understanding of a lot more technical details than other VMs.
Con Programming language is primitive
The base syntax, inherited from the first version of AutoIt, is primitive (a bit like an improved batch syntax). But once used to it, it remains flexible and powerful.