Forum: Ruby gui automation

E807646b96307300c22082a632ef4dca?d=identicon&s=25 Masoud Ahmadi (ecsmaah)
on 2013-09-05 23:46
Attachment: user32.rb (3 KB)

Well, I start with saying that I am new to Ruby. I would like to run a
windows application by native call to windows api. I seem to be able to
get the windows handle, but no success to get access to menu items. Will
someone tell me how far I ma from getting this code useful

The code is attached as file. this is what I get at the command prompt

c:\Ruby200-x64\bin>ruby.exe c:\Temp\ruby\Tests\user32.rb
DL is deprecated, please use Fiddle
The main window's handle is 855122.
menu handle is 0
counter is -1
The first sub menu is 0.
Menu ID is -1

D6f7969b7b88d8e6f478a8e8b6e778a5?d=identicon&s=25 Nagappan Alagappan (Guest)
on 2013-09-06 00:34
(Received via mailing list)
Hi Masoud,

You can try with Cobra [1], which supports Ruby API and you can
with menu.


[1] -
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.