Get Dynamic Actions with API

Class library usage, coding and language questions.
Cyusax
Posts: 4
Joined: Wed Jun 26, 2013 10:00 am

Get Dynamic Actions with API

Post by Cyusax » Wed Jun 26, 2013 4:18 pm

Hi,

using Spy Live i have some Dynamic Actions clicking with dx mouse on an application's element. Is it possible to obtain the same function with API ??
I'm attempting to interact with a third party control and I need those functions.

Thanks in advance.

User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: Get Dynamic Actions with API

Post by Ciege » Wed Jun 26, 2013 6:13 pm

If you can get it through Spy you can get it through the API...

What are these Dynamic Actions you are asking about?

Can you post a RanorexSpy snapshot and comments about which properties you are after?
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...

Cyusax
Posts: 4
Joined: Wed Jun 26, 2013 10:00 am

Re: Get Dynamic Actions with API

Post by Cyusax » Thu Jun 27, 2013 11:53 am

Hi Ciege,

Thanks for the reply.
Here is the snapshot of spy:
ranor.jpg
ranor.jpg (201.2 KiB) Viewed 1108 times
and here is the snapshot of third party's application:
right.jpg
right.jpg (180.5 KiB) Viewed 1108 times
Here a part of code:

Code: Select all

Control gridcontrol = @"/form[@title~'^GIACOMO\ RUVE\ -\ compassonl']/container[@caption='' and @controltypename='Panel']/container[@caption='' and @controltypename='SplitContainer']/container[@controlname='panel2']/container/container/container/container/container[@controlname='LayoutObjectEditor']/container/element/container[@controlname='Richieste']/container/container/container/container[@caption='' and @controltypename='UserControl']/container/container/container[@controlname='reportControl']";
I can hook the control but i can't invoke, for example, SelectRow. When I use spy i can invoke SelectRow and the other functions too.

Thank you in advance for any suggestion.

Cyusax
Posts: 4
Joined: Wed Jun 26, 2013 10:00 am

Re: Get Dynamic Actions with API

Post by Cyusax » Thu Jun 27, 2013 3:17 pm

Hi,
here is the spy snapshot.
ReportControl.rxsnp
(585.44 KiB) Downloaded 181 times
Thanks

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Get Dynamic Actions with API

Post by Support Team » Fri Jun 28, 2013 1:21 pm

Hello,

Thank you for your snapshot.

In general, InvokeAction should work in WinForms.
Could you please provide more information about your issue?

Is it possible to invoke other methods?
Do you get any error or warning message?

Regards,
Markus (T)
.
Image

Cyusax
Posts: 4
Joined: Wed Jun 26, 2013 10:00 am

Re: Get Dynamic Actions with API

Post by Cyusax » Fri Jun 28, 2013 2:25 pm

Thank you for reply Markus. It worked with InvokeAction.