Click here to Skip to main content
15,895,667 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,


i have a few questions.

How can I detect a button with text recognition and then get the co-ords if I take a print screen of my desktop and there is a button there?

What I mean is that I have a little picture of a button named "Install" which then will compare itself with a picture of the whole desktop to then find the coordinates of the buttons location.

-------

I am also wondering how to do a reboot and then make it automatically open up the application on loading the desktop?

Why i am wondering is because I have to install a software which requires a reboot, and I want to restore the session before I did the reboot so it can move onto its next task, which is system check.



Sorry for bad english.
Kindly Regards,
Zelsius
Posted
Updated 2-Feb-11 11:32am
v2
Comments
shakil0304003 2-Feb-11 22:28pm    
What you tried?
Zelsius 3-Feb-11 11:29am    
Hello shakil0304003,

I haven't tried anything, i'm just preparings plans and such.

I looked at the image recognition and it didn't seem like the right thing i am looking for. But i also looked at text recognition and it seemed like you needed Office installed to use the MODI function.

It does look like what i am looking for, but i'm not sure wether it is only for printing text from an image to a word document or not, as i need to recognise the text and then ge the coordinations from them.


About the restore session thing, i don't even have a clue about where i shall begin to look.
Mostly this is because i am new to C# and i don't really have much experience about it yet, but yeah.
Zelsius 4-Feb-11 13:52pm    
Okay i solved the reboot issue, what i did is that the software adds itself into the run on start up registry and then it saves the tasks that has been finished into a INI file before it reboots.

In other words:
Apply changes - Adds it self to run on start up - saves changes to INI file - reboots - starts it self again - moves on to task 2 - apply changes for task 2 - terminates it self - shutdown.


But the only problem i have now is to get the software to recognise a button and then click it.
Can anyone give me a lead on how i shall work around this issue?

Cheers!

kindly Regards,
Zelsius

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900