Gui automation

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

Attachments:
http://www.ruby-forum.com/attachment/8716/user32.rb

···

--
Posted via http://www.ruby-forum.com/.

Hi Masoud,

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

Thanks
Nagappan

[1] - GitHub - ldtp/cobra: Windows version of Linux Desktop Testing Project

···

On Thu, Sep 5, 2013 at 2:46 PM, Masoud Ahmadi <lists@ruby-forum.com> wrote:

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

Attachments:
http://www.ruby-forum.com/attachment/8716/user32.rb

--
Posted via http://www.ruby-forum.com/\.

--
Cross platform GUI testing
Linux Desktop (GUI Application) Testing Project -
http://ldtp.freedesktop.org
Cobra - Windows GUI Automation tool - GitHub - ldtp/cobra: Windows version of Linux Desktop Testing Project
ATOMac - Mac GUI Automation tool - GitHub - pyatom/pyatom: Python Automated Testing on Mac
http://nagappanal.blogspot.com