NewbieProgammer Posted July 31, 2017 Share Posted July 31, 2017 So im new to Autoit and started to make a basic script that finds a small image within a larger image my problem is the programs detects the image but the mouse doesnt move to its location #include <ImageSearch2015.au3> $x = 0 $y = 0 $picture = "test.bmp" Do $result = _ImageSearch($picture, 1, $x , $y, 0, 0) ConsoleWrite($x) ConsoleWrite(".......") ConsoleWrite($y) until $result = 1; Sleep(2000) if $result = 1 Then MouseMove($x, $y, 20) ConsoleWrite("Image Found") Else MsgBox(0, "MSG", "End") EndIf Link to comment Share on other sites More sharing options...
NewbieProgammer Posted July 31, 2017 Author Share Posted July 31, 2017 Update i tried the simplest Code on a new au3 and it my cursor doesnt even move, any help pls how can i move my cursor MouseMove(200,200,20) Link to comment Share on other sites More sharing options...
Developers Jos Posted July 31, 2017 Developers Share Posted July 31, 2017 Isn't the found position is located in $result in stead of the $x $y variables. Jos 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. Link to comment Share on other sites More sharing options...
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