Abilio_KID Posted November 23, 2009 Posted November 23, 2009 (edited) 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 November 23, 2009 by Abilio_KID
Bert Posted November 23, 2009 Posted November 23, 2009 (edited) Edit: when you compiled your code, did you use the 64 bit option? Edited November 23, 2009 by Volly The Vollatran project My blog: http://www.vollysinterestingshit.com/
Abilio_KID Posted November 23, 2009 Author Posted November 23, 2009 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
Abilio_KID Posted November 26, 2009 Author Posted November 26, 2009 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...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now