|
-
September 10th, 2010, 10:34 AM
#16
Re: microsoft ui automation doubt
 Originally Posted by humptydumpty
I am having a application with Grid Control . Now i am implementing Microsoft UI automation on this .So that from UI spy++ i can check all the information of grid control cells . And had a test Application at client side in which i had client side functionality .So if i Run my Client app with the help of my app i can get and set cells value of grid control .So i have to expose grid cell to outer world for that i have to write my provider Api . Upto now i had done some small stuff through which i am able to get row and column count handle of my grid control etc . But i wann perform operation on cell .If you want more information please let me know.
Thanks
So you are doing 2) above?
-
September 10th, 2010, 01:29 PM
#17
Re: microsoft ui automation doubt
Yes. And i had made some progress too . But still a lots of problem are there . Will appreciate if you can help me to resolve this problem.Even we can take scneatrio of a List control with report Mode for example purpose .So any idea
Thanks
Last edited by humptydumpty; September 10th, 2010 at 03:46 PM.
-
September 13th, 2010, 11:48 AM
#18
Re: microsoft ui automation doubt
-
September 13th, 2010, 12:30 PM
#19
Re: microsoft ui automation doubt
There are examples for writing a provider in the active accessibility 2.0 sdk. You'll need to download it and check it out. Also, check out the active accessibility 2.0 tools. There's a tool called AccExplorer32 that you can use to verify that the grid nodes show up. You might want to contact Roque Software and find out if they have an AA aware grid. Usually the 3rd party vendor implements AA (for example, MS implements it in all of their controls).
Search bing or google for "active accessibility 2.0 sdk provider sample".
Here's a promising article.
http://www.code-magazine.com/article...printmode=true
-
September 13th, 2010, 12:57 PM
#20
Re: microsoft ui automation doubt
 Originally Posted by Arjay
There are examples for writing a provider in the active accessibility 2.0 sdk. You'll need to download it and check it out. Also, check out the active accessibility 2.0 tools. There's a tool called AccExplorer32 that you can use to verify that the grid nodes show up. You might want to contact Roque Software and find out if they have an AA aware grid. Usually the 3rd party vendor implements AA (for example, MS implements it in all of their controls).
Search bing or google for "active accessibility 2.0 sdk provider sample".
Here's a promising article.
http://www.code-magazine.com/article...printmode=true
Hi Thanks for your reply. Actually i already had gone through that .And regarding control had written my own class which basically exposes all the facility of grid control to the outer work so from control Side i am fine . My Problem is with Microsoft Ui api as there is no such straight method or sample they had given through which you can understand the stuff .I am pretty sure once i am done with this stuff i would love to write a article on this so no one else suffer from all of this stuff.
Thanks
-
September 13th, 2010, 03:40 PM
#21
Re: microsoft ui automation doubt
I'm sure that for C++ you need to use Active Accessibility and not Microsoft UI. The AA sdk includes automation provider samples.
-
September 13th, 2010, 04:00 PM
#22
Re: microsoft ui automation doubt
 Originally Posted by Arjay
I'm sure that for C++ you need to use Active Accessibility and not Microsoft UI. The AA sdk includes automation provider samples.
We can use C++ with Microsoft UI am pretty sure about it .Even platform SDK include a List box sample too for Microsoft UI automation So by that atleast i got some idea but confusion is how to proceed with a Grid control . It Makes me confused different interfaces but not a single place where actually they told that this interface you have to use by this way .They simply mention it uses IGridItemProvider But that interface contain some method .How to use those method they never mention anything like that . So little bit confusion .I am almost done only if i get some idea i am able to finish it but that 1 hour drives me crazy this time . And not a single example or tutorial tells how you can proceed with such type of control. Basically Even i consider a List Control with report Mode then how to traverse it's child .because GridProvider and GridItemProvider both contain this method so Seems one for List Control item and one for sub item but how to defferentiate all of those stuff.
Here is Something may be you would like to have a look
http://tune-up-pc.com/blog/?p=6001
And one more thing why most of the example are on C# and WPF .Is there some problem with using automation with C++
Thanks
Last edited by humptydumpty; September 13th, 2010 at 04:04 PM.
-
September 13th, 2010, 04:52 PM
#23
Re: microsoft ui automation doubt
 Originally Posted by humptydumpty
And one more thing why most of the example are on C# and WPF .Is there some problem with using automation with C++
What I'm trying to tell you that as far as I know, UI automation isn't available for non-managed code. This is why all the examples you see are in C# and/or WPF.
If you want to expose your native C++ app as a 'UI automation' aware app, you need to use the Active Accessibility 2.0 sdk that I pointed you to. Download this sdk (not the UI Automation sdk) and look through the provider samples.
Hopefully this it is clear that you need to use the AA 2.0 sdk for native C++ applications - if not then I don't know what else to say.
-
September 14th, 2010, 07:44 AM
#24
Re: microsoft ui automation doubt
Thanks for your Reply . Windows Software Development Kit (SDK) contain example of UI automation with List Item .I had tried that and that sample give me some idea .But still not fully understand the stuff .Anyway thankx for your help and your time.And UI automation is available for C++ .This i am pretty sure .
Thanks
-
September 14th, 2010, 09:48 AM
#25
Re: microsoft ui automation doubt
 Originally Posted by humptydumpty
Thanks for your Reply . Windows Software Development Kit (SDK) contain example of UI automation with List Item .I had tried that and that sample give me some idea .But still not fully understand the stuff .Anyway thankx for your help and your time.And UI automation is available for C++ .This i am pretty sure .
Thanks
That's great, but since you have yet to find a native C++ provider sample or to get one working, why not use the Active Accessibility sdk?
-
September 14th, 2010, 12:17 PM
#26
Re: microsoft ui automation doubt
Tat's what my requirement and i have to do that I am able to finish this by using other automation stuff .But i have to use MS ui this time. And a small confusion when you are saying Active Accessibility sdk do u mean by MASA or something else because even in your last post the link provided by you is using MS UI automation .I think we both are talking same stuff. Anyway if you refer your old post and you are talking regarding same so in my case i am also using same interfaces like IRawElementProviderSimple etc .But in that case also you have to dig a lot. I have a sample app in which i am doing all of the stuff .If you want to have a look app i can mail it to you. See theoritical i know how to do this . But i am little bit confused at the time when i have to expose microsoft interfaces . like when we are using GridItemControlType what is the GUID associated with it, is it DataItem_Control_GUID Or DocumentItem control GUID .As you can see in case of ListItem they have proper GUID for ListBox and ListItem second here you have to write two class for Grid Control and GridItem . So how navigate method will follow in this case in both of the class .Because now your calculation is on the basis of Row and Column.Third Item class they have some method like How to know which method actually wants what type of thing .As not pretty clear .So that's why i am having problem else rest is fine.
Thanks
Last edited by humptydumpty; September 14th, 2010 at 12:20 PM.
-
September 14th, 2010, 01:28 PM
#27
Re: microsoft ui automation doubt
The best thing you can do is dig up all the (MSAA and UI automation) C++ samples from the sdks and work through them.
Even though you need to implement this in UI automation, I'd suggest you start by implementing it with Active Accessibility from the provider samples in the MSAA 2.0 sdk. Once you understand that approach, move it to UI automation.
-
September 16th, 2010, 10:11 AM
#28
Re: microsoft ui automation doubt
 Originally Posted by Arjay
The best thing you can do is dig up all the (MSAA and UI automation) C++ samples from the sdks and work through them.
Even though you need to implement this in UI automation, I'd suggest you start by implementing it with Active Accessibility from the provider samples in the MSAA 2.0 sdk. Once you understand that approach, move it to UI automation.
Thanks Arjay for your time and effort. As i am already with MSUI automation and i got a lot of idea basically how it is working . Yes that is true that couple of places i am not sure but still i am trying to learn it fast as possible because if i am going to start wid MSAA it will increase the time which i can't effort at this time .As i have to finish this stuff in one week . and def i will finish this stuff once i am done i will post a detailed article on UI automation .
Thanks
-
September 22nd, 2010, 01:51 PM
#29
Re: microsoft ui automation doubt
Atlast I am done with all. So i got full understanding of MSUI .Ty everyone for your help .Very soon i will update this thread with code and sample.
-
March 25th, 2015, 01:05 AM
#30
Re: microsoft ui automation doubt
 Originally Posted by humptydumpty
Atlast I am done with all. So i got full understanding of MSUI .Ty everyone for your help .Very soon i will update this thread with code and sample.
Hi
Looking from your posts it seems your requirement was just the same as the issue I am facing.
I have automated for a number of controls including Microsoft standard grids ,but the Stingray grid is a different beast altogether.
Can you please guide me what you did for automating the Stingray grid ?
Hoping for a response from you.
Thank you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|