Search found 7 matches

by ChrisC
Fri Oct 12, 2007 6:30 pm
Forum: Automation API
Topic: DoDefaultAction and Modal Dialog
Replies: 1
Views: 3454

DoDefaultAction and Modal Dialog

I'm trying to automate a modal dialog that opens a file. I've tried doing this using the following code: public void FileOpen_Menu(String fileName, Boolean open) { Element item = mainMenu.Element.FindChild(Role.MenuItem, "File Open"); if (item != null && item.State != State.Unavailable) { item.DoDef...
by ChrisC
Fri Oct 05, 2007 3:20 pm
Forum: Automation API
Topic: Unable to select submenu items
Replies: 11
Views: 26735

The solutions you provided solved our problem.

I can't thank you enough for your great support!

Chris
by ChrisC
Thu Oct 04, 2007 4:22 pm
Forum: Automation API
Topic: Unable to select submenu items
Replies: 11
Views: 26735

I tried your suggestion and the result was a little better, but still not right. I used the code you included in your previous post. The "File" menu item is clicked, but then the "Close" submenu item is clicked. That is the third item in the submenu, and "New" is the first item. I removed the shortc...
by ChrisC
Wed Oct 03, 2007 4:17 pm
Forum: Automation API
Topic: Unable to select submenu items
Replies: 11
Views: 26735

I have the screen shot of RanorexSpy. Is there a way to upload an image to this forum?

Thanks in advance for your help.

Chris
by ChrisC
Wed Oct 03, 2007 12:19 am
Forum: Automation API
Topic: Unable to select submenu items
Replies: 11
Views: 26735

I recorded the click "File", "New" and replayed it. The mouse arrow clicked the "File" menu item. After that, the mouse arrow moved to the top-left corner of the screen (not my application). Here is the C# code generated by the recording: //-----------------------------------------------------------...
by ChrisC
Tue Oct 02, 2007 6:25 pm
Forum: Automation API
Topic: Unable to select submenu items
Replies: 11
Views: 26735

Thanks for your quick reply. Our submenu item does have a shortcut (Ctrl+N). The menu bar is not derived from a Windows Control. The mainMenu is the following Syncfusion class: http://www2.syncfusion.com/library/classref/Syncfusion.Windows.Forms.Tools.XPMenus.Bar.html The top level items (File, Edit...
by ChrisC
Tue Oct 02, 2007 4:51 pm
Forum: Automation API
Topic: Unable to select submenu items
Replies: 11
Views: 26735

Unable to select submenu items

We are currently evaluating Ranorex using the free trial version. I am trying to select submenu items (e.g. File->New), and have not been successful. I can successfully dump the menu tree as shown below: Submenu(1)=File Item(1)=New Item(2)=Open... Item(3)=Close Item(4)=Save Item(5)=Save As... Item(6...