shiv 1 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 Share this post Link to post Share on other sites
water 2,387 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 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites