Jump to content

MouseClick and 64 bit OS


Recommended Posts

Hi all, I've tried to search the forums for something similar but can't find an explination to my small problem.

I recently moved to Windows 7 x64 and I have a script that sends mouse clicks to another program. If the program is 32 bit the mouse click works fine. However if the program is 64 bit, only sending keystrokes works, Mouseclick does nothing at all. The program is exactly the same, only it has 2 versions, one x86 and the other x64, the script is the same.

Is there any bug in the Mouseclick command that won't work on x64 apps?

Edit: It seems the problem lies on pixel functions on x64 programs. PixelGetColor always returns 0.

Can anyone confirm this?

Edited by Abilio_KID
Link to comment
Share on other sites

My script is using AutoIt x64, not compiled yet. The other program has 2 versions, one 32bit and the other 64bit.

If I run my script on the 32bit program, it works, detects the color properly.

If I run my script on the 64bit version of the same program (it's exactly the same in terms of graphics), it never finds the color I want because it sees everything as 0 (probably black).

Nothing much into the code, simple as this:

$coord = PixelSearch( $x, $y, $x+$xx, $y+$yy, $c, $sh)
If Not @error Then
    MouseClick("left")
EndIf
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...