Opened 17 years ago
Closed 17 years ago
#813 closed Bug (Fixed)
AutoItX_64.dll and Window Handles on XP64 issue
| Reported by: | Owned by: | J-Paul Mesnage | |
|---|---|---|---|
| Milestone: | 3.3.1.0 | Component: | AutoIt |
| Version: | 3.3.0.0 | Severity: | None |
| Keywords: | 64Bit compatibility windowHandle | Cc: |
Description
Hi,
WinGetHandle() returns a 16byte string on XP64. The AutoItXfunctions functions I tested, require a handle as 8Byte string. As a result, it is not possible to use the quite handy feature of window handles with AutoITX.dll on 64 Bit windows systems. Example (To get this run, please copy and paste the text below in a Notepad window, save as "playWithAutoIt.js" in a folder of your choice, then open a cmd.exe, cd to the same folder and type: cscript playWithAutoIt.js):
var handle = auObject.WinGetHandle("[ACTIVE]");
var shortHandleTitle = "[HANDLE:"+handle.substr(8)+"]";
var handleTitle = "[HANDLE:"+handle+"]";
var state= auObject.WinGetState(handleTitle);
var shortState = auObject.WinGetState(shortHandleTitle );
WScript.Echo ("handleTitle: " + handleTitle + " State: " + state);
WScript.Echo("shortHandleTitle: " + shortHandleTitle + " shortState: " + shortState);
Attachments (0)
Change History (1)
comment:1 by , 17 years ago
| Milestone: | → 3.3.1.0 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |

Fixed in version: 3.3.1.0