Initial commit
This commit is contained in:
commit
d5c932d8e1
710 changed files with 50282 additions and 0 deletions
11
.tmp_axprobe/mtest.swift
Executable file
11
.tmp_axprobe/mtest.swift
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
import Cocoa
|
||||
let p = CGPoint(x: 849, y: 707)
|
||||
let before = CGEvent(source: nil)?.location ?? .zero
|
||||
print("before: \(before)")
|
||||
let mv = CGEvent(mouseEventSource: nil, mouseType: .mouseMoved, mouseCursorPosition: p, mouseButton: .left)
|
||||
if mv == nil { print("CGEvent creation FAILED") }
|
||||
mv?.post(tap: .cghidEventTap)
|
||||
usleep(400_000)
|
||||
let after = CGEvent(source: nil)?.location ?? .zero
|
||||
print("after: \(after)")
|
||||
print(mv == nil ? "NO PERMISSION TO CREATE?" : "event created ok")
|
||||
Loading…
Reference in a new issue