[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

What is the COM interface for ruby?

Just Another Victim of the Ambient Morality

4/18/2006 9:16:00 PM

This may sound like a dumb question but please bear with me as I barely
know what I'm asking...

Surely, there is a library that allows a ruby script to interface with
COM objects. What is this library? I would have simply done a search,
either on the 'net or on usenet (groups.google.com), but it's hard to do a
search for "COM" without getting too many false positives...
Thank you!



6 Answers

Daniel Berger

4/18/2006 9:24:00 PM

0


Just Another Victim of the Ambient Morality wrote:
> This may sound like a dumb question but please bear with me as I barely
> know what I'm asking...
>
> Surely, there is a library that allows a ruby script to interface with
> COM objects. What is this library? I would have simply done a search,
> either on the 'net or on usenet (groups.google.com), but it's hard to do a
> search for "COM" without getting too many false positives...
> Thank you!

win32ole

Regards,

Dan

greg.rb

4/18/2006 10:07:00 PM

0

here is a good link if you want to knock around excel:
http://www.rubygarden.com/ruby/ruby?action=browse&id=Scri...

Just Another Victim of the Ambient Morality

4/18/2006 11:03:00 PM

0

Thank you, Daniel, for your quick response. It was your post that I got
first and it helped me make some progress!


"greg.rb" <ghalsey@yahoo.com> wrote in message
news:1145398007.474309.47170@i40g2000cwc.googlegroups.com...
> here is a good link if you want to knock around excel:
> http://www.rubygarden.com/ruby/ruby?action=browse&id=Scri...

Since you seem eager to discuss using win32ole, let me ask you a
question. What I'm actually trying to do is write some iTunes scripts in
(the wonderful language that is) Ruby and I'm having trouble comparing
Apple's documentation with what I have currently figured out about win32ole.
A supposed method of the iTunes COM interface is PlayerPosition(long)
but there's another method, PlayerPosition(long*), with exactly the same
name but a different (and return) parameter. How do I invoke either of
these?
I am able to call methods like Play() just fine, perhaps because they
take no parameters. In fact, I'm surprised that I'm able to do this since
printing the list of methods of WIN32OLE doesn't reveal methods like Play().
I am assuming that some exception handling has been implemented (or
overridden) by the class to probe the COM interface for the named method
but, again, I don't really know what's going on or even what I'm doing.
Some insight into this would be helpful and greatly appreciated!
Thank you...



M?ta-MCI \(MVP\)

4/22/2006 7:16:00 AM

0

Hello!

*sorry for my bad 'BabelFished' english*

I produced a COM-server which makes it possible to call, publicly, of the
functions and the Ruby methods.
But:
- it is experimental,
- the COM-server is produced in Python,
- the call of Ruby uses active-scripting (ActiveRuby),
- the COM-server being dynamic, it makes it possible to apply a Ruby method
to a Python object. That is one more, compared to simple ActiveScripting
- afflicted, I tested only with Object-PAL and Python (and very small
test/call from Excel/VBA)
- that is now integrated in a larger project
- this message was translated with BabelFish.
- all comments, in the code, are in french
- I will show this realization at the Paradox-Convention, in Eindhoven, at
the end of May.

Lastly, I am complètre overflowed of work

@-salutations
--
Michel Claveau


Akins of that Ilk

4/10/2011 12:34:00 AM

0

On Apr 9, 6:58 pm, Fred J. McCall <fjmcc...@gmail.com> wrote:
> Akins of that Ilk <the_akins_of_ak...@yahoo.com> wrote:
>
>
>
> >No, Malcolm, unlike you and your gay friends, I have had relationships
> >with numerous members of the female gender.
>
> And thus we see the source of much of Akins' knowledge; sluts and
> whores.  This no doubt explain why he thinks the way to make a hormone
> is to whip her with his belt...
>
> --
> "But if this ever changing world in which we live in
>         Makes you give in and cry...
>  Say live and let die."
>                            -- Paul McCartney & Wings

I see you are quite adept at the "art" of the low-brow pun, eh Fred?

Fred J. McCall

4/10/2011 3:40:00 AM

0

Akins of that Ilk <the_akins_of_akins@yahoo.com> wrote:

>On Apr 9, 6:35?pm, Fred J. McCall <fjmcc...@gmail.com> wrote:
>> Akins of that Ilk <the_akins_of_ak...@yahoo.com> wrote:
>>
>> >On Apr 9, 12:57 pm, Fred J. McCall <fjmcc...@gmail.com> wrote:
>> >> Akins of that Ilk <the_akins_of_ak...@yahoo.com> wrote:
>>
>> >> >On Apr 9, 12:36 pm, Fred J. McCall <fjmcc...@gmail.com> wrote:
>> >> >> Akins of that Ilk <the_akins_of_ak...@yahoo.com> wrote:
>>
>> >> >> >Why pussy-foot around like you sissy liberals? I believe in calling a
>> >> >> >spade a spade. Tell it like it is. The female personality is a
>> >> >> >constant whirlwind of hormone-induced emotional disharmony.
>>
>> >> >> While, as we all know, men don't have any hormones at all.
>>
>> >> >Not the sort that regularly cause them to burst into tears at the drop
>> >> >of a hat, or that make the go on impulsive spending sprees for high-
>> >> >heeled shoes and designer handbags, or that cause them to have binge-
>> >> >type cravings for sweets, or cause them to become bewildered while
>> >> >driving in traffic.....
>>
>> >> Poor, stupid Akins. And so we see that your knowledge of women is
>> >> only surpassed by your racial tolerance.
>>
>> >> Women don't have those hormones, either (there's a 'buy shoes'
>> >> hormone?). And if they did, none of those sound particularly
>> >> dangerous as the national level.
>>
>> >> Meanwhile, men have hormones that make them become aggressive and get
>> >> into fights. Given the choice between a President with 'hormones'
>> >> that cause eating chocolate and a President with 'hormones' that cause
>> >> eating Czechoslovakia, I think I know which one sane people ought to
>> >> choose...
>>
>> >My knowelge of women comes from first hand experience, not just from
>> >theory as in your case, Fred.
>>
>> You want to know how to make a hormone, Akins?
>>
>> Ask your wife what I did during my last visit.
>
>During your last visit to the psychiatrist.....
>

So you know I'm taking your wife to the psychiatrist to try to help
her recover from her exposure to the mentally noxious substance that
is you? Good. That's one less thing to hide, then...

--
"Ordinarily he is insane. But he has lucid moments when he is
only stupid."
-- Heinrich Heine