 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Tue Oct 17, 2006 5:43 am Post subject: Looking for Java/Win32 Automation API |
|
|
Is there something that would allow a java program to perform similar
operations as http://www.autohotkey.com/
Ideally, I would like an API to autohotkey but it apparently does not
exist.
I was wondering if there is similar functionality elsewhere that
someone knows about.
Any assistance is greatly apprecated.
....Lyall |
|
| Back to top |
|
 |
Andrew Thompson Guest
|
Posted: Tue Oct 17, 2006 7:11 am Post subject: Re: Looking for Java/Win32 Automation API |
|
|
Lyall.Pearce (AT) gmail (DOT) com wrote:
| Quote: | Is there something that would allow a java program to perform similar
operations as http://www.autohotkey.com/
Ideally, I would like an API to autohotkey but it apparently does not
exist.
|
You might always try the java.awt.Robot.
Andrew T. |
|
| Back to top |
|
 |
Guest
|
Posted: Tue Oct 17, 2006 7:11 am Post subject: Re: Looking for Java/Win32 Automation API |
|
|
On Oct 17, 1:21 pm, "Andrew Thompson" <andrewtho...@gmail.com> wrote:
| Quote: | Lyall.Pea...@gmail.com wrote:
Is there something that would allow a java program to perform similar
operations ashttp://www.autohotkey.com/
Ideally, I would like an API to autohotkey but it apparently does not
exist.You might always try the java.awt.Robot.
Andrew T.
|
Thank you Andrew, I am no expert on the java class heirarchy.
Is there another class that can search for 'images' within 'images'?
I have, for example, a small image of a button and I want to be able to
search for that image in the captured screen, within certain
boundaries. Would this search capability include a fuzz factor (close
enough is good enough, maybe in colour, etc).
Other questions include, how would I locate a particular applications
window and obtain the screen rectangle in order to capture it.
....Lyall |
|
| Back to top |
|
 |
Andrew Thompson Guest
|
Posted: Tue Oct 17, 2006 7:11 am Post subject: Re: Looking for Java/Win32 Automation API |
|
|
Lyall.Pearce (AT) gmail (DOT) com wrote:
| Quote: | On Oct 17, 1:21 pm, "Andrew Thompson" <andrewtho...@gmail.com> wrote:
Lyall.Pea...@gmail.com wrote:
Is there something that would allow a java program to perform similar
operations ashttp://www.autohotkey.com/
Ideally, I would like an API to autohotkey but it apparently does not
exist.You might always try the java.awt.Robot.
....
Thank you Andrew, I am no expert on the java class heirarchy.
|
Neither am I. I rely on tutorials, a little searching,
the JavaDocs, and when that fails - ask for a direction
on usenet.
| Quote: | Is there another class that can search for 'images' within 'images'?
|
Nope. (Not that I am aware of, in the core API, but
I very much doubt such as specialist thing will be easy to
find).
| Quote: | Other questions include, how would I locate a particular applications
window and obtain the screen rectangle in order to capture it.
|
Step 1. Read all documenation relating to Robot carefully..
Andrew T. |
|
| Back to top |
|
 |
Guest
|
Posted: Tue Oct 17, 2006 12:51 pm Post subject: Re: Looking for Java/Win32 Automation API |
|
|
Andrew Thompson wrote:
| Quote: | Lyall.Pearce (AT) gmail (DOT) com wrote:
On Oct 17, 1:21 pm, "Andrew Thompson" <andrewtho...@gmail.com> wrote:
Lyall.Pea...@gmail.com wrote:
Is there something that would allow a java program to perform similar
operations ashttp://www.autohotkey.com/
Ideally, I would like an API to autohotkey but it apparently does not
exist.You might always try the java.awt.Robot.
...
Thank you Andrew, I am no expert on the java class heirarchy.
Neither am I. I rely on tutorials, a little searching,
the JavaDocs, and when that fails - ask for a direction
on usenet.
Is there another class that can search for 'images' within 'images'?
Nope. (Not that I am aware of, in the core API, but
I very much doubt such as specialist thing will be easy to
find).
Other questions include, how would I locate a particular applications
window and obtain the screen rectangle in order to capture it.
Step 1. Read all documenation relating to Robot carefully..
Andrew T.
|
Thanks - will continue searching (not that I have not already tried,
hence the questions here) and will apply Step 1.
....Lyall |
|
| Back to top |
|
 |
Josh Falter Guest
|
Posted: Tue Oct 17, 2006 11:38 pm Post subject: Re: Looking for Java/Win32 Automation API |
|
|
It would be really tetious, but you could still use java.awt.Robot for
that via getPixelColor(). That would be interesting to do. |
|
| Back to top |
|
 |
Guest
|
Posted: Wed Oct 18, 2006 7:02 am Post subject: Re: Looking for Java/Win32 Automation API |
|
|
Josh Falter wrote:
| Quote: | It would be really tetious, but you could still use java.awt.Robot for
that via getPixelColor(). That would be interesting to do.
|
Whilst robot does do a fair bit of what I need, there is one bit that
it appears not to do, image searching.
The beauty of autohotkey is it has the ability to say 'given this
screen capture' (read that as image) here is a small image (read that
as a giff or small jpeg file) can you find that small image in this
screen capture, somewhere within this region, oh, and by the way, allow
a configurable amount of fuzziness in the colour matching. If you can
find it, let me know where it is.
The other thing, autohotkey is nice and fast at doing precisely this, I
would rather not sit around and wait for seconds at a time doing image
searches as each pixel is individually grabbed.
There have been requests for an API to autohotkey but it appears that
the 'scripting language' is so interwined with the functionality that
this is a fair bit of work and is not planned.
I have had a brief look at ImageMagik, that can grab 'sub-pictures' but
there is no 'sub-image search' capability that I have seen.
....Lyall |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|