Modify

Opened 10 years ago

Closed 10 years ago

#813 closed Bug (Fixed)

AutoItX_64.dll and Window Handles on XP64 issue

Reported by: bsobottke@… Owned by: Jpm
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 Changed 10 years ago by Jpm

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

Fixed in version: 3.3.1.0

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

Action
as closed The owner will remain Jpm.
Author


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

 
Note: See TracTickets for help on using tickets.