worfire Posted June 27, 2011 Posted June 27, 2011 hello everyone am new here on the site of the autoit Well I started programming in the autoit recently and today I have a doubt I would like is the following: There is a window on my computer, that window there is some text that I want to move the mouse to it and a click. someone could help me with this issue?
JohnOne Posted June 27, 2011 Posted June 27, 2011 Firstly, before you even start, you need to know what type of window it is, what type of control holds the text. You can use the window info tool that comes with autoit installation to find out information, but even a little explanation would help. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
borism25 Posted June 27, 2011 Posted June 27, 2011 (edited) you whont use that text, or just to click on it? In my computer if you whont to click on the text where is "Computer" you can press F4 if you whont to add some new text "CTRL + A" > "and type something like %Programfiles%" > if you whont copy use "CTRL + C" Send ("#e") Sleep (2000) Send ("{F4} ^a %Programfiles% {ENTER}") Edited June 27, 2011 by borism25
worfire Posted June 27, 2011 Author Posted June 27, 2011 see in the image.is a program that I use here at home, where this note marked ** Patch **I want to move the mouse to the word ** patch ** and a click,But the problem is not always the word patch in the same place, sometimes he changes his position, so I'm trying to find the mouse and that the word **Patch** and click on it.
Zedna Posted June 27, 2011 Posted June 27, 2011 It looks like TreeView. Use "C:\Program Files\AutoIt3\au3info.exe" to see ClassNameNN of this control. If it's standard TreeView Control then it's not problem. Resources UDF ResourcesEx UDF AutoIt Forum Search
worfire Posted June 27, 2011 Author Posted June 27, 2011 even using the windows view do not it appears no controlthe image below
JohnOne Posted June 27, 2011 Posted June 27, 2011 Did you unfreeze it first? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
monoscout999 Posted June 27, 2011 Posted June 27, 2011 strange... you can do it using mouse coordenates, but is better doing with controlclick. the function MouseClick() will do the job, use the AutoIt window info to find the coord where the text is, maybe you can automate to slide the list to the top, to find the text in the same coords everytime. But i insist that getting the class and using ControlMouse() is more much easier and practical. that using coords.
Moderators Melba23 Posted June 27, 2011 Moderators Posted June 27, 2011 JohnOne,Not always necessary to "unfreeze" the Window Info tool - depending on how you work with it. If you use the "Finder Tool", the target icon on the right hand side, the Window Info GUI has focus while you test the controls in another GUI. So you get the Info for any control over which you are hovering the "Finder Tool", but as soon as you release the mouse button, the "Finder Tool" returns to its niche and the Info remains frozen. If you do not use the "Finder Tool", then you must unfreeze the Window Info GUI to use it, but you get continually changing Info as the mouse moves about over the active GUI. So you have to copy the relevant Info onto paper as moving your mouse cursor to do anything else changes the information when it passes over another control. The more experienced coders seem to utilise the "Finder Tool" and pestered Jon to make the Info Tool "frozen" on start - which he kindly did some time ago. I hope all that makes sense. 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
JohnOne Posted June 27, 2011 Posted June 27, 2011 Did not know that about the finder tool, thanks M23 But when I use the mouse with unfrozen GUI state, I use the ctrl alt f, to freeze it. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
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