*IMPORTANT: please ask coding questions in the Ask For Help forum
Purpose: to create a basic reference for commonly used COM objects.
AutoHotkey v1.1+ supports COM natively (thank you Lexikos, Sean, & fincs ). However, if users don't know or understand any COM objects, this Native COM support is less appealing/useful. Therefore, I am creating this thread as somewhat of a basic COM object reference. Forum members can add a COM object "profile", and I will link it to the original post. Questions are also welcome. Here is the suggested format for the COM Object profile:
COM Object: Purpose: System Requirements: Documentation Link: Other Links: Basic Code Example:
NOTE - for the Documentation Link, please provide a link to the method/properties documentation.
See Also: CLSID Registry Scanner - view information about COM/ActiveX components installed on your computer.
COM Object List:
HTML File - Represents an HTML document. Can be used to read, write, & interact with HTML.
InternetExplorer Application - Explore Websites.
ScriptControl - Dynamically execute VBScript or JScript.
Scripting Dictionary - Object that stores data key, item pairs.
Scripting FileSystemObject - Access Files & Folders
Shell Explorer - Embed an Explorer/Browser Control in a Gui (Internet Explorer - Trident Browser)
Speech API: SpVoice - Text-to-Speech (TTS)
VBScript RegExp - VBS Regular Expressions (including global match)
Windows Media Player - Play Media Files; Embed WMPlayer Control in a GUI.
WinHttpRequest - Provides simple HTTP client functionality, allowing much more control than UrlDownloadToFile.
MS Office Applications
Excel Workbook - Hold MS Excel Data
MS PowerPoint - Create powerpoint presentations
MS Word - Word Processor - create and edit various documents
Objects Requiring Additional Files/Installation (see also - Register ActiveX Component)
Ahk.ComSurrogate.32/64 - Create COM objects of a specified bitness.
Windows Image Acquisition (WIA) Automation [WIAAut.dll - 316 KB] - acquire images on digital cameras/scanners/Web cameras, and rotate/scale/annotate image files.
(See note regarding WPD Automation Object Model)