Change mouse location

Mac OSX specific forum
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3870
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Change mouse location

Post by wilbert »

Short code to move the mouse pointer to a specific location. Might be useful sometimes.

Code: Select all

ImportC ""
  CGWarpMouseCursorPosition(x.CGFloat, y.CGFloat)
EndImport

CGWarpMouseCursorPosition(10, 100)
Windows (x64)
Raspberry Pi OS (Arm64)