sachin3079 Posted May 6, 2015 Share Posted May 6, 2015 Hello Everyone,I am new to Auioit, post installation of auoit I went and saw several constant files containing hexcode for various global constant variables.I was curious to know the significance of these files and content in it. How are these being used?Another question was how exactly autoit works, how does it identify(internally) an control on desktop based applications.I tried to google for it but did not find answer. It would be great if anyone can give a pointer to these queries. Thanks in Advance.Sachin Link to comment Share on other sites More sharing options...
JohnOne Posted May 6, 2015 Share Posted May 6, 2015 1. They are to give a name to what the constant is called, usually based on msdn constants.2. It uses the windows API. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 6, 2015 Moderators Share Posted May 6, 2015 sachin3079I am new to Auioit,And yet you joined the forum in Jun 2010.....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...
sachin3079 Posted May 6, 2015 Author Share Posted May 6, 2015 yeah Melba23 I did join the forum in 2010, but was not active at all and did not use Autoit after that. Its now that I am getting into a project which uses Autoit extensively and had to start afresh, Instead of creating a new account i searched for my old account and logged in to post my query. Thanks JohnOne for the input. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 6, 2015 Moderators Share Posted May 6, 2015 sachin3079,In which case, welcome back.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...
sachin3079 Posted May 6, 2015 Author Share Posted May 6, 2015 Thanks M3, so do you have any more pointers to the query what I asked? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 6, 2015 Moderators Share Posted May 6, 2015 sachin3079,Not really. As JohnOne explained, the constants files merely give understandable names to the myriad of numeric constants used inside the Windows API and other AutoIt functions so that they are more easily understood by humans. If you search the forum for "magic numbers" you will see that we constantly recommend the use of these names rather then their numeric equivalents to make the code more readable - which would you prefer to see when looking at the style settings for a combo control after not looking at the code for some months?BitOR($CBS_DROPDOWNLIST, $WS_VSCROLL) 0x00200003 2097155I know which I would prefer.M23 sachin3079 1 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...
junkew Posted May 6, 2015 Share Posted May 6, 2015 see example section and thread on iuiautomation has lots of links to the detailed techniques behind object recognition.If you are a starter I would suggest to not read all those (complex) technical details. Most complex stuff for tools is to see what humans see on their screen and technically there are to many different technologies under the surface.This is nice if you look for a tool that does what humans are doing http://www.sikuli.org/ by visualizing stuff but hard to run on different desktops, screens, browsers.Tools like appium try to do the mobile device stuffAutoIT together with IUIAutomation can handle all default windows and browsers (IE, Chrome, Firefox, Opera) and partially QTWidgets, Java widgets and technically it should be possible to use ADB on android device to do some automation. iOS device handling from Windows is hard although I hope Windows 10 will help in that area. FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets 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