java.awt.Robot functionality in Ruby?

I'm a solid Java programmer, who recently came across ruby and liked
what I saw. So far, however, the lack of any centralized
API/Libraries/Classes documentation, like that for Java, has been very
frustrating.

Firstly, is there any centralized documentation for Ruby?

Secondly, and more importantly, is there an windows32 API for Ruby that
offers functionality similiar to java.awt.Robot? i.e. getPixel(),
keyPress(), etc.

En réponse à ljr2600@gmail.com :

I'm a solid Java programmer, who recently came across ruby and liked
what I saw. So far, however, the lack of any centralized
API/Libraries/Classes documentation, like that for Java, has been very
frustrating.

Firstly, is there any centralized documentation for Ruby?

ri is a documentation viewer that is shipped with Ruby itself. Just type ri SomeClass or ri SomeClass#some_method or ri SomeClass.some_method (for class methods). There are some graphical browsers too, although I don't know if there is one yet for Windows.

For a centralised place on the Internet, look no further than http://www.ruby-doc.org. Core API, Standard library, C API, it's all there, plus many links to various articles and tutorials about Ruby. The core and standard library documentation you find there is the one available for ri.

Secondly, and more importantly, is there an windows32 API for Ruby that
offers functionality similiar to java.awt.Robot? i.e. getPixel(),
keyPress(), etc.

I'm sorry I can't answer this one, as I just don't know.

···

--
Christophe Grandsire.

http://rainbow.conlang.free.fr

You need a straight mind to invent a twisted conlang.

http://www.ruby-doc.org/ is a great resource for documentation.
http://raa.ruby-lang.org/ is a great resource for applications/libraries.

-Justin

ljr2600@gmail.com wrote:

···

I'm a solid Java programmer, who recently came across ruby and liked
what I saw. So far, however, the lack of any centralized
API/Libraries/Classes documentation, like that for Java, has been very
frustrating.

Firstly, is there any centralized documentation for Ruby?

Secondly, and more importantly, is there an windows32 API for Ruby that
offers functionality similiar to java.awt.Robot? i.e. getPixel(),
keyPress(), etc.

ljr2 asked:

Secondly, and more importantly, is there
an windows32 API for Ruby that
offers functionality similiar to
java.awt.Robot? i.e. getPixel(),
keyPress(), etc.

Well done for recognizing that the tool is going to be
platform-dependent. As awt.Robot is toolkit-specific, I imagine some of
the graphical toolkits available for Ruby offer similar functionality.

AutoIt 3, though, is a tool separate from Ruby which probably covers
your needs. You can script it from Ruby via its COM interface. I've
found it useful and easy to use. See the RubyGarden entry

Or visit AutoIt:

Cheers,
Dave

The documentation sources I know about are listed here:
http://www.eng.cse.dmu.ac.uk/~hgs/ruby/#docs

        Hugh

···

On Fri, 21 Oct 2005, ljr2600@gmail.com wrote:

I'm a solid Java programmer, who recently came across ruby and liked
what I saw. So far, however, the lack of any centralized
API/Libraries/Classes documentation, like that for Java, has been very
frustrating.

Another source of libraries: http://rubyforge.org/

And I think fxri is a cross platform documentation viewer. I think it
comes installed in some ruby windows packages, but if it isn't
installed I think the installation is as easy as 'gem install fxri'.
Then just 'fxri' to run it.

···

On 10/21/05, Hugh Sasse <hgs@dmu.ac.uk> wrote:

On Fri, 21 Oct 2005, ljr2600@gmail.com wrote:

> I'm a solid Java programmer, who recently came across ruby and liked
> what I saw. So far, however, the lack of any centralized
> API/Libraries/Classes documentation, like that for Java, has been very
> frustrating.

The documentation sources I know about are listed here:
http://www.eng.cse.dmu.ac.uk/~hgs/ruby/#docs

        Hugh