Jump to content
Sign in to follow this  
vaish

Help.... Need "Class Name" for iMacros Application in AutoIT script(ObjGet)

Recommended Posts

vaish

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.

Share this post


Link to post
Share on other sites
water

Google is your friend. Check this site.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
vaish

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?

Share this post


Link to post
Share on other sites
water

How does your ObjGet statement look like?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
vaish

$iMacros = ObjGet("","iMacros.Application")

Script:

Share this post


Link to post
Share on other sites
water

Shouldn't it be $oMacros = ObjGet("","imacros")


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
vaish

No.... still same issue...

Share this post


Link to post
Share on other sites
water

"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 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
vaish

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

Share this post


Link to post
Share on other sites
water

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 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
vaish

But, I have installed iMacros browser in my system,,, why OLE Viewer???

Share this post


Link to post
Share on other sites
water

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 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
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
Sign in to follow this  

×