Sign in to follow this  
Followers 0
sudarkrao

AutoIT support for WPF and .NET 3.5 applications

14 posts in this topic

Hi,

Any one knows about AutoIT support for .NET 3.5 applications and WPF on windows based applications

Please help me

Regards,

Rama

Share this post


Link to post
Share on other sites



Hi,

Any one knows about AutoIT support for .NET 3.5 applications and WPF on windows based applications

Please help me

Regards,

Rama

If controls/windows in the application respond to native window messages, then you may be in luck. However, if I was working solely on WPF apps - and depending on the kind of automation you want to accomplish - I'd seriously consider using the UIAutomation classes in .NET first.

Just my 2 cents.

Zach...

Share this post


Link to post
Share on other sites

If controls/windows in the application respond to native window messages, then you may be in luck. However, if I was working solely on WPF apps - and depending on the kind of automation you want to accomplish - I'd seriously consider using the UIAutomation classes in .NET first.

Just my 2 cents.

Zach...

Hello,

Thanks for your valuable information

Can you please look this

If AutoIT window info tool is not able to get any of the properties from .NET application which is completely developed using WPFs, then how we can get the controls of the application ? In AutoIT window info tool ,control section is blank and window tab is showing the title and class name which is changing dyanamically each time we open the application

Awaiting for your response

Regards,

Rama

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Hello,

Thanks for your valuable information

Can you please look this

If AutoIT window info tool is not able to get any of the properties from .NET application which is completely developed using WPFs, then how we can get the controls of the application ? In AutoIT window info tool ,control section is blank and window tab is showing the title and class name which is changing dyanamically each time we open the application

Awaiting for your response

Regards,

Rama

Rama,

It depends on which technology you will use to drive the automation.

Recent versions of the Windows Platform SDK come with a UiSpy that reveals information about controls on a WinForm ( and Win32 forms for that matter as it is bridging Active Accessibility ). If your automation will be using the UiAutomation namespace in .NET 3.x, then use UiSpy for discovery and begin posting your queries in the appropriate UIAutomation forum here.

If you wish to continue to use AutoIt as a means to drive your automation, then Ranorex also provides a free GUI Spy that will reveal controls that respond to WM_GETCONTROLNAME ( and thus reveal their design-time ID ). Both the UiSpy and Ranorex spy will reveal roughly the same info that is pertinent to control IDs and their physical properties ( ie, X/Y/W/H coordinates ). Once you've obtained the control name, then you can use this AutoIt script to obtain a handle and attempt your automation. Your mileage WILL vary as I'm sure not all WPF controls respond to every native message ( perhaps they do, this is untested for me ).

Good Luck!

Zach Fisher...

Edited by zfisherdrums

Share this post


Link to post
Share on other sites

As this was one of the threads that I found when looking to embed AutoIt into a C# project that I was creating - I wanted to reply here and share the code that I've written that creates a C# AutoItHelper library class -- and has a example project that references said library, with a NotePad example call.

You can find the code and a brief intro on my blog at:

http://www.lancelarsen.com/Blog/tabid/72/E...er-Library.aspx

Regards...

...Lance Larsen

www.lancelarsen.com

Share this post


Link to post
Share on other sites

No. This thread had nothing to do with calling AutoIt from a managed perspective. This thread was about automating managed forms from an AutoIt perspective.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

richard you are cruel =]

Edited by Zohar

Share this post


Link to post
Share on other sites

I'm fine with being cruel. Could you explain why you dug this thread up?

Share this post


Link to post
Share on other sites

I was searching for info relating AutoIt and .NET :D

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

What I am more interested is: do we have any plan (at least for near future) to enrich autoIT functinalities, s.t it can support WPF applications as well? I think this is very important, as once WPF becomes the mainstream (since this is proposed by microsoft, I guess it

will get popular. --- at least more appls will be in this technology), lack of support will dramatically reduce the chance of autoIT to be keep popular...

So I strongly hope, autoIT talent team will think about this direction...

thx a lot

Edited by hobli

Share this post


Link to post
Share on other sites

No.

.Net is on the NOT-TO-DO list.

Share this post


Link to post
Share on other sites

No.

.Net is on the NOT-TO-DO list.

hehe

Share this post


Link to post
Share on other sites

Epic necromancer in work here.


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites

I'm tempted not to post in this thread again, or it will get dug up by the same user in another 5 months.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0