Code: Select all
EnableExplicit
ImportC ""
CGWarpMouseCursorPosition(p)
CGMainDisplayID()
CGDisplayPixelsWide(did)
CGDisplayPixelsHigh(did)
CGEventSourceCreate(state)
CGEventSourceSetLocalEventsSuppressionInterval(event, seconds)
EndImport
Procedure Test()
Protected mouseLoc.CGPoint
Protected did = CGMainDisplayID()
mouseLoc\x = CGDisplayPixelsWide(did) / 2
mouseLoc\y = CGDisplayPixelsHigh(did) / 2
CGWarpMouseCursorPosition(mouseLoc)
; Protected evs = CGEventSourceCreate(0)
; CGEventSourceSetLocalEventsSuppressionInterval(evs, 0)
EndProcedure
Test()