View Single Post
Old 12-11-2019, 05:02 AM   #823
AndrewFalcon
Human being with feelings
 
AndrewFalcon's Avatar
 
Join Date: Dec 2018
Posts: 20
Default

Dear friends! Please tell me. How to send ctrl+alt+left mouse click to specified window.I`ve tried this but only click is sent (
Code:
x,y = reaper.GetMousePosition()
frompoint = reaper.JS_Window_FromPoint(x,y)
trw=frompoint
x_trw, y_trw = reaper.JS_Window_ScreenToClient( trw, x, y )

  
 reaper.JS_Window_SetFocus(trw)
 reaper.JS_WindowMessage_Post(trw, "WM_KEYDOWN", 17, 0, 0, 0)
 reaper.JS_WindowMessage_Post(trw, "WM_KEYDOWN", 18, 0, 0, 0)
 reaper.JS_WindowMessage_Post(trw , "WM_LBUTTONDOWN", 8, 0, x_trw, y_trw)
 reaper.JS_WindowMessage_Post(trw , "WM_LBUTTONUP", 8, 0, x_trw, y_trw)
AndrewFalcon is offline   Reply With Quote