AutoHotkey's ComObjActive handle to specific Worksheet
问题 The simplest way to create a handle to your currently active Excel sheets in your .ahk script is: Xl := ComObjActive("Excel.Application") Nonetheless, if one switches to another workbook, this becomes the new " currently active sheet " and AutoHotkey tries to use methods for sheets and cells on the new workbook through COM: of course scripts designed to work with specific sheets and cells don't work anymore on a different workbook. Do you know how to create COM handles to specific workbooks