=======================================
gives with Ruby 193 [between the ------------]
-----------------------------
test 200
ruby 1.9.3p429 (2013-05-15) [i386-mingw32]
Hello Ruby
Hello Ruby
hola
[Return] -> The end
-----------------------------
and with Ruby 2.0.0
-----------------------------
test 200
ruby 2.0.0p195 (2013-05-14) [x64-mingw32]
ðððððððððððàààààààààààðððð
[Return] -> The end
-----------------------------
=======================================
gives with Ruby 193 [between the ------------]
-----------------------------
test 200
ruby 1.9.3p429 (2013-05-15) [i386-mingw32]
Hello Ruby
Hello Ruby
hola
[Return] -> The end
-----------------------------
and with Ruby 2.0.0
-----------------------------
test 200
ruby 2.0.0p195 (2013-05-14) [x64-mingw32]
ðððððððððððàààààààààààðððð
[Return] -> The end
-----------------------------
The win32-api gem is not compatible with Ruby 2.0.0.
If you want to use win32-api with Ruby 2.0.0, please make an issue on Issues · cosmo0920/win32-api · GitHub
I recommend ffi instead of win32-api.
You can do the same thing with ffi like this:
Input one character with the keyboard and output on a console now works
well with FFI instead of win32/api.
I can do elementary word completion (like with an i-phone I have heard).
Using the keyboard and the mouse is the beginning of interactivity using
a computer and a language. Processing (the computer language) shows
using the mouse (or drawing a square) can be (very) easy. I shall try to
use Ruby and something like Processing simultaneously. Yet another
elementary thing to do : working with two programs. No help from MS
Windows system. But I have some ideas.
I hope I shall understand better how to use FFI than the last time I had
difficulties to resolve some problem. It seems to me there is much more
information on FFI today.
Users of Mac are smart, users of Linux are intelligent.
Add that some authors of programs or tools are esoteric (I should say
elegant, but it's easy to understand when you know what it means).
I wish there is a place to help ordinary (I don't like "dummy") users
with MS Windows. (They could be numerous).