Quote:
Originally Posted by Edgemeal
This seems to work OK, tho not sure its actually correct.
Code:
local hWnd_action = reaper.JS_Window_Find("Actions", true)
if hWnd_action ~= nil then
-- Get handle to Filter editbox in Actions window,
local hWnd_filter = reaper.JS_Window_FindChildByID(hWnd_action, 1324)
-- send it an "A" Char
ret = reaper.JS_WindowMessage_Post(hWnd_filter, "WM_CHAR", string.byte("A"), 0,0,0)
end
|
Yes, simple characters work, but Ctrl+V etc do not.
Quote:
Code:
function JS_Send_Text(hWnd, str)
for char in string.gmatch(str, "%U") do
ret = reaper.JS_WindowMessage_Post(hWnd, "WM_CHAR", string.byte(char), 0, 0, 0)
if ret ~= true then break end -- something went wrong?, abort loop!
end
end
|
For some reason, this works up to 64 characters. If they are more than 64, it truncates the start.