pboc Posted April 13, 2007 Share Posted April 13, 2007 Yo, I'm new to WPF and AutoIt... And of course I want to automatize my GUIs. What should I do in order to find a particular WPF control like Button, Slider and so one? The major trouble is that even the "AutoIt v3 Active Window Info" doesn't give me any useful info, when I move the cursor over the WPF controls! The only solution I found is to work with MouseMouve, but this is not really future proof. Any ideas? Cheers, Pboc Link to comment Share on other sites More sharing options...
JohnBailey Posted April 13, 2007 Share Posted April 13, 2007 Have you tried COM stuff with .NET? If you do a search in the forums, you'll find lots of great stuff. For pesky buttons you can also use AnyGUI. For anygui and pesky buttons, use the client stuff he mentions.Also, I assume you are refering to http://wpf.netfx3.com/. Right? A decision is a powerful thing Link to comment Share on other sites More sharing options...
flyingboz Posted April 13, 2007 Share Posted April 13, 2007 Nothing is 'future proof'. Nn vendor will guarantee that future internal controls will be portable to future releases. It's hard enough getting vendors to have code that interoperates with their own update processes. What you have to decide is if the investment to build is worth the cost, and factor in the costs of updating automation with each upgrade decision. Reading the help file before you post... Not only will it make you look smarter, it will make you smarter. Link to comment Share on other sites More sharing options...
pboc Posted April 16, 2007 Author Share Posted April 16, 2007 Thank you for the reply,Indeed I refer to http://wpf.netfx3.com/ (WPF).I'm still stuck to use AutoIt together with WPF. With AnyGUI, I could get "handle" to control... But I get always the same handle, too bad.e.g. _GuiTarget ("WPF Photo Viewer", "", "", "ZoomSlider") give the same result as _GuiTarget ("WPF Photo Viewer", "", "", "ChangeButton").I'll learn a bit more WPF. And if I found a trick. I'll let you know! Link to comment Share on other sites More sharing options...
JohnBailey Posted April 16, 2007 Share Posted April 16, 2007 flyingboz, good comment and explanation at that pboc, sounds good You might want to try using the client cors with AnyGui. However, doing COM with .NET would (I think) be a better way to go. MS has some good documentation and there are a few threads (if not many threads) in reference to .NET. A decision is a powerful thing Link to comment Share on other sites More sharing options...
quaizywabbit Posted April 16, 2007 Share Posted April 16, 2007 try using CLIENT coords for the last parameter of _GuiTarget(), unless the control you refer to isn't in the same location each time you run the app...... click my signature to see an example of what i'm talking about....and for the latest version of ANYGUI (v2.8 now...) [u]Do more with pre-existing apps![/u]ANYGUIv2.8 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now