if (!OpenClipboard(nullptr))
MessageBox(hWindow, "Failed to open clipboard", "Error", MB_ICONERROR);
HANDLE hData = GetClipboardData(CF_TEXT);
if (hData == nullptr)
MessageBox(hWindow, "Failed to get data", "Error", MB_ICONERROR);
char* pszText = static_cast<char*>(GlobalLock(hData));
if (pszText == nullptr)
MessageBox(hWindow, "Clipboard is empty", "Error", MB_ICONERROR);
std::string text(pszText);
GlobalUnlock(hData);
CloseClipboard();
await asyncio.sleep(0.1)