Sign in to follow this  
Followers 0
wangzhengbo

using AutoItX in java

8 posts in this topic




maybe i'm missing the obvious, but what exactly does it do? enable AutoIt scripts to be run by JRE? or expose Java capabilities to be used by AutoIt?

Share this post


Link to post
Share on other sites

wangzhengbo,

If you want to post about AutoItX, then please do so in the correct section of the forum. I have moved 2 of your threads this morning - I would rather not have to move a third. ;)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

maybe i'm missing the obvious, but what exactly does it do? enable AutoIt scripts to be run by JRE? or expose Java capabilities to be used by AutoIt?

 

You can use

  Win.activate(title) or Win.activate(title, text) to active window in java,

and also

Win.getProcess(title) or Win.getProcess(title, text) to retrieve the process of the window,

Win.move(title), or Win.move(title, text) to move a window.

  Control.setText(title, controlId, controlText) to sets text of a control, etc.

Share this post


Link to post
Share on other sites

so my script is able to handle Java app as any normal window? that looks pretty cool! i tried in the past to automate a Java app, and practically spit sweat over it... is it too bold of me to ask for a brief how-to setup? what file(s) to download and where do they go, what needs to be installed (if at all), etc.

Share this post


Link to post
Share on other sites

so my script is able to handle Java app as any normal window? that looks pretty cool! i tried in the past to automate a Java app, and practically spit sweat over it... is it too bold of me to ask for a brief how-to setup? what file(s) to download and where do they go, what needs to be installed (if at all), etc.

Download JAutoItX-3.3.8.1-1.0.0-alpha.jar from http://code.google.com/p/jautoitx/downloads/list

and add all dependent libs:

commons-collections-3.2.1.jar
commons-io-2.4.jar
commons-lang3-3.1.jar
log4j-1.2.17.jar
jna-4.0.0.jar
jna-platform-4.0.0.jar
 
to your classpath.
 
They are included in JAutoItX-3.3.8.1-1.0.0-alpha-all.jar.

Share this post


Link to post
Share on other sites

Orbs, this is just a wrapper for AutoItX, which is a COM/dll wrapper for a small handful of AutoIt functions. It does not add the ability to run scripts and it doesn't allow you to automate windows you couldn't before.

Share this post


Link to post
Share on other sites

Orbs, this is just a wrapper for AutoItX, which is a COM/dll wrapper for a small handful of AutoIt functions. It does not add the ability to run scripts and it doesn't allow you to automate windows you couldn't before.

 

thanks, i just now realized that. still i hope it would be useful at some point.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0