AutoHotkey Community

It is currently May 27th, 2012, 1:20 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: can we compare images
PostPosted: November 19th, 2009, 3:27 pm 
can we compare two images and if the two images are same then only to proceed????


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2009, 3:57 pm 
Offline

Joined: December 24th, 2008, 3:25 am
Posts: 1401
Location: :noitacoL
http://www.autohotkey.com/docs/commands/ImageSearch.htm

http://www.autohotkey.com/docs/commands/Else.htm

http://www.autohotkey.com/docs/commands/IfEqual.htm

http://www.autohotkey.com/docs/Variables.htm

A little of this, a little of that and presto...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2009, 4:01 pm 
Offline

Joined: November 14th, 2007, 2:47 pm
Posts: 335
Location: London, England
Carcophan wrote:


I dont actually think thats very helpful.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2009, 4:12 pm 
Offline

Joined: December 24th, 2008, 3:25 am
Posts: 1401
Location: :noitacoL
doyle wrote:


If/else information, image search info, how to make things variables...

Search for the image at a set location, IF the image is the same or different, THEN do something. How was this not helpful?

How was your answer helpful?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2009, 4:16 pm 
Offline

Joined: March 11th, 2009, 12:00 am
Posts: 86
Location: Nsw/Syd/Kiama
it is very helpfull..
read through it have a crack at it and post us what you ahve done so far. from there we can help you. were not going to throw out easy answers tho =)

imagesearch - obviously helpful
else command - if the two images arnt the same then do nothing
ifequal2 - then procead...
variables - picture 1 is variable one, and picture 2 is variable 2
if var1 is equal to var2 then procead.

al of those link are very helpful.

just do your best and report back=)
theres nothing more ahk likes to see then people giving there best shot.

~Cyber

_________________
---{+.-}---


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2009, 4:21 pm 
Offline

Joined: November 9th, 2009, 3:09 pm
Posts: 258
well thanks for the replies...i would try to explain ít more clearly:-

here is the link to the pic of the panel:-

http://picasaweb.google.com/kjasdeepk/M ... 1973864418

and when i click on the "Start" it tries to detect hardware and if detected the image is like this:-

http://picasaweb.google.com/kjasdeepk/M ... 1500674258

if not detected the image is like this:-

http://picasaweb.google.com/kjasdeepk/M ... 5376559522


i am not able to read the statusbar because i think its not a window standard....so what i want that how it will detect whether hardware is connected or not?????


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2009, 4:22 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
I think the OP means if you have image1.gif and image2.gif how can you tell if they are the same? Of course you could have an application show image1.gif and then use imagesearch to see if you can find image2.gif but that is a bit of a kludge in that case.

If the OP means how he can find an image that is already on the screen and compare it to another the answer is helpful.

Edit: oh no not jasdeep again :twisted:

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2009, 4:24 pm 
Offline

Joined: November 9th, 2009, 3:09 pm
Posts: 258
brother i tried with imagesearch also but in this case it didnt worked


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], iDrug, Ohnitiel and 23 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group