Jump to content
Sign in to follow this  
Abilio_KID

MouseClick and 64 bit OS

Recommended Posts

Abilio_KID

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

Share this post


Link to post
Share on other sites
Abilio_KID

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

Share this post


Link to post
Share on other sites
Abilio_KID

Hmm, so I guess nobody had a similar thing or simply nobody cares at all.

Lets hope there aren't more issues with 64 bit programs in the future, considering the future is x64...

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.