Forum: Ruby gui automation

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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)
Hey

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

Thanks
Masoud
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
manipulate
with menu.

Thanks
Nagappan

[1] - https://github.com/ldtp/cobra
This topic is locked and can not be replied to.