Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2007

Tip: Looking for answers? Try searching our database.

monitoring the taskbar in windows

Thread view: 
tommygun101 - 08 Jun 2007 01:01 GMT
Hi friends

Is there a bulit in class that can directly control the open
aplications in windows?.
i,e. it can find out which programs are open and minimise and maximise
them, or even close them.

i am developing a java program that controls other programs in
windows, but to do this i need 2 things

1. a way to control the mouse and keyboard, i have found the class
ROBOT and this could control the windows as neccisary because ROBOT
directly controls the mouse and keyboard strokes.

2. i need a way to get information back from the other open programs,
i was thinking of print screen but that is a real mission,.. it would
be ideal to read the screen shot directly from the memory without
having to maximise or minimise the window.

Does Such A Class Exist?!?
Thanx
Andrew Thompson - 08 Jun 2007 02:03 GMT
> Hi friends

My friends do not multi-post.

> Is there a bulit in class ..

Please refrain from multi-posting, in future.
<http://www.physci.org/codes/javafaq.html#xpost>

(X-post to c.l.j.p./h., w/ f-u to c.l.j.h. only)
Twisted - 08 Jun 2007 02:10 GMT
> > Hi friends
>
[quoted text clipped - 6 lines]
>
> (X-post to c.l.j.p./h., w/ f-u to c.l.j.h. only)

I don't see an answer to the OP's question in here, though it looks to
me like it would likely be "no", with JNI or a third-party, platform-
specific component needed to accomplish his goals.

I also don't see any evidence that the OP multi-posted anything. Nor
is that surprising, since unlike cross-posting it wouldn't show up in
the message headers at all.
Andrew Thompson - 08 Jun 2007 02:28 GMT
>> > Hi friends
...
>> (X-post to c.l.j.p./h., w/ f-u to c.l.j.h. only)
>
>I don't see an answer to the OP's question in here, ..

Good call.  I would never impart technical information
to a multi-poster, until the matter of multi-posting had
been resolved to my satisfaction.  

>I also don't see any evidence that the OP multi-posted anything. Nor
>is that surprising, since unlike cross-posting it wouldn't show up in
>the message headers at all.

No, it wouldn't.  I have a number of ways of telling that
a message has been multi-posted, the most obvious one
is seeing identical posts from one person, that are not
cross-posted.  When that happens, I check the poster's
'profile' in GG to see something like..
<http://groups.google.com/groups/profile?enc_user=ss4TyhAAAABbiru06bwTnrkElcCaZZqb

(Posts separated by one minute)

That is evidence enough, for me.  OTOH The OP can
cut in and explain any misunderstanding on my part,
at any moment they wish.

Signature

Andrew Thompson
http://www.athompson.info/andrew/

Twisted - 08 Jun 2007 04:28 GMT
[snip]

The OP came to comp.lang.java.programmer asking for advice on Java,
not for advice on netiquette, nor did they ask to be net.stalked and
their posting history examined and criticized in public. Your response
was completely off-topic in this group. My subsequent post contained
an on-topic portion, and your further response was again totally off-
topic.

So far, it is you who seem to be the worse one at netiquette, as
viewed from where I am. One (if we believe you, two or more) on-topic
posts by him; at least two off-topic posts by you. (And now one off-
topic post by me, after a lengthy history of on-topic posts. :P)
Andrew Thompson - 08 Jun 2007 04:56 GMT
...
>So far, it is you who seem to be the worse one at netiquette, as
>viewed from where I am. ...

Feel free to crawl out from under your rock,
any time you like.

Signature

Andrew Thompson
http://www.athompson.info/andrew/

tommygun101 - 08 Jun 2007 12:00 GMT
> ..
>
[quoted text clipped - 8 lines]
>
> Message posted via JavaKB.comhttp://www.javakb.com/Uwe/Forums.aspx/java-general/200706/1

hey Andrew Thompson and Twisted

I am new to this forum thing, i did "multi-post" but i did it only on
2 sperate groups, i
spent quite some time frasing my question and if a where to rewrite
it,it would not have
been better than my first attempt, im sorry this offended you,, i wont
do it again
now that i know its a no no.

besides its not like i joined 30 groups and posted the same message
i would still apreciate some help but if you still dont want to help
me
i understand
Andrew Thompson - 08 Jun 2007 12:35 GMT
...
>I am new to this forum thing, i did "multi-post" but i did it only on
>2 sperate groups, i
>spent quite some time frasing my question and if a where to rewrite
>it,it would not have
>been better than my first attempt, im sorry this offended you,,

It did not offend me.  Don't sweat it.

>...i wont do it again

Note that it is OK (with most people) to *cross*-post
messages between two groups.  Read that first link I put,
it explains the difference, and why most people do not like
multi-posting.  Here is the link again
<http://www.physci.org/codes/javafaq.html#xpost>

>now that i know its a no no.

Cool.  But be aware you can achieve much the same
effect, without the sidetracking comments, by
cross-posting.
...
>i would still apreciate some help ...

FWIW (For what it's worth) your original speculations
about the Robot, combined with Twisted's comment
on JNI, pretty much sum it up.  I (for one) know of no
other ways you might achieve the desired goal.

I will add though, in case you had not already realised,
that Java is not a language well suited to these 'delve
into the guts of the OS' type problems.

Robot is very kludgy and fragile for this type of problem.
JNI is platform specific, so most of the code will be..
something non Java, called by a thin Java layer.

Signature

Andrew Thompson
http://www.athompson.info/andrew/

tommygun101 - 08 Jun 2007 13:14 GMT
> Robot is very kludgy and fragile for this type of problem.
> JNI is platform specific, so most of the code will be..
> something non Java, called by a thin Java layer.

thats intersting,..

OS  <--> java <--> Mathematica

i was thinking of using java as a bridge to get info about the
system that mathematica could not get and then pass
the info to mathematica to use in its process,

So, if java will not be adequate, do you know which programming
language
would be a good bet to check out,

This would be much better than doing my other alternative,.. which
was
print screen and then analysing the text and the boxes in the
task bar using the haar wavelet, but this would be too expensive
for the simple task i need.
Lew - 08 Jun 2007 15:16 GMT
> print screen and then analysing the text and the boxes in the
> task bar using the haar wavelet, but this would be too expensive
> for the simple task i need.

Maybe so, but what an extremely cool idea!

Do you have any algorithms or code you'd care to share on that approach?

Signature

Lew

tommygun101 - 08 Jun 2007 18:06 GMT
> Do you have any algorithms or code you'd care to share on that approach?
i will make a new thread, because this is a bit off topic on the
current thread
tommygun101 - 08 Jun 2007 18:08 GMT
> > Do you have any algorithms or code you'd care to share on that approach?
>
> i will make a new thread, because this is a bit off topic on the
> current thread

Text image analysis with the haar wavelet---> check it out when im done
Joshua Cranmer - 09 Jun 2007 18:31 GMT
>> Robot is very kludgy and fragile for this type of problem.
>> JNI is platform specific, so most of the code will be..
[quoted text clipped - 11 lines]
> language
> would be a good bet to check out,

Try using MVC, MVC++, or MVB. I'm not an expert on the Windows API, but
there should be some down-and-dirty stuff to grab process information
and dispatch events to open applications.

Java is a poor choice to use a bridge between high-level applications
and OS information because Java is explicitly designed to wash away the
OS information as much as possible. A much better choice would be to use
languages closer to the OS; C (or sometimes C++) is preferred because
that is what most OS's are written in.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.