Sign in to follow this  
Followers 0
Kidney

How to find Obj functions??

4 posts in this topic

Started looking at the Obj functions and i want to start playing around with them but im trying to figure out how to find the functions associated with the Obj that is created.

For example, in an iTunes UDF it has things like: $Library_Tracks = $iTunesApp.LibraryPlaylist.Tracks

How do i find out what properties that each obj has?? like the ".LibraryPlaylist.Tracks"

Im guessing there is some tool that can assist in finding these out? or doi need to go searching for these somewhere??

 

Thx!

Share this post


Link to post
Share on other sites



Either search the docu of the manufacturer or use an Object Browser.

IIRC there are some threads about Object Browsers on the forum.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - 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

There are different tools for that, some of which are written in AutoIt. My favorite is TYPELIB Viewer written by this girl drinking hot chocolate right now, ...uhm go figure.

 

So, what you would have to do is run something like this:

$oObj = ObjCreate("iTunes.Application") ; or whatever
$sFile = ObjName($oObj, 4) ; file with interfaces definitions

ConsoleWrite($sFile & @CRLF)
MsgBox(4096, "", $sFile)
Then find script called TLBViewer.au3 in examples forum, run it and load it with the file that you got (you can just drop the file onto the window or use "open" button). Then the script will extract all the available info about the object of your interest and display it. You can then copy text, or whatever, and save it to some file for further inspection.
1 person likes this

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

Thank you very much trancexx :)

im not really sure what that code you posted was supposed to do but it just showed the path to the .exe of iTunes.

once i used your TLBViewer.au3 i now have alot of exploring to do :)

tyty!

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