09-14-2010, 04:29 PM
Here is a bare bones test that demonstrates the problem I'm experiencing:
Created the following macro:
act child("[\0-9a-z]*" "" win("Microsoft Excel [\0-9a-z]*" "XLMAIN" "" 0x200) 0x200)
ExcelSheet ExcelTest.Init
ExcelTest.SetCell("Testing" 1 1)
If the first line is commented out, I get the "Failed to connect to Excel" error message, and nothing happens to the Excel window.
If the first line is not commented out, I get the "Failed to connect to Excel" error message, but the Excel window and the currently selected cell both flash quickly a couple of times first.
If I make exe, and run the exe by double-clicking it, cell A1 is loaded with "Testing", as expected.
Is this a bug, or is something mis-configured on my PC?
Created the following macro:
act child("[\0-9a-z]*" "" win("Microsoft Excel [\0-9a-z]*" "XLMAIN" "" 0x200) 0x200)
ExcelSheet ExcelTest.Init
ExcelTest.SetCell("Testing" 1 1)
If the first line is commented out, I get the "Failed to connect to Excel" error message, and nothing happens to the Excel window.
If the first line is not commented out, I get the "Failed to connect to Excel" error message, but the Excel window and the currently selected cell both flash quickly a couple of times first.
If I make exe, and run the exe by double-clicking it, cell A1 is loaded with "Testing", as expected.
Is this a bug, or is something mis-configured on my PC?