flashlab 1 Posted December 27, 2010 (edited) Just like spy++'s capture function. drag the Aim point to the Target window ,then return the classname and other information of it.How to achieve it with pure Autoit script? I've search the forum and find nothing.I know the Autohotkey has a function "MouseGetPos" (return the unique ID number of the window under the mouse cursor). Is there any way to do it? This example can only get the windows info though the position of the mouse--->MySpy.7z Edited December 27, 2010 by flashlab Share this post Link to post Share on other sites
Melba23 3,455 Posted December 27, 2010 flashlab,_WinAPI_WindowFromPoint sounds to me like a good place for you to start looking in the Help file. 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 Share this post Link to post Share on other sites
funkey 128 Posted December 27, 2010 Look at the attached file.Form Captor.au3 Programming today is a race between software engineers striving tobuild bigger and better idiot-proof programs, and the Universetrying to produce bigger and better idiots.So far, the Universe is winning. Share this post Link to post Share on other sites
Mat 376 Posted December 27, 2010 Heres a easy way to get the drag thing going: It's a bit outdated (been meaning to do some work on it for a while now), but it works. AutoIt Project Listing Share this post Link to post Share on other sites
flashlab 1 Posted December 29, 2010 Heres a easy way to get the drag thing going: It's a bit outdated (been meaning to do some work on it for a while now), but it works.THANK YOU for your work:) Share this post Link to post Share on other sites