-
Notifications
You must be signed in to change notification settings - Fork 71
/
UIAutomationNotCondition.ahk
47 lines (40 loc) · 1.6 KB
/
UIAutomationNotCondition.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
class: UIAutomationNotCondition
wraps the *IUIAutomationNotCondition* interface and represents a condition that is the negative of another condition.
Authors:
- maul.esel (https://github.com/maul-esel)
License:
- *LGPL* (http://www.gnu.org/licenses/lgpl-2.1.txt)
Documentation:
- *class documentation* (http://maul-esel.github.com/COM-Classes/master/UIAutomationNotCondition)
- *msdn* (http://msdn.microsoft.com/en-us/library/windows/desktop/ee696106)
Requirements:
AutoHotkey - AHK v2 alpha
OS - Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista, Windows XP with SP3 and Platform Update for Windows Vista, Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008, Windows Server 2003 with SP2 and Platform Update for Windows Server 2008
Base classes - _CCF_Error_Handler_, Unknown, UIAutomationCondition
*/
class UIAutomationNotCondition extends UIAutomationCondition
{
/*
Field: IID
This is IID_IUIAutomationNotCondition. It is required to create an instance.
*/
static IID := "{f528b657-847b-498c-8896-d52b565407a1}"
/*
Field: ThrowOnCreation
Indicates that attempting to create an instance of this class without supplying a valid pointer should throw an exception.
*/
static ThrowOnCreation := true
/*
Method: GetChild
Retrieves the condition of which this condition is the negative.
Returns:
UIAutomationCondition child - the retrieved condition as UIAutomationCondition instance
*/
GetChild()
{
local out
this._Error(DllCall(NumGet(this.vt+03*A_PtrSize), "ptr", this.ptr, "ptr*", out))
return new UIAutomationCondition(out)
}
}