Opened 15 years ago

Closed 15 years ago

#813 closed Bug (Fixed)

AutoItX_64.dll and Window Handles on XP64 issue

Reported by: bsobottke@… Owned by: Jpm
Milestone: Component: AutoIt
Version: Severity: None
Keywords: 64Bit compatibility windowHandle Cc:



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 Changed 15 years ago by Jpm

  • Milestone set to
  • Owner set to Jpm
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed in version:

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The owner will remain Jpm.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.