shiv Posted October 15, 2013 Posted October 15, 2013 Hi All, I have spent lot of time on internet to know that how do we use ObjCreate and .item in our autoit scripts. but no such productive information is found related to both I have some code which i want to understand $oSection = ObjCreate('Scripting.Dictionary') $Section.Add("Action","") $Section.Add("ConfrmAction","") $Section.Add("Value","") $Section.Add("EmailID","") $Section.Item('Action') = $sAction $Section.Item('ConfrmAction') = True $Section.Item('Value') = $sValue $Section.Item('EmailID') = '' Well this code might be unclear to you, but the only thing which i want to understand that 1. what is the use of objCreate 2. what .item is doing in the code above. Beside that if you can please elaborate the concept of using objCreate and .item it would be very helpful . Because in the help file objCreate is not very much of helpful. Thanks
water Posted October 15, 2013 Posted October 15, 2013 ObjCreate creates a reference to a COM object so you can access the properties and methods. Looks like item returns a single object by name out of a collection of items. The description of the dictionary object can be found here. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
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