Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Working with CMD and Java Objects
#1
I am writing a macro that needs to respond to batch prompts and interpret output using the "DOS" CMD program using Windows 2000. Is there a mode or command set that works with this?

Also, is it possible to intercept and interact with Java Objects and Events? I presume not, but any tips or tricks would be extremely useful.

:!: Excellent macro language, by the way! I highly recommend this product. :!:
Scott Lloyd
University of Southern California
#2
It is possible to write functions in QM that interact with DOS program, running in console, but only in XP.
QM cannot interact with Java objects and events.
#3
Quote:QM cannot interact with Java objects and events.

Maybe this can help ...

http://java.sun.com/products/accessbridge/
http://java.sun.com/javase/technologies ... erret.html
http://jacareto.sourceforge.net/wiki/in ... /Main_Page
#4
Thank you. Does it work with QM?
#5
Not yet.
#6
Could implement it in QM, but quite much work, and would be very rarely used.
#7
Quote:and would be very rarely used

This post has been read 1258 times. I think that this function would be very useful.
#8
1. I don't know how many java applications support accessibility. I tested OpenOffice. It supports but need to enable explicitly.
2. How many QM users will download and install the java accessibility bridge?
3. The bridge does not support IAccessible interface. I would have to add another type of UI objects or somehow to convert to accessible objects. Too much work.
#9
Wow this is exactly what i was looking for! Thank you so much for posting this, i wish those could implented inside qm, this is very handy not just for me, but for about 1300 people thats been looked at this so far!
#10
Is possible add to new QM version?
#11
Not in next QM version.
#12
Is there a workaround?

maybe https://code.google.com/p/autoitx4java/ help.
#13
It would allow to use QM functions in Java, but it's impossible because QM does not have a COM interface.
#14
Can http://www.autoitscript.com/forum/topic/87956-java-udf/ help?
#15
For me it's better to learn the access bridge API...
But not in next QM version.
#16
I've installed java accessibility bridge.

Using javaferret.exe it detects objects in java window.

I had a look at JavaFerret.cpp but I don't know how use JavaAccessBridge.dll with QM...

Can you help?
#17
Converted etc, need some more time...
#18
Java Access Bridge API declarations, etc. Tested, works.


Attached Files
.qml   Java Access Bridge.qml (Size: 40.23 KB / Downloads: 576)
#19
Thank you very much.

When it can used as accessible object will be perfect.
#20
Can you add examples how :get text from mouse, select combobox item...?
#21
Tried GetAccessibleContextAt but it does not work, probably JAB bug. JavaFerret also almost does not work on my PC. Now don't want to spend more time with this barely working and almost undocumented APIs.
#22
Can you add some other example?
#23
I'll wait until GetAccessibleContextAt will be fixed, now it's difficult to create something useful without it.
#24
Could you include any functions in QM 2.3.6?
#25
No. Java Access Bridge API has severe bugs, is almost undocumented, etc. Tested also NVDA, it does not work too with mouse, only events sometimes work, then stop working...
#26
Java Access Bridge 2.0.3 is included with JRE 7u6

http://docs.oracle.com/javase/7/docs/te ... _test.html

still with bugs?
#27
Will test it when have time.
#28
any news?
#29
Tested Java Access Bridge 2.0.3, was still the same. Don't know what is the newest version now.
#30
In http://documentation.skillsoft.com/en_u ... #50086.htm

Windows 7 Accessibility Information
You can download JRE 1.7.0_60 that contains an updated Java Access Bridge (JAB 2.0.4). JRE version 1.7.0_60 solves the accessibility issues
on Windows 7 using JAWS.

Can you test?


Forum Jump:


Users browsing this thread: 1 Guest(s)