-
Notifications
You must be signed in to change notification settings - Fork 74
/
QCUIElement.h
50 lines (37 loc) · 1.17 KB
/
QCUIElement.h
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
48
49
50
//
// QCUIElement.h
// QuickCursor
//
// Created by Jesse Grosjean on 11/28/07.
// Copyright 2007 Hog Bay Software. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface QCUIElement : NSObject {
AXUIElementRef uiElementRef;
}
#pragma mark Class Methods
+ (QCUIElement *)systemWideElement;
+ (QCUIElement *)focusedElement;
#pragma mark Init
- (id)initWithAXUIElementRef:(AXUIElementRef)aUIElementRef;
#pragma mark Attributes
@property(readonly) pid_t processID;
@property(readonly) NSString *processName;
@property(readonly) QCUIElement *application;
@property(readonly) QCUIElement *menuBar;
@property(readonly) QCUIElement *topLevelUIElement;
@property(readonly) QCUIElement *window;
@property(readonly) QCUIElement *parent;
@property(readonly) NSArray *children;
@property(readonly) NSString *title;
@property(readonly) NSString *role;
- (id)value;
- (BOOL)setValue:(id)value;
@property(readonly) NSArray *attributeNames;
- (id)valueForAttribute:(NSString *)attributeName;
- (BOOL)setValue:(id)newValue forAttribute:(NSString *)attributeName;
#pragma mark Actions
- (BOOL)activateProcess;
- (NSString *)readString;
- (BOOL)writeString:(NSString *)pasteString;
@end