Are you replying to me? if yes then this isn't what were discussing here, javacpl.exe is just an example, but the intention of this thread is to INTERACT with Java applets.
Not Manage Java settings like your .au3 does.
Perfect example!
Now if you can demonstrate a more complete example, I'm sure we can all learn from it and @junkew can pin it aswell!
Here's what i think will cover usages:
1. click on "Security" tab
2. Click on "Edit Site List"
3. Click on "Add" button
4. setValue "https://google.com"
5. Click "OK" button to close window
6. Click "OK" button to close main Java window aswell
Ok but i don't understand what syntax to use...
Here's what I do:
1. Launch javacpl.exe and use JavaAccessBridge to spy on this button
I get this in JAB window:
So then I just write this simple script (Obviously wrong, hopefully you can correct me)
#include "JavaUI.au3"
WinActivate("Java Control Panel")
sleep(500)
_JAB_singleAction("push button: Edit Site List...", "click")
(JavaUI.au3 = Your _Jab script) I'm sure I'm not the only one not able to understand the full picture, appreciate any help in advance.
Thank you for contributing to this, also for posting the .au3 template.
Would it be too much to ask if you could post an example of a .au3 that runs few example commands (Clicks, get/set values) on some app? like the javacpl.exe app for example, can you simulate some actions like clicking the security tab and adding an exception URL or something? Thanks alot!
@junkew
Can you expand abit on how you imported JABHandler into AU3?
I managed to make JABSpy work, installed Access Bridge Explorer, I can see values on both spies, I just don't know how to initialize my au3 script and how to do simple clicks, set texts.
Thanks,
@junkew Thanks so much for your UDF, it makes things much faster but can you include an "action" function in your UDF?
I'm using your script to automate mstsc.exe in win2016, I can inject username + password thanks to your code, but how do i click on the ok button?
Thanks.