| | |
Accessible Gui text
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Jan 2008
Posts: 5
Reputation:
Solved Threads: 0
{ This is an exploratory question to just find out if something is possible. }
The facts are these :
1. The java program is closed source, but is running on an accessible workstation.
2. The gui is written in AWT.
3. OS is windows
4. Windows tools like Spy++ can not "see" the components.
5. Rather not use java access bridge, if it can be helped.
Can text from a java Gui be read by another process?
Example solution: Write a small java program that loops through the awt containers to gather the name fields of each item. ( Not sure if thats possible, which is why I'm asking )
The facts are these :
1. The java program is closed source, but is running on an accessible workstation.
2. The gui is written in AWT.
3. OS is windows
4. Windows tools like Spy++ can not "see" the components.
5. Rather not use java access bridge, if it can be helped.
Can text from a java Gui be read by another process?
Example solution: Write a small java program that loops through the awt containers to gather the name fields of each item. ( Not sure if thats possible, which is why I'm asking )
•
•
Join Date: Jan 2008
Posts: 5
Reputation:
Solved Threads: 0
Judging by your comment, you are assuming I'm doing this with nefarious intentions?
I didn't think I came across that way, but you have that right.
The purpose of gathering the text is to produce a report that the program does not natively create. I'm making a side program to meet that need in the mean-time.
I didn't think I came across that way, but you have that right.
The purpose of gathering the text is to produce a report that the program does not natively create. I'm making a side program to meet that need in the mean-time.
•
•
Join Date: Jan 2008
Posts: 36
Reputation:
Solved Threads: 4
To add a jar in classpath and to access the classes from the methods they provide is naturale to Java. If the host program is the program that connects to the database. There is always classes that provide functions for you to get this datas. Trying to interupt a nother prosess will most likely cause the other prosess to fail. I don'tn recomment to do it your way by hacking your program into a nother process. This is dead before your got started.
What cind of process or program does you want to hack throug process? if uour are trying to access a windows COM object you must have a bridge for this. if you want to use a nother java app. You simply imports the desired jar archive and start coding of connection to the methods provided from this archive.
What cind of process or program does you want to hack throug process? if uour are trying to access a windows COM object you must have a bridge for this. if you want to use a nother java app. You simply imports the desired jar archive and start coding of connection to the methods provided from this archive.
•
•
Join Date: Jan 2008
Posts: 5
Reputation:
Solved Threads: 0
Thanks for you help Electron, as I said this was mostly a "what if" question. Win MFC based windows are an open book compared to java gui's when using C, VB, ect languages. I thought perhaps using a java program might allow you to work with other java processes and thus their Gui, this is not the case. Having never written in Java , I just wasn't sure. I am able to accomplish the goal by other means, so not all is lost.
•
•
Join Date: Jan 2008
Posts: 1
Reputation:
Solved Threads: 0
•
•
•
•
I am able to accomplish the goal by other means, so not all is lost.
I've been trying to read stuff from a Java GUI too.
It's for a Java based game, it has this list with item names and prices and I'd like to save a copy of this list for future reference. Of course I'm not gonna copy everything by hand so I had the idea to write a little app to do the dirty job for me.
![]() |
Other Threads in the Java Forum
- Previous Thread: NullPointerexception ??
- Next Thread: FileNotFound exception in applet
| Thread Tools | Search this Thread |
3d 6 @param affinetransform android api applet application arc array arrays automation binary bluetooth bold byte c++ chat class classes client code color compare component coordinates database detection doctype eclipse educational error file fractal froglogic game givemetehcodez graphics gui guitesting helpwithhomework html ide ideas image ingres input integer internet intersect j2me java java.xls javaexcel javaprojects jni jpanel jtextarea julia keytool linux list loop map method methods mobile netbeans newbie nextline object pong print problem producer program programming project projectideas recursion recursive replaysolutions rim scanner screen sell server set size sms sort sql string swing terminal threads tree web websites windows







