Hey all,
I've been trying to send a mouse click via a script.
I'm focusing the Reaper main window. But this somehow doesn't work.
The mouse click isn't executed (can't see any effect), but JS_WindowMessage_Post returns true.
Code:
hwnd = reaper.JS_Window_GetForeground()
x, y = reaper.GetMousePosition()
reaper.JS_WindowMessage_Post(hwnd, "WM_LBUTTONDOWN", 1, 0, x, y)
reaper.JS_WindowMessage_Post (hwnd, "WM_LBUTTONUP", 0, 0, x, y)