Sign in to follow this  
Followers 0
ZanaxNL

CanAutoIt: Detect Pictures.

10 posts in this topic

Hey,

I know autoit can detect pixel/colours.

But can it detect pictures? like a Name(text)?

Thanks for question, if can't maybe for new autoit update : D

Zanax ;)

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

You can identify file types. If your picture is in a recognizable format such as .jpg, .png, .tiff, .gif, etc... Is that any help?

Edited by czardas

Share this post


Link to post
Share on other sites

hmm. it can help maybe.

Can u give example/script of it : )

i hope i can find the file of it wat i need.

Thanks already!

Zanax

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

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

Share this post


Link to post
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 : )

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

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

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
Sign in to follow this  
Followers 0