Jump to content

AutoIt3 ImageSearch Help


Recommended Posts

Hello everyone,

Just trying to learn AutoIt and looking to create a 3 image auto for my college project.  

1. Search image > Click

2. Search image > Click > Type "My College Project 2018" > Click Image

3. Click image

Only managed to come up with this.

#include <ImageSearch.au3>

HotKeySet("p", "checkForImage")

global $y = 0, $x = 0

Func checkForImage()
Local $search = _ImageSearch('icon1.bmp', 0, $x, $y, 0)
If $search = 1 Then
MouseMove($x, $y, 10)
EndIf
EndFunc

while 1
sleep(200)
WEnd

Would appreciate any help!

Link to comment
Share on other sites

  • Developers

This is no different than the previous closed threads which you also received a warning for.
Give me one good reason/explanation this is not the case?

Jos

Edited by 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

Hi Jos,

I don't play any games anymore as I am running a full time business now. I am also trying to make a script that will load my college website, go to my uploaded project and run it.

I've read the rules and this is not what I am trying to achieve.

Link to comment
Share on other sites

  • Developers

Fine, so why on earth do you want to use ImageSearch() to work on your college website?
What exactly do you want it to do as there have to be better ways of doing this?

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

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...