« Return to Thread: Scriptom list of COM methods

RE: Scriptom list of COM methods

by Jason Smith-11 :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.
Scriptom has a wiki page that has some examples, and there are some examples in the source (speaking of the code I use to unit test Scriptom).  I think you'll have to get permissions to edit the wiki.  If you have some good examples, post to the dev mailing list about what you'd like to put up and ask for access.  We've had a few different people contribute documentation.  This stuff can be daunting if you don't come from a Microsoft background, so different perspectives are desired.
 
Thanks!
 

Jason Smith
Software Engineer

InfoTrust Group, Inc.

500 Discovery Parkway, Suite 200
Superior, CO 80027
Office 303-627-6571
Fax 303-666-6711

Email kanselmo@...

WEB www.infotrustgroup.com

This e-mail and all information included herein do not constitute a legal agreement accorded by INFOTRUST GROUP and its affiliates and subsidiaries.  All legal agreements must be formulated in writing by a legal representative of INFOTRUST GROUP. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.  If you have received this e-mail by mistake, please inform us and destroy this e-mail and any documents it might contain.  Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.  Thank you for your cooperation.


From: Martin Gilchrist [martinpg@...]
Sent: Tuesday, June 30, 2009 9:09 PM
To: user@...
Subject: Re: [groovy-user] Scriptom list of COM methods

Hi, I would add two comments: (a) the MSDN documentation is surprisingly good, once you work out how it's organized. I found http://msdn.microsoft.com/en-us/library/bb149081.aspx (and similar pages for Word and IE) usable; (b) it would be good to have some more in-depth examples of the use of ActiveX APIs and Scriptom. I'd be happy to contribute some if there is a good place for them.
 
Regards, Martin
----- Original Message -----
From: jsmith@...
To: user@...
Sent: Monday, June 29, 2009 6:47 AM
Subject: RE: [groovy-user] Scriptom list of COM methods

Sorry, that's one of the "minor" things that Microsoft left out of COM.  As far as I know, there is no way to introspect the objects (unless you know where the type library is, and you have libraries to read and interpret the type library).
 
The best approach is to use a Microsoft tool, like maybe Excel, which has VBA included.  Write a mock up of what you are trying to do and then translate to Groovy.  The object explorer in VBA is my second favorite, after the one in VB6, which is discontinued.  :-)
 

Jason Smith
Software Engineer

InfoTrust Group, Inc.

500 Discovery Parkway, Suite 200
Superior, CO 80027
Office 303-627-6571
Fax 303-666-6711

Email kanselmo@...

WEB www.infotrustgroup.com

This e-mail and all information included herein do not constitute a legal agreement accorded by INFOTRUST GROUP and its affiliates and subsidiaries.  All legal agreements must be formulated in writing by a legal representative of INFOTRUST GROUP. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.  If you have received this e-mail by mistake, please inform us and destroy this e-mail and any documents it might contain.  Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.  Thank you for your cooperation.


From: Lex Williams [lyon2003@...]
Sent: Sunday, June 28, 2009 11:59 AM
To: user@...
Subject: [groovy-user] Scriptom list of COM methods

Hi!

Is there a way I can see the COM methods of an object created with ActiveXObject? For example, if I use the :

def voice = new ActiveXObject('SAPI.SpVoice')

how can I see the methods I can call on voice? Like speak for example. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

 « Return to Thread: Scriptom list of COM methods