UIAutomation 0.7.4

Rating: No reviews yet
Downloads: 192
Released: Apr 24, 2012
Updated: May 4, 2012 by apetrovskiy
Dev status: Beta Help Icon

Recommended Download

Application UIAutomation 0.7.4 .NET35
application, 98K, uploaded Apr 23, 2012 - 74 downloads

Other Available Downloads

Source Code UIAutomation 0.7.4 sources
source code, 728K, uploaded Apr 23, 2012 - 16 downloads
Example UIAutomation 0.7.4 samples
example, 20K, uploaded Apr 23, 2012 - 30 downloads
Application UIAutomation 0.7.5 for Metro testing
application, 941K, uploaded Apr 27, 2012 - 49 downloads
Application experimantal builds
application, 7833K, uploaded May 4, 2012 - 23 downloads

Release Notes

This is a minor release, though one interesting cmdlet is added (in strictly experimental mode):
Wait-UIAEventRaised

This is an attempt to make easy getting events that just fired and in the same thread where the PowerShell code execution is.

The idea is as:
- get a window or get a control
- register an event (for example, invoked, structure changed, menu opened, window opened, etc)
- wait until the event fires

Technically, event handler stores data in the variables:
UIAutomation.CurrentData::LastEventSource - current or cached control that was the $src parameters of an event
UIAutomation.CurrentData::LastEventType - the string representation of an event ($e.EventId.ProgrammaticName)
UIAutomation.CurrentData::LastEventInfoAdded - the boolan flag that is set when event handler got the event
UIAutomation.CurrentData::LastEventArgs - $e

The Wait-UIAEventRaised cmdlet waits until an event that matches the parameters will be written into these variables and cleans up the LastEventInfoAdded variable. The cmdlet returns UIAutomation.CurrentData::LastEventSource, whichever state of it is (current, cached, partially cached). Otherwise, on timeout expiration it throws an exception.

see also: MenuOpenedEventAutomation03.ps1 MenuOpenedEventAutomation04.ps1


Also, there are new cmdlets (in order to fulfill missing pattern cmdlets):
Get-UIAControlTypeToggleState returning bool
Get-UIAControlTypeSelectionItemState returning bool too

Reviews for this release

No reviews yet for this release.