Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Controlling other applications functionality

0 views
Skip to first unread message

Mehdi Karamnejad

unread,
Nov 19, 2009, 3:24:54 PM11/19/09
to
How can I access an applications objects and call their functions
programmatically using ruby? for example suppose there is a button in
an application which performs a task, I want to press that button with
my ruby script, how is this done?
--
Thanks in advance
--
Posted via http://www.ruby-forum.com/.

Marnen Laibow-Koser

unread,
Nov 19, 2009, 3:30:55 PM11/19/09
to
Mehdi Karamnejad wrote:
> How can I access an applications objects and call their functions
> programmatically using ruby? for example suppose there is a button in
> an application which performs a task, I want to press that button with
> my ruby script, how is this done?
> --
> Thanks in advance

Depends largely on the nature of the receiving application. Can you
provide more detail about what you want to control?

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org

Mehdi Karamnejad

unread,
Nov 19, 2009, 3:39:35 PM11/19/09
to


Well ,there is this application called Progdvb which is used to watch
satellite channels , I want to programmatically call its record button
at a certain time and recall again to stop recording
PS: I have whole bunch of needs too, for example I want to control some
functionality of my download manager(Flashget) , could you share more
light on >>"Depends largely on the nature of the receiving application"
what do I need to consider for this process?

Marvin Gülker

unread,
Nov 20, 2009, 7:09:55 AM11/20/09
to
Mehdi Karamnejad wrote:
> PS: I have whole bunch of needs too, for example I want to control some
> functionality of my download manager(Flashget) , could you share more
> light on >>"Depends largely on the nature of the receiving application"
> what do I need to consider for this process?

What OS do you use, what's your Ruby version, do you only want to
control buttons... Things like that.

If you want a library to simulate user input (with Ruby 1.9), you may
have a look at my xdo (for Linux) and au3 (for Windows) libraries. You
can find it on RubyForge at http://rubyforge.org/projects/auto/ .

Marvin

0 new messages