LunaHook-mirror/LunaHost/GUI/Plugin/copyclipboard.cpp

11 lines
310 B
C++
Raw Normal View History

2024-04-21 17:38:47 +08:00
#include "extension.h"
bool sendclipboarddata(const std::wstring&text,HWND hwnd);
bool ProcessSentence(std::wstring& sentence, SentenceInfo sentenceInfo)
{
2024-04-23 20:01:57 +08:00
if (sentenceInfo["current select"] && sentenceInfo["toclipboard"])
2024-04-21 17:38:47 +08:00
{
sendclipboarddata(sentence,(HWND)sentenceInfo["HostHWND"]);
}
return false;
}