AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

can we compare images

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Thu Nov 19, 2009 2:27 pm    Post subject: can we compare images Reply with quote

can we compare two images and if the two images are same then only to proceed????
Back to top
Carcophan



Joined: 24 Dec 2008
Posts: 768
Location: :noitacoL

PostPosted: Thu Nov 19, 2009 2:57 pm    Post subject: Reply with quote

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...
_________________
"Unfortunately a "COM for Dummies" book would be a little like "Neurosurgery for Dummies," in the end you're just gonna have to learn" ~Tank
Back to top
View user's profile Send private message AIM Address
doyle



Joined: 14 Nov 2007
Posts: 279
Location: London, England

PostPosted: Thu Nov 19, 2009 3:01 pm    Post subject: Reply with quote

Carcophan wrote:
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...


I dont actually think thats very helpful.
Back to top
View user's profile Send private message Visit poster's website
Carcophan



Joined: 24 Dec 2008
Posts: 768
Location: :noitacoL

PostPosted: Thu Nov 19, 2009 3:12 pm    Post subject: Reply with quote

doyle wrote:
Carcophan wrote:
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...


I dont actually think thats very helpful.


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?
_________________
"Unfortunately a "COM for Dummies" book would be a little like "Neurosurgery for Dummies," in the end you're just gonna have to learn" ~Tank
Back to top
View user's profile Send private message AIM Address
Cyber



Joined: 10 Mar 2009
Posts: 82
Location: Nsw/Syd/Kiama

PostPosted: Thu Nov 19, 2009 3:16 pm    Post subject: Reply with quote

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
_________________
---{+.-}---
Back to top
View user's profile Send private message MSN Messenger
Jasdeep



Joined: 09 Nov 2009
Posts: 178

PostPosted: Thu Nov 19, 2009 3:21 pm    Post subject: Reply with quote

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/Mine#5405728601973864418

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/Mine#5405834661500674258

if not detected the image is like this:-

http://picasaweb.google.com/kjasdeepk/Mine#5405835025376559522


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?????
Back to top
View user's profile Send private message
hugov



Joined: 27 May 2007
Posts: 2181

PostPosted: Thu Nov 19, 2009 3:22 pm    Post subject: Reply with quote

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 Evil
_________________
Tut 4 Newbies
TF : Text file & string lib, TF Forum
Back to top
View user's profile Send private message Visit poster's website
Jasdeep



Joined: 09 Nov 2009
Posts: 178

PostPosted: Thu Nov 19, 2009 3:24 pm    Post subject: Reply with quote

brother i tried with imagesearch also but in this case it didnt worked
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group