Timppa Posted November 25, 2015 Posted November 25, 2015 Hello!I have a problem with ImageSearch (https://www.autoitscript.com/forum/topic/148005-imagesearch-usage-explanation/), I got it working after numerous attempts.I am currently using that ImageSearch2015.au3 and it works like a wonder, but there is one problem: If my cursos is above the picture, it will not recognize the picture anymore until I move the cursor off from the picture. Is there any idea how to fix this without making a function that moves the mouse off from the picture if not found? Rather not use that function, because it would move mouse all around if it's trying to find for picture (there is loop to check if there's a picture). Thanks in advance!
Bert Posted November 27, 2015 Posted November 27, 2015 post your code? The Vollatran project My blog: http://www.vollysinterestingshit.com/
Timppa Posted November 29, 2015 Author Posted November 29, 2015 Just like this:Func FindPic() Local $SearchPic = _ImageSearch(@ScriptDir & "\iUpdateButton.png", 0, $imgX, $imgY, 10) If $SearchPic == 1 Then DoThis() Else AdLibRegister("FindPic",1000) EndIf EndFunc
Developers Jos Posted November 29, 2015 Developers Posted November 29, 2015 I would think that the mouse pointer changes the displays image with its cursor as you found out,Jos Timppa 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Timppa Posted November 29, 2015 Author Posted November 29, 2015 I would think that the mouse pointer changes the displays image with its cursor as you found out,JosWow, I'm totally stupid... I am color blinded so I did not realize that until I moved my cursor quickly on and off from the button...Thanks Jos!
WiValdiBB Posted March 31, 2016 Posted March 31, 2016 Hello, I'm interesting How You answered Your problem with imagesearch ? I have the same issue, when search is looped I don't want to move mouse out f searched picture, I want rather hide pointer, I'm thinking about ControlClick What is best way ?
AutoBert Posted March 31, 2016 Posted March 31, 2016 Be patient, Timppa last visit in forum was 3. January, i don't know if and when he comes next time.
Timppa Posted July 30, 2016 Author Posted July 30, 2016 On 31.3.2016 at 9:27 AM, WiValdiBB said: Hello, I'm interesting How You answered Your problem with imagesearch ? I have the same issue, when search is looped I don't want to move mouse out f searched picture, I want rather hide pointer, I'm thinking about ControlClick What is best way ? I took picture for the non-hovered button sprite and a picture of hovered button sprite. On 31.3.2016 at 10:35 AM, AutoBert said: Be patient, Timppa last visit in forum was 3. January, i don't know if and when he comes next time. Yeah, I changed from autoit to Java. WiValdiBB 1
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