Missing wiki page: Java SWT sample

May 12, 2014 at 5:54 PM
Edited May 12, 2014 at 6:27 PM
Hello,

The documentation on the following page seems to be missing:
https://uiautomation.codeplex.com/wikipage?title=Java SWT sample&referringTitle=Documentation

I found the link on this page:
https://uiautomation.codeplex.com/documentation

Can you look into fixing this page?

Thank you.

by oracle:

The Java Access Bridge product is now being included with Java SE 7u6.
Manual installation of the Java Access Bridge will no longer be required.
All Access Bridge files will be automatically installed by the JRE
and the JDK.
https://blogs.oracle.com/javaaccessibility/entry/developer_preview_available_for_java

and
%JRE_HOME%\bin\jabswitch -enable

Image
PS D:\> Get-UiaWindow -Name "Java Control Panel"|Get-UiaControl|Read-UiaControlName
Java Control Panel
System Menu Bar
System
Minimize
Maximize
Close
PS D:\> Get-UiaWindow -Name "Calculator"|Get-UiaControl|Read-UiaControlName
0.
MC
MR
MS
...............
I have installed jre7 u55 (or jre8), but I still can‘t get the child controls, can you give some examples?
Thank you!

java control panel or JDownloader:
http://jdownloader.org/download/offline

java access bridge api is ok:Image
Coordinator
May 12, 2014 at 8:22 PM
Hi,
I was unaware of the inclusion of Access Bridge to Java, thanks you!

I check that this works the following way: on Windows 8.1 x64 with Java 7u55 (JDK) installed:
  1. turn on Java Access Bridge: Control Panel -> Ease of Access -> Ease of Access Center -> Change sign-in settings -> both check boxes
  2. start a new PowerShell with UIAutomation
  3. download and unpack Java Access Bridge samples
  4. run, for example, JavaMonkey-64.exe
The following code now should work:
Get-UiaWindow -n *javamonk*  | Get-UiaMenuItem | Invoke-UiaMenuItemExpand
if you run JavaFerret.exe, the following code should work:
Get-UiaWindow -n *java*ferr*  | Get-UiaMenuItem | Invoke-UiaMenuItemExpand
I can't say whether they support real-life applications or don't as I have only .NET and Win32 applications to test for last years. I'll create a SWT sample to test how it works, however, all the capabilities of Java Access Bridge are up to them, Oracle.
May 13, 2014 at 5:35 AM
JavaMonkey is a win32 application ,not java

javacpl.exe is a java application

Control Panel -> java
or
c:\Program Files (x86)\Java\jre7\bin\javacpl.exe
or
Win+Q ->configure Java
PS D:\> Get-UiaWindow -ProcessName javaw |Get-UiaControl|Read-UiaControlName
Java Control Panel
System Menu Bar
System
Minimize
Maximize
Close