areyouready Posted December 24, 2010 Share Posted December 24, 2010 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 More sharing options...
Moderators Melba23 Posted December 24, 2010 Moderators Share Posted December 24, 2010 areyouready,Welcome to the AutoIt forum. 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. Now to to your questions - yes, AutoIt can do everything you listed (and in some cases make your life easier by combining steps). 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. M23 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
shanet Posted December 24, 2010 Share Posted December 24, 2010 Well said Melba23 [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 More sharing options...
areyouready Posted December 24, 2010 Author Share Posted December 24, 2010 areyouready, Welcome to the AutoIt forum. 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. Now to to your questions - yes, AutoIt can do everything you listed (and in some cases make your life easier by combining steps). 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. 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 More sharing options...
Zedna Posted December 24, 2010 Share Posted December 24, 2010 Follow Melba's recommendations and look at these functions in helpfile ControlGetText ControlSetText ControlClick ControlSend Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
areyouready Posted December 24, 2010 Author Share Posted December 24, 2010 Follow Melba's recommendations and look at these functions in helpfileControlGetTextControlSetTextControlClickControlSendMy 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 More sharing options...
seandisanti Posted December 25, 2010 Share Posted December 25, 2010 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now