java.awt.Robot functionality in Ruby?

L

ljr2600

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.
 
C

Christophe Grandsire

En r=E9ponse =E0 (e-mail address removed) :
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.
=20
Firstly, is there any centralized documentation for Ruby?
=20

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

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

I'm sorry I can't answer this one, as I just don't know.
--=20
Christophe Grandsire.

http://rainbow.conlang.free.fr

You need a straight mind to invent a twisted conlang.
 
D

dave.burt

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
http://www.rubygarden.org/ruby?AutoIt_For_Windows

Or visit AutoIt:
http://www.autoitscript.com/autoit3/

Cheers,
Dave
 
P

Peter Burns

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'.=20
Then just 'fxri' to run it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top