vaish Posted November 7, 2012 Share Posted November 7, 2012 Hi All, I have a AutoIT script and using that script i am calling IMacros Objet using ObjGet function in AutoIT. The ObjGet structure is: ObjGet ( "filename" [, "classname"] ) filename: The full path and name to the file containing the object (See remarks). classname: The class of the object in the following format: "appname.objectype" Here my question is, what is the Classname for "IMacros" Application? Script: $iMacros = ObjGet(classname??) If $iMacros = 0 Then $iMacros = ObjCreate("IMacros") EndIf Global $iRet Please do the needful. Link to comment Share on other sites More sharing options...
water Posted November 7, 2012 Share Posted November 7, 2012 Google is your friend. Check this site. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
vaish Posted November 7, 2012 Author Share Posted November 7, 2012 Thanks... But i am trying for objectype of Imacros... Just start the Imacros browser and pass classname as "imacros" in ObjGet function, it is not working... Any comments? Link to comment Share on other sites More sharing options...
water Posted November 7, 2012 Share Posted November 7, 2012 How does your ObjGet statement look like? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
vaish Posted November 7, 2012 Author Share Posted November 7, 2012 $iMacros = ObjGet("","iMacros.Application") Script: Link to comment Share on other sites More sharing options...
water Posted November 7, 2012 Share Posted November 7, 2012 Shouldn't it be $oMacros = ObjGet("","imacros") My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
vaish Posted November 7, 2012 Author Share Posted November 7, 2012 No.... still same issue... Link to comment Share on other sites More sharing options...
water Posted November 7, 2012 Share Posted November 7, 2012 "Is not working" means? You get an error message? What is the return value and @error of ObjGet? Do you have an COM error handlr in your script? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
vaish Posted November 7, 2012 Author Share Posted November 7, 2012 Error message is: if @error then Msgbox (0,"ExcelTest","Error Getting an active imacros Object. Error code: " & hex(@error,8)) exit Message is: "Error Getting an active imacros Object. Error code:800401F3... But i don't know exact value of Hex... Any comments Link to comment Share on other sites More sharing options...
water Posted November 7, 2012 Share Posted November 7, 2012 According to Microsoft: "0x800401F3 - CO_E_CLASSSTRING - Invalid class string" So the class string is still invalid. You could try OLEViewer to check what is installed on your computer. OLEViewer can be downloaded from Microsoft if needed. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
vaish Posted November 7, 2012 Author Share Posted November 7, 2012 But, I have installed iMacros browser in my system,,, why OLE Viewer??? Link to comment Share on other sites More sharing options...
water Posted November 7, 2012 Share Posted November 7, 2012 OLEViewer shows which COM objects are installed on the machine, their names, methods and properties. So you can check if the necessary COM object for iMacros is installed and what is its name. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki 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