Page 1 of 1

Get Dynamic Actions with API

Posted: Wed Jun 26, 2013 4:18 pm
by Cyusax
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.

Re: Get Dynamic Actions with API

Posted: Wed Jun 26, 2013 6:13 pm
by Ciege
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?

Re: Get Dynamic Actions with API

Posted: Thu Jun 27, 2013 11:53 am
by Cyusax
Hi Ciege,

Thanks for the reply.
Here is the snapshot of spy:
ranor.jpg
and here is the snapshot of third party's application:
right.jpg
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.

Re: Get Dynamic Actions with API

Posted: Thu Jun 27, 2013 3:17 pm
by Cyusax
Hi,
here is the spy snapshot.
ReportControl.rxsnp
Thanks

Re: Get Dynamic Actions with API

Posted: Fri Jun 28, 2013 1:21 pm
by Support Team
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)

Re: Get Dynamic Actions with API

Posted: Fri Jun 28, 2013 2:25 pm
by Cyusax
Thank you for reply Markus. It worked with InvokeAction.