Re: Any way to activate refresh button?



[post re-ordered]

"Clark" <who@xxxxxxxxxxxx> wrote in message news:J71Nf.25955$_S7.5164@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

"Oliver Wong" <owong@xxxxxxxxxxxxxx> wrote in message news:ZsGMf.7080$M52.6627@xxxxxxxxxxx

"Clark" <who@xxxxxxxxxxxx> wrote in message news:akGMf.15520$rL5.11863@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have a stock market charting applet that needs a "redraw" button to be clicked before it will update. Does anyone know of a script that would do that automatically? I am not writing the software, just would like to not have to click the button every minute or so.

Do you know how to program in Java? Perhaps you could write your own applet viewer which would invoke the appropriate methods at the appropriate time, or at worst, use the Robot class.

Otherwise, you might want to look for general macro recording and playback software; you don't need to look for something Java specific.


Thanks, I'll look around. I have had just a little experience in Java programming.

If you want to try the Robot class, read the documentation at http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Robot.html

<quote>
This class is used to generate native system input events for the purposes of test automation, self-running demos, and other applications where control of the mouse and keyboard is needed. The primary purpose of Robot is to facilitate automated testing of Java platform implementations.

Using the class to generate input events differs from posting events to the AWT event queue or AWT components in that the events are generated in the platform's native input queue. For example, Robot.mouseMove will actually move the mouse cursor instead of just generating mouse move events.
</quote>

but note that if you are new to Java, this is probably a relatively tricky project you're undertaking.

- Oliver

.


Quantcast