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

11 lines
344 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)
{
if (sentenceInfo["current select"] && sentenceInfo["process id"] != 0 &&sentenceInfo["toclipboard"])
{
sendclipboarddata(sentence,(HWND)sentenceInfo["HostHWND"]);
}
return false;
}