Re: How can I trap UI events non-intrusively?
From: John (mkod_sf_at_yahoo.com)
Date: 08/23/04
- Next message: Jacob: "Re: UINT16 file I/O"
- Previous message: Paul Lutus: "Re: odds and evens numbers"
- In reply to: John C. Bollinger: "Re: How can I trap UI events non-intrusively?"
- Next in thread: Sudsy: "Re: How can I trap UI events non-intrusively?"
- Reply: Sudsy: "Re: How can I trap UI events non-intrusively?"
- Reply: John C. Bollinger: "Re: How can I trap UI events non-intrusively?"
- Reply: Cid: "Re: How can I trap UI events non-intrusively?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Jacob: "Re: UINT16 file I/O"
- Previous message: Paul Lutus: "Re: odds and evens numbers"
- In reply to: John C. Bollinger: "Re: How can I trap UI events non-intrusively?"
- Next in thread: Sudsy: "Re: How can I trap UI events non-intrusively?"
- Reply: Sudsy: "Re: How can I trap UI events non-intrusively?"
- Reply: John C. Bollinger: "Re: How can I trap UI events non-intrusively?"
- Reply: Cid: "Re: How can I trap UI events non-intrusively?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|