mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-23 08:54:12 +08:00
dont copy infinitely when clipboard is selected with clipboard copy extension
This commit is contained in:
parent
54afbb24a5
commit
0f7fe46980
@ -2,7 +2,7 @@
|
||||
|
||||
bool ProcessSentence(std::wstring& sentence, SentenceInfo sentenceInfo)
|
||||
{
|
||||
if (sentenceInfo["current select"] && sentenceInfo["hook address"] != -1)
|
||||
if (sentenceInfo["current select"] && sentenceInfo["process id"] != 0)
|
||||
{
|
||||
if (!OpenClipboard(FindWindowW(NULL, L"Textractor"))) return false;
|
||||
HGLOBAL hMem = GlobalAlloc(GMEM_MOVEABLE, (sentence.size() + 2) * sizeof(wchar_t));
|
||||
|
Loading…
x
Reference in New Issue
Block a user