Control a software program with java? -
how can operate software program java? example, operate vyprvpn disconnect & reconnect switch servers etc.
i know can position mouse , click robot class need more specific able identify buttons , give them different id's or along lines.
is possible?
it can done reflection or byte code engineering library (bcel), although i'm not sure how active development , support latter.
both require great reverse engineering knowledge , work only if target program written in java too.
otherwise there no better solution capture screen , use image processing recognize elements, determine action should take if given button, or different element, found.
please keep in mind not simple programming task. there programs can record or provide simple programming interface define own macro, interface limiting. , also, programs not cheap.
in opinion, if want use java, best solution have fixed window size , find corresponding coordinates buttons or other ui controls, use robot api click these actions. make bit more miss-click prone finding position of window handle , normalize mouse coordinates based on window location.
Comments
Post a Comment