Jump to content
Sign in to follow this  
Vitaliy4us

How to create an object?

Recommended Posts

Vitaliy4us

Please explain me how to create an object in AutoIt. I try to create one for MS Word in this way: $oObject1 = ObjGet("", "Word.Application") and the object is created successfully. Also this approach is OK for Excell. But if I try $oObject1 = ObjGet("", "Calc.Application") for calculator, the object is not created. What is the reason?

Share this post


Link to post
Share on other sites
water

Vitaliy4us,

Welcome to Autoit and the forum!

Please read the forum rules and the FAQ. You will see that double posting is not permitted here. Please stick with one thread.

You can't access all applications this way.

Do you have a need to automate Calc or is it out of curiosity?


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
Vitaliy4us

Sorry for double posting. I just was not sure which one of the possible threads could be used for this aim. As for the my request, I want to know if I can use OLE/COM model for testing my application. Befor this time I used Autoit for this aim but never used objects in my scripts. The application has a lot of different controls and I hope using object model could make my tests more powerfull. I tried to create an object linked to my application but I could not make it. So I tried the same with calculator and was failed as well. Unfortunatelly Autoit help contains examples for the Excell application only. Is there any information containing examples for other applications?

Share this post


Link to post
Share on other sites
water

You either need the Microsoft OLEViewer or the tool to get an overview of the installed COM libraries.


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
Vitaliy4us

Yes I have Microsoft OLEViewer and try to find out which object could be used, but it looks very confusing. is it something like object browser in Test Complete?

Share this post


Link to post
Share on other sites
water

From what I've read here I would say: Yes.


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
Vitaliy4us

But this is great. It gives a lot of possibilities. Unfortunatelly I could not find a good manual for Microsoft OLEViewer and I have never used TLI. The information concerning this tool in Autoit help is not clear enough. Could you advise me some good materials to become more familar with any of them - Microsoft OLEViewer or TLI?

Share this post


Link to post
Share on other sites
water

Unfortunately I have never worked with one of this tools myself.

But I'm sure you will find something suitable with Google's help.


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  

×