Forum: Ruby win32ole questions

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Fe57662c550fb3cce44c398ddf2dd706?d=identicon&s=25 itsme213 (Guest)
on 2005-11-15 20:34
(Received via mailing list)
Starting without any Powerpoint or Word tasks running: after I do:

  p1 = WIN32OLE.new "Powerpoint.Application"
  p2 = WIN32OLE.new "Powerpoint.Application"

  w1 = WIN32OLE.new "Word.Application"
  w2 = WIN32OLE.new "Word.Application"

In Windows Task Manager I now see:
  1 Powerpoint task
  2 Word tasks

Why the difference?

Also, what is the best way to script non-COM applications on windows
e.g. by
scripting their UI events?

Thanks!
E1d641bfe4071a5413bac781f06d3fd1?d=identicon&s=25 Sean O'halpin (sean)
on 2005-11-15 22:38
(Received via mailing list)
On 11/15/05, itsme213 <itsme213@hotmail.com> wrote:
>  2 Word tasks
>
> Why the difference?

PowerPoint allows only a single instance to be running at any one time.
Word allows multiple instances. Simple as that.

> Also, what is the best way to script non-COM applications on windows e.g. by
> scripting their UI events?

AutoIt (http://www.autoitscript.com/autoit3/) is pretty good for that
kind of thing (and it's free :)

Regards,

Sean
D4f0d34888d31cab636eac9287561a1e?d=identicon&s=25 enleverlesO.OmcO (Guest)
on 2005-11-15 23:35
(Received via mailing list)
Hi!

To see, in word (options), "fenêtres dans la barre des tâches" (in french) ;
in english, it is, perhaps, "windows in taskbar"

@-salutations

Michel Claveau
This topic is locked and can not be replied to.