Show More
@@ -83,20 +83,33 b' def _NSApp():' | |||||
83 |
|
83 | |||
84 | def _wake(NSApp): |
|
84 | def _wake(NSApp): | |
85 | """Wake the Application""" |
|
85 | """Wake the Application""" | |
86 | objc.objc_msgSend.argtypes = [void_p, void_p, void_p, void_p, void_p, void_p, |
|
86 | objc.objc_msgSend.argtypes = [ | |
87 | void_p, void_p, void_p, void_p, void_p] |
|
87 | void_p, | |
88 | event = msg(C('NSEvent'), |
|
88 | void_p, | |
89 | n('otherEventWithType:location:modifierFlags:' |
|
89 | void_p, | |
90 | 'timestamp:windowNumber:context:subtype:data1:data2:'), |
|
90 | void_p, | |
91 | 15, # Type |
|
91 | void_p, | |
92 | 0, # location |
|
92 | void_p, | |
93 | 0, # flags |
|
93 | void_p, | |
94 | 0, # timestamp |
|
94 | void_p, | |
95 | 0, # window |
|
95 | void_p, | |
96 | None, # context |
|
96 | void_p, | |
97 | 0, # subtype |
|
97 | void_p] | |
98 | 0, # data1 |
|
98 | event = msg( | |
99 | 0, # data2 |
|
99 | C("NSEvent"), | |
|
100 | n( | |||
|
101 | "otherEventWithType:location:modifierFlags:" | |||
|
102 | "timestamp:windowNumber:context:subtype:data1:data2:" | |||
|
103 | ), | |||
|
104 | 15, # Type | |||
|
105 | 0, # location | |||
|
106 | 0, # flags | |||
|
107 | 0, # timestamp | |||
|
108 | 0, # window | |||
|
109 | None, # context | |||
|
110 | 0, # subtype | |||
|
111 | 0, # data1 | |||
|
112 | 0, # data2 | |||
100 | ) |
|
113 | ) | |
101 | objc.objc_msgSend.argtypes = [void_p, void_p, void_p, void_p] |
|
114 | objc.objc_msgSend.argtypes = [void_p, void_p, void_p, void_p] | |
102 | msg(NSApp, n('postEvent:atStart:'), void_p(event), True) |
|
115 | msg(NSApp, n('postEvent:atStart:'), void_p(event), True) |
General Comments 0
You need to be logged in to leave comments.
Login now