Re: How can I trap UI events non-intrusively?

From: John (mkod_sf_at_yahoo.com)
Date: 08/23/04


Date: 23 Aug 2004 13:46:12 -0700

Thanks Cid and John for your responses. It gives me an avenue for
investigation.

I also need to understanding what is displayed on the screen so that I
can create context sensitive instructions.

For example consider an Order Entry application. When the user enters
a product number a product unit price will be displayed (say $5000). I
need to capture that amount (which was not entered by keystrokes from
the user, instead was read from a database) so when the user then
enters a product quantity (say 10) the CBT can display a message like
"Sales clerks cannot authorize a transaction exceeding $10,000.

Will I be able to capture screen output like the one above using
'Events'?

John

"John C. Bollinger" <jobollin@indiana.edu> wrote in message news:<cg2cul$8h8$1@hood.uits.indiana.edu>...
> John wrote:
>
> > We have some Computer Based Training (CBT) software for different GUI
> > business applications on MS windows OS. We currently have Win32 API
> > and COM based libraries that let us create training applications that
> > are tightly integrated with the business applications. We do this by
> > monitoring users mouse and keyboard actions and contents of windows
> > controls (fields, check boxes, list boxes, etc.). We do not need
> > access to the source code of the business applications. Through win32
> > API's we know the menu choice used by the user, the data value entered
> > in a GUI field, etc.
> >
> > Now we have to do the same for Java based GUI applications. I was
> > wondering if I can get any ideas from folks in this group about how I
> > can achieve similar results for java GUI's. Is there a way to
> > monitoring java applications without having access to the source code?
> > Any help will be highly appreciated.
>
> All mouse and keyboard actions in a Java GUI (AWT and/or Swing)
> application produce "Events" for keyboard activity and mouse gestures.
> You can create software that will receive copies of all such events:
> look into the addAWTEventListener() method of class java.awt.Toolkit.
> It will be easiest to use this by means of a custom launcher for the
> base application being monitored; connecting to an already-running
> application is a harder task because of the insulation provided by the JVM.
>
> Hopefully that will get you started in the right direction.
>
>
> John Bollinger
> jobollin@indiana.edu



Relevant Pages

  • Re: How can I trap UI events non-intrusively?
    ... Thanks Cid and John for your responses. ... enters a product quantity the CBT can display a message like ... >> are tightly integrated with the business applications. ... >> Now we have to do the same for Java based GUI applications. ...
    (comp.lang.java.gui)
  • Re: Work Menu - Word:mac 2008
    ... Then the software industry split them into four different applications so ... With a .plist to tell it how to display itself. ... Not sure whether you're addressing John or me, ... McGhie Information Engineering Pty Ltd ...
    (microsoft.public.mac.office.word)
  • Re: APUs
    ... All the companies had examples of their hardware on display. ... camera mounted above the cab body and a small B&W screen in the cab. ... truck and the vehicle in front. ... John De Armond ...
    (rec.outdoors.rv-travel)
  • Thank you, John.
    ... Thank you, John. ... alias is apparently used for ADP projects). ... I can easily display the name of ... person_ids for the parents. ...
    (microsoft.public.access.queries)
  • Re: Issue with mailbox move
    ... "There are seldom good technological solutions to behavioral problems." ... users have one display name internally and other externally, ... Let pick "John O'Rourke" for instance, ... display name with a comma, Move Mailbox successfully moves the mailbox. ...
    (microsoft.public.exchange.admin)