Forum: Ruby gui automation

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
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

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] -
This topic is locked and can not be replied to.