Jump to content

understanding AutoIt capabilities


Recommended Posts

Hello Support Team:

I'm trying to understand AutoIt capabilities. Is it possible to have autoIt do the following:

1. Move the mouse to the location of an input text box of a third-party GUI application.

2. Click inside this input text box to highlight it.

3. Read a line of text from a file and input this line of text into the highlighted input text box and then hit the enter key.

4. And then send a key press of z, wait 1 second and repeat this until the end of file is reached.

If so, what are the best tutorials to accomplish these tasks?

Thanks,

AreYouReady

Link to comment
Share on other sites

  • Moderators

areyouready,

Welcome to the AutoIt forum. :P

Just to clarify one thing - we are not a "Support Team" - everyone here is a volunteer who gives their time freely to help other AutoIt users. So please do not expect rapid 24/7 replies - we do go to bed sometimes. :nuke:

Now to to your questions - yes, AutoIt can do everything you listed (and in some cases make your life easier by combining steps). :x

As to learning how to get Autoit to actually do these things, reading the Help file (at least the first few sections - Using AutoIt, Tutorials and the first couple of References) will help you enormously. You should also look at the excellent tutorials that you will find here and here - you will find other tutorials in the Wiki (the link is at the top of the page). There are even video tutorials on YouTube if you prefer watching to reading.

Have a read and see how far you can get by yourself - you know where we are if you run into difficulties. :shifty:

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

Well said Melba23 :x

[font="Comic Sans MS"]My code does not have bugs! It just develops random features.[/font]My Projects[list][*]Live Streaming (Not my project, but my edited version)[right]AutoIt Wrappers![/right][/list]Pure randomness[list][*]Small Minds.......................................................................................................[size="1"]Simple progress bar that changes direction at either sides.[/size][*]ChristmasIt AutoIt Christmas Theme..........................................................[size="1"]I WAS BOOOORED![/size][*]DriveToy..............................................................................................................[size="1"]Simple joke script. Trick your friends into thinking their computer drive is haywire![/size][/list]In Development[list][*]Your Background Task Organiser[*]AInstall Second Generation[/list]BEFORE POSTING ON THE FORUMS, TRY THIS:

%programfiles%/AutoIt3/autoit3.chm
Link to comment
Share on other sites

areyouready,

Welcome to the AutoIt forum. :P

Just to clarify one thing - we are not a "Support Team" - everyone here is a volunteer who gives their time freely to help other AutoIt users. So please do not expect rapid 24/7 replies - we do go to bed sometimes. :nuke:

Now to to your questions - yes, AutoIt can do everything you listed (and in some cases make your life easier by combining steps). :x

As to learning how to get Autoit to actually do these things, reading the Help file (at least the first few sections - Using AutoIt, Tutorials and the first couple of References) will help you enormously. You should also look at the excellent tutorials that you will find here and here - you will find other tutorials in the Wiki (the link is at the top of the page). There are even video tutorials on YouTube if you prefer watching to reading.

Have a read and see how far you can get by yourself - you know where we are if you run into difficulties. :shifty:

M23

Wow, the forum title of General Help and Support lead me to think this was a support team and thanks for the clarification and volunteer answers. I'm excited to get started with the tutorials right now!!!!
Link to comment
Share on other sites

Follow Melba's recommendations and look at these functions in helpfile

ControlGetText

ControlSetText

ControlClick

ControlSend

My code looks like this (below).

Question, how can I clear the input text box before sending text to it?

And problem, when I send the text to the input text box (example, Send("please")) the word please is enter as lease, the letter p is missing.

MouseClick ( "left", 42, 93,1)

Send("please")

Send ("{ENTER}")

MouseMove (490,329)

Send( "m" )

Sleep(1000)

MouseClick ( "left", 490,329,2)

Link to comment
Share on other sites

Question, how can I clear the input text box before sending text to it?

if you're using controlsettext, you don't have to clear, because it will only contain the text you set it to. if you're using Send/control send, depending on the behavior of the control, if it selects the current text when it receives focus, just send away, if not, you may want to do some combination of {END} {Shift Down} {Home} to select the current text before sending
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...