Jump to content

Internals of Autoit? significance of constant file files why and how are they used?


Recommended Posts

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

  • Moderators

sachin3079

I am  new to Auioit,

And yet you joined the forum in Jun 2010.....

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

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

  • Moderators

sachin3079,

In which case, welcome back.

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

  • Moderators

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

2097155

I know which I would prefer.

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

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 stuff

AutoIT 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.

 

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...