Jump to content

CanAutoIt: Detect Pictures.


ZanaxNL
 Share

Recommended Posts

As fas as I know it pretty hard to find an image inside another window.

I don't think it's just a random new autoit update function.

;)

Right?

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Link to comment
Share on other sites

Are you trying to detect if a certain picture is open and visible or if a picture exists in some directory?

Link to comment
Share on other sites

it's a offline game.

and some object got a white name.

but the background changes evryhting, but the name not.

But i want to know of its possible to searchpicture or searchfile > ( i guess that is harder)

And if that doesnt can/work then i want to know of pixelsearch can be background mode (> like controlclick/send )

Thanks!

Zanax ;)

Edited by ZanaxNL
Link to comment
Share on other sites

Search for files is easy. Too quickly get a list of all the .jpg(for example) files in a directory, look at _filelisttoarray.

Example:

#Include <File.au3>
#Include <Array.au3>

$FileList=_FileListToArray(@MyDocumentsDir, '*.jpg')
If @Error Then
    MsgBox (0,"","No JPG files in My Documents.")
    Exit
EndIf

_ArrayDisplay($FileList,"$FileList")
Edited by Beege
Link to comment
Share on other sites

Search for files is easy. Too quickly get a list of all the .jpg(for example) files in a directory, look at _filelisttoarray.

Example:

#Include <File.au3>
#Include <Array.au3>

$FileList=_FileListToArray(@MyDocumentsDir, '*.jpg')
If @Error Then
    MsgBox (0,"","No JPG files in My Documents.")
    Exit
EndIf

_ArrayDisplay($FileList,"$FileList")

Ok but.

$FileList=_FileListToArray(@MyDocumentsDir, '*.jpg')

What folder means MyDocuments, can u change folder?

and between the ' .jpg' most the picture?

and can i be all picture or has it to be in the game.

and a "monster" is not jpg a .class file or other extension.

explain it a litlle more pls

Thx

Zanax : )

Link to comment
Share on other sites

What folder means MyDocuments, can u change folder?

--> You don't know where your My Documents folder is?

and between the ' .jpg' most the picture?

--> I don't understand this question.

and can i be all picture or has it to be in the game.

-->Has what to be in the game?

and a "monster" is not jpg a .class file or other extension.

--> is this a question?

Link to comment
Share on other sites

What folder means MyDocuments, can u change folder?

--> You don't know where your My Documents folder is?

and between the ' .jpg' most the picture?

--> I don't understand this question.

and can i be all picture or has it to be in the game.

-->Has what to be in the game?

and a "monster" is not jpg a .class file or other extension.

--> is this a question?

xD

~ ok i can set a ###.jpg file in my documents. how to combin this with search > ###.jpg > yes click (attack) . > no "start search again" ??

~ will it search for the picture? the ###.jpg.

Thx for anwsering this 2 questions :)

Zanax ;)

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