Sign in to follow this  
Followers 0
notsure

General ObjCreate question

3 posts in this topic

Hello and welcome in my topic.

I have a question about the ObjCreate command.

How can u possibly know which functions it contains?

Let me make myself more clear by giving examples, look;

$oShell = ObjCreate("shell.application")
$oShellWindows=$oShell.windows

$outlook = ObjCreate("outlook.application")
;if you manipulate some code, you can do this:

$item.unread = true

As you can see you can give a function to a string like make the mail unread=true.

Also shellapplication can see its "windows". But how do you know which functions are possible behind the DOT? like ".windows" or ".unread"...

If i would do this;

$lol = ObjCreate("MyLolApplication.application")
$lol.???

Where is defined which "function" or pointer i can use behind the dot?

I hope you get my question and any input is appreciated.

Share this post


Link to post
Share on other sites



There is no easy way to query an object get a list of objects and properties although it is possible.

The best way is to search the web for the documentation if there is any.

A search outlook object model will get you all you need for MS Outlook

A search word object model will get you all you need for MS Word

similar searches should find what you need for most COM objects. Be aware however that some COM objects have no publicly available documentation as their developers did not intend them to be used externally.


"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook

Share this post


Link to post
Share on other sites

Hello and welcome in my topic.

I have a question about the ObjCreate command.

How can u possibly know which functions it contains?

Let me make myself more clear by giving examples, look;

$oShell = ObjCreate("shell.application")
$oShellWindows=$oShell.windows

$outlook = ObjCreate("outlook.application")
;if you manipulate some code, you can do this:

$item.unread = true

As you can see you can give a function to a string like make the mail unread=true.

Also shellapplication can see its "windows". But how do you know which functions are possible behind the DOT? like ".windows" or ".unread"...

If i would do this;

$lol = ObjCreate("MyLolApplication.application")
$lol.???

Where is defined which "function" or pointer i can use behind the dot?

I hope you get my question and any input is appreciated.

the com/object viewer mentioned in the COM help file also is a great assett in locating functions for com objects that autoit can support. Simply load up the viewer, find the one you want, and look at the interfaces, pretty easy to read the infrmation. Check the helpfile for that. But simply searching, as the previous poster stated helps greatly as well.

-_-------__--_-_-____---_-_--_-__-__-_ ^^€ñ†®øÞÿ ë×阮§ wï†høµ† ƒë@®, wï†høµ† †ïmë, @ñd wï†høµ† @ †ïmïdï†ÿ ƒø® !ïƒë. €×阮 ñø†, bµ† ïñ§†ë@d wï†hïñ, ñ@ÿ, †h®øµghøµ† †hë 맧ëñ§ë øƒ !ïƒë.

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  
Followers 0