[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

what can you automate with Ruby?

Chris Finch

9/7/2006 3:58:00 PM

Hi all,
I'm a newbie - please have patience.

I am not sure if anyone uses Ruby as an automation tool - I think it
would be a cool thing to do.

I have heard of the WIN32OLE extension - it sounds cool - does anyone
use this and why?

I was wondering if this automation only applies to these Windows
applications or is there any more you can control with a Ruby program?

I use the graphing application Origin - could I use Ruby to automate,
i.e. put data in and plot graphs.

Thanks in advance,

Chris

--
Posted via http://www.ruby-....

10 Answers

Paul Lutus

9/7/2006 4:06:00 PM

0

Chris Finch wrote:

> Hi all,
> I'm a newbie - please have patience.
>
> I am not sure if anyone uses Ruby as an automation tool - I think it
> would be a cool thing to do.
>
> I have heard of the WIN32OLE extension - it sounds cool - does anyone
> use this and why?
>
> I was wondering if this automation only applies to these Windows
> applications or is there any more you can control with a Ruby program?
>
> I use the graphing application Origin - could I use Ruby to automate,
> i.e. put data in and plot graphs.

Let me put it this way. If an automation facility exists that allows the
behavior of applications to be orchestrated by software, and if the
facility is reasonably flexible, then Ruby will be able to perform the
automations.

--
Paul Lutus
http://www.ara...

Jano Svitok

9/7/2006 4:15:00 PM

0

On 9/7/06, Chris Finch <christopher.finch@nuth.nhs.uk> wrote:
> Hi all,
> I'm a newbie - please have patience.
>
> I am not sure if anyone uses Ruby as an automation tool - I think it
> would be a cool thing to do.
>
> I have heard of the WIN32OLE extension - it sounds cool - does anyone
> use this and why?
>
> I was wondering if this automation only applies to these Windows
> applications or is there any more you can control with a Ruby program?
>
> I use the graphing application Origin - could I use Ruby to automate,
> i.e. put data in and plot graphs.
>
> Thanks in advance,
>
> Chris

It depends on what you want to automate. Ruby can do (almost) anything
any other language can - on windows that means COM, commandlines,
WIN32API, registers, etc.
You can even automate GUIs via AutoIt .dll/COM interface, although in
most cases pure AutoIt is easier.

There is watir package to control/automate the browser if I've
understood it correctly.

On unix, the possibilities are similar, so the main question is, what
means/protocol/whatever you need to use to automate your target?

Chris Finch

9/7/2006 4:28:00 PM

0

> If an automation facility exists

Is there a standard way to find out if an application enables
automation? or can you suggest a way?

> if the
> facility is reasonably flexible

Could you expand upon this please?

Thankyou
Chris


--
Posted via http://www.ruby-....

James Calivar

9/7/2006 4:43:00 PM

0

Hi Chris,

Coincidentally, I am also a Ruby Newbie, and just found out about
WIN32OLE. So far, the documentation I've found is very spare. One
trick I did learn in combing through the web was to use your system to
print out the methods available for the various applications:

require 'win32ole'

# Win32OLE Variables
excel = WIN32OLE.new('Excel.Application')
word = WIN32OLE.new('Word.Application')

puts excel.methods
puts "\n\n"
puts excel.ole_methods

puts word.methods
puts "\n\n"
puts word.ole_methods
puts "\n\n"
puts word.Documents.ole_methods

This gave me at least a start. You might also want to look at the help
file that is available on Office Automation at
http://support.microsoft.com/....

If anyone else has any information on Office Automation, and
specifically how it fits into Win32OLE, I'd really appreciate it - what
I'd really like to have is a "canonical" list of all methods for each
available Office module. But I haven't found anything close to that
yet.

James


Chris Finch wrote:
> Hi all,
> I'm a newbie - please have patience.
>
> I am not sure if anyone uses Ruby as an automation tool - I think it
> would be a cool thing to do.
>
> I have heard of the WIN32OLE extension - it sounds cool - does anyone
> use this and why?
>
> I was wondering if this automation only applies to these Windows
> applications or is there any more you can control with a Ruby program?
>
> I use the graphing application Origin - could I use Ruby to automate,
> i.e. put data in and plot graphs.
>
> Thanks in advance,
>
> Chris
>
> --
> Posted via http://www.ruby-....

Paul Lutus

9/7/2006 6:30:00 PM

0

Chris Finch wrote:

>> If an automation facility exists
>
> Is there a standard way to find out if an application enables
> automation? or can you suggest a way?
>
>> if the
>> facility is reasonably flexible
>
> Could you expand upon this please?

Okay, a decent, flexible automation facility will allow calls using
plain-text arguments. Some proprietary automation facilities require rather
baroque instructions, and a lot of very specific coding (like C-style
structures). My remark appplies to the former case.

What I am saying is Ruby code is at best platform-independent, so it
shouldn't require a native-code section in order to accomplish its goals.

--
Paul Lutus
http://www.ara...

WaIIy

6/18/2011 1:35:00 PM

0

On Sat, 18 Jun 2011 06:32:52 -0400, Buzz <buzzard99@att.net> wrote:

>On Fri, 17 Jun 2011 18:08:54 -0500, Ouroboros Rex <its@casual.com>
>wrote:
>
>>On 6/11/2011 8:18 PM, WaIIy wrote:
>>>
>>>
>>> Sarah Palin emails mostly confirm what was already known about the
>>> ex-governor
>>> By Holly Bailey
>>
>> Yes, the letter she wrote to herself "from God" confirms she's nuts.
>>We did already know that.
>
>Hardly. But, since there is a Down Syndrome child involved, it's not
>surprising that you suddenly feel emboldened.

He's still upset about the Special Olympics thing because they wouldn't
let him in.

Figaro

6/18/2011 5:58:00 PM

0

On 6/18/11 5:32 AM, Buzz wrote:
> On Fri, 17 Jun 2011 18:08:54 -0500, Ouroboros Rex<its@casual.com>
> wrote:
>
>> On 6/11/2011 8:18 PM, WaIIy wrote:
>>>
>>>
>>> Sarah Palin emails mostly confirm what was already known about the
>>> ex-governor
>>> By Holly Bailey
>>
>> Yes, the letter she wrote to herself "from God" confirms she's nuts.
>> We did already know that.
>
> Hardly. But, since there is a Down Syndrome child involved, it's not
> surprising that you suddenly feel emboldened.
>
Is that the baby she totes around like a sack of potatoes, using it as a
prop, shoving it in front of a camera at every opportunity in her never
ending quest for media attention? Now she's using daughter Piper
the same way on her One Nation traveling circus.

Ray

6/20/2011 11:55:00 PM

0

On Sat, 18 Jun 2011 12:58:09 -0500, Figaro <figaro@nevermind.com>
wrote:

>On 6/18/11 5:32 AM, Buzz wrote:
>> On Fri, 17 Jun 2011 18:08:54 -0500, Ouroboros Rex<its@casual.com>
>> wrote:
>>
>>> On 6/11/2011 8:18 PM, WaIIy wrote:
>>>>
>>>>
>>>> Sarah Palin emails mostly confirm what was already known about the
>>>> ex-governor
>>>> By Holly Bailey
>>>
>>> Yes, the letter she wrote to herself "from God" confirms she's nuts.
>>> We did already know that.
>>
>> Hardly. But, since there is a Down Syndrome child involved, it's not
>> surprising that you suddenly feel emboldened.
>>
>Is that the baby she totes around like a sack of potatoes, using it as a
>prop, shoving it in front of a camera at every opportunity in her never
>ending quest for media attention? Now she's using daughter Piper
>the same way on her One Nation traveling circus.

Just when I believe you can't get any lower you do. Unbelievable.
--
Ray
Mind over matter, if you don?t mind, it don?t matter.
(Confucius)

Figaro

6/21/2011 3:11:00 PM

0

On 6/20/11 6:55 PM, Ray wrote:
> On Sat, 18 Jun 2011 12:58:09 -0500, Figaro<figaro@nevermind.com>
> wrote:
>
>> On 6/18/11 5:32 AM, Buzz wrote:
>>> On Fri, 17 Jun 2011 18:08:54 -0500, Ouroboros Rex<its@casual.com>
>>> wrote:
>>>
>>>> On 6/11/2011 8:18 PM, WaIIy wrote:
>>>>>
>>>>>
>>>>> Sarah Palin emails mostly confirm what was already known about the
>>>>> ex-governor
>>>>> By Holly Bailey
>>>>
>>>> Yes, the letter she wrote to herself "from God" confirms she's nuts.
>>>> We did already know that.
>>>
>>> Hardly. But, since there is a Down Syndrome child involved, it's not
>>> surprising that you suddenly feel emboldened.
>>>
>> Is that the baby she totes around like a sack of potatoes, using it as a
>> prop, shoving it in front of a camera at every opportunity in her never
>> ending quest for media attention? Now she's using daughter Piper
>> the same way on her One Nation traveling circus.
>
> Just when I believe you can't get any lower you do. Unbelievable.

Who do you think you're kidding! Save that fake outrage for someone
who'll fall for it. You couldn't give a shit of Palin boiled the kid and
served him with mashed potatoes.


Ray

6/21/2011 9:36:00 PM

0

On Tue, 21 Jun 2011 10:11:23 -0500, Figaro <figaro@nevermind.com>
wrote:

>On 6/20/11 6:55 PM, Ray wrote:
>> On Sat, 18 Jun 2011 12:58:09 -0500, Figaro<figaro@nevermind.com>
>> wrote:
>>
>>> On 6/18/11 5:32 AM, Buzz wrote:
>>>> On Fri, 17 Jun 2011 18:08:54 -0500, Ouroboros Rex<its@casual.com>
>>>> wrote:
>>>>
>>>>> On 6/11/2011 8:18 PM, WaIIy wrote:
>>>>>>
>>>>>>
>>>>>> Sarah Palin emails mostly confirm what was already known about the
>>>>>> ex-governor
>>>>>> By Holly Bailey
>>>>>
>>>>> Yes, the letter she wrote to herself "from God" confirms she's nuts.
>>>>> We did already know that.
>>>>
>>>> Hardly. But, since there is a Down Syndrome child involved, it's not
>>>> surprising that you suddenly feel emboldened.
>>>>
>>> Is that the baby she totes around like a sack of potatoes, using it as a
>>> prop, shoving it in front of a camera at every opportunity in her never
>>> ending quest for media attention? Now she's using daughter Piper
>>> the same way on her One Nation traveling circus.
>>
>> Just when I believe you can't get any lower you do. Unbelievable.
>
>Who do you think you're kidding! Save that fake outrage for someone
>who'll fall for it. You couldn't give a shit of Palin boiled the kid and
>served him with mashed potatoes.
>
I never said the shit you said you sorry mother fucker. Your a class
act. You just stated what your opinion is again of her. Disgusting.
--
Ray
Mind over matter, if you don?t mind, it don?t matter.
(Confucius)