Jump to content
npenfold

AutoIt3 ImageSearch Help

Recommended Posts

npenfold

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!

Share this post


Link to post
Share on other sites
Jos

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

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
npenfold

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.

Share this post


Link to post
Share on other sites
Jos

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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
npenfold

Just looking for something quick and easy. Don't need over complicated things for this project.

  • Confused 1

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

×

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.