-
microsoft ui automation doubt
Hello All,
I had just Started working on Microsoft UI automation .It's pretty confusing to me as such there is no article and tutorial for doing stuff in C++.I learned Couple of things .SO at this time i am able to perform automation like button control etc. But now i have a grid Control which contain list control combo box check box etc and i have to perform automation on this and i have no idea how to proceed i will appreciate if anyone can help me to resolve this problem.
Thanks
-
Re: microsoft ui automation doubt
Which " Microsoft UI automation" do you mean?
if it is this one then you should choose another (managed C++) Forum...
-
Re: microsoft ui automation doubt
Yes you are abs right .I am looking for microsoft UI automation for C++ . Not for C# or WPF etc
Thanks
-
Re: microsoft ui automation doubt
C UI is different from C#UI , one is harder than the other, both UI though.
-
Re: microsoft ui automation doubt
Quote:
Originally Posted by
ThachQuanVy
C UI is different from C#UI , one is harder than the other, both UI though.
I know that i am looking for someone who can help me to proceed with this and help me to understand the stuff so that i can finish this UI stuff.
Thanks
-
Re: microsoft ui automation doubt
Hello anyone .Seems no one had ever tried this.
Thanks
-
Re: microsoft ui automation doubt
Quote:
Originally Posted by
humptydumpty
Hello anyone .Seems no one had ever tried this.
... just because it has nothing to do with a native VC++ :rolleyes:
-
Re: microsoft ui automation doubt
Okay So i am gonna move it in a win32 Api forum .Hope that will be a right place for this.
Thanks
-
Re: microsoft ui automation doubt
If this has anything to do with .NET, then you need to check with a Managed C++ or C++/CLI forum.
-
Re: microsoft ui automation doubt
Quote:
SO at this time i am able to perform automation like button control etc. But now i have a grid Control which contain list control combo box check box etc and i have to perform automation on this and i have no idea how to proceed
Before making conclusions about if anybody 'had ever tried this' please explain clearly and unambiguously what your problem is. 'No idea how to proceed' doesn't work here, as well as in any other forum.
Besides you have to be careful with 'automation' word, as it has very special meaning in Windows OLE/COM world. As well as UI automation.
-
Re: microsoft ui automation doubt
Quote:
Originally Posted by
Igor Vartanov
Before making conclusions about if anybody 'had ever tried this' please explain clearly and unambiguously what your problem is. 'No idea how to proceed' doesn't work here, as well as in any other forum.
Besides you have to be careful with 'automation' word, as it has
very special meaning in Windows OLE/COM world. As well as
UI automation.
Thanks for your ans. As my question it self tells that its a microsoft UI automation q .Don't know what else to explain here .My question is i had a grid control and i want to perform MS UI automation on grid control .How to do that .I have basic idea like i have to use IGridProvide and IGridItemProvider interface with IValueProvider . I had my own class i think i am almost done apart from 4 function.
1)
GetEmbeddedFragmentRoots () .because my grid control can have list control combobox checkbox etc inside it so what i have to retuen here a list or something else.
2) Navigate Function in both gridProvider and GridItemProvider class
3) get_ContainingGrid() of IGridItemProvider.
4)regarding Event .
Thanks
In last I am using C++ .Nothing else.
-
Re: microsoft ui automation doubt
Quote:
My question is i had a grid control and i want to perform MS UI automation on grid control .How to do that
First of all, what kind of grid you have to work with? There's no such standard or common control in Windows. Grid OCX widely used in pre-.NET VBs or .NET grid, which one is your case?
-
Re: microsoft ui automation doubt
Quote:
Originally Posted by
Igor Vartanov
First of all, what kind of grid you have to work with? There's no such standard or common control in Windows. Grid OCX widely used in pre-.NET VBs or .NET grid, which one is your case?
Hi Thanks for your reply .I am using stringrey Rogue Wave Software stingray grid and in my case everything in pure C++ .Had implemented my Class for exposing grid functionality . And i had a dummy app it works partially through which i am able to get Row count and column count in my UI Spy++. If you want i can mail my sample app to you .
Thanks
-
Re: microsoft ui automation doubt
What are you trying to do?
1) Are you trying to manipulate an app using Active Accessibility (i.e. UI automation)? For example, I have an app that I need to test. I start up the app and use AA to automatically manipulate the app - click on buttons, select grid items, read values, etc.
2) Are you trying to implement UI automation so an app is Active Accessibility enabled?
-
Re: microsoft ui automation doubt
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
-
Re: microsoft ui automation doubt
Quote:
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?
-
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
-
Re: microsoft ui automation doubt
-
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
-
Re: microsoft ui automation doubt
Quote:
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
-
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.
-
Re: microsoft ui automation doubt
Quote:
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
-
Re: microsoft ui automation doubt
Quote:
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.
-
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
-
Re: microsoft ui automation doubt
Quote:
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?
-
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
-
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.
-
Re: microsoft ui automation doubt
Quote:
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
-
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.
-
Re: microsoft ui automation doubt
Quote:
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.