MouseAndKeyInput on Mac lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- xinyiman · 2019-01-23 17:14 Hi guys, a question. I want to use the MouseAndKeyInput library to move the mouse from my Lazarus program and send the clicks to the operating system. But on the mac it tells me this when I try to compile. Ideas? Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Messages, Warnings: 1Compile Project, Target: lib/x86_64-darwin/LazMouseDesktop: Exit code 256, Errors: 1Linking /Users/ngit/Desktop/LazMouseDesktop/sr c/lib/x86_64-darwin/LazMouseDesktopld: library not found for -lXtstAn error occurred while linking LazMouseDesktop.lpr(22,0) Error: Error while linking ---------------------------------------------------------------------- bytebites · 2019-01-23 17:58 Library libxtst-dev is missing. ---------------------------------------------------------------------- xinyiman · 2019-01-23 22:31 Quote from: bytebites on January 23, 2019, 06:58:27 pmLibrary libxtst- dev is missing. How install this package on mac os x? ---------------------------------------------------------------------- xinyiman · 2019-01-23 22:51 Ok, is simple. Add this path /opt/X11/lib at project library path into project options. ---------------------------------------------------------------------- xinyiman · 2019-01-23 23:00 Ok, compile but not run correctly. If I run project from terminal of mac os return this errore when execute my mouse move Xlib:  extension "XTEST" missing on display "/private/tmp/com.apple.launchd.QuNixpuowN/org.macosforge.xquartz:0". Xlib:  extension "XTEST" missing on display "/private/tmp/com.apple.launchd.QuNixpuowN/org.macosforge.xquartz:0". Xlib:  extension "XTEST" missing on display "/private/tmp/com.apple.launchd.QuNixpuowN/org.macosforge.xquartz:0". Xlib:  extension "XTEST" missing on display "/private/tmp/com.apple.launchd.QuNixpuowN/org.macosforge.xquartz:0". Xlib:  extension "XTEST" missing on display "/private/tmp/com.apple.launchd.QuNixpuowN/org.macosforge.xquartz:0". Why? ---------------------------------------------------------------------- bytebites · 2019-01-24 04:05 Google found https://stackoverflow.com/questions/1264210/does- mac-x11-have-the-xtest-extension ---------------------------------------------------------------------- xinyiman · 2019-01-24 07:49 So to work my program should then rely on XQuartz on Mac OS. Is not there a way to control the mouse and keyboard programmatically through operating system bees? So for windows and linux I use the libraries of Lazarus and for mac I use the bees of the system.