Jump to content

using AutoItX in java


wangzhengbo
 Share

Recommended Posts

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?

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

 

Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see 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

 

Link to comment
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.

Link to comment
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.

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

 

Link to comment
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.
Link to comment
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.

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...