/* * SendString - The interface method for CKeySend * * The actual work is done by DoSendString above. This function just * just throws an exception if DoSendString encounters an error. * */ void pws_os::SendString(const StringX& str, AutotypeMethod method, unsigned delayMS) { atGlobals.error_detected = false; atGlobals.errorString[0] = 0; DoSendString(str, method, delayMS); if (atGlobals.error_detected) throw autotype_exception(); }
void CKeySendImpl::SendString(const StringX& str, unsigned delayMS) { atGlobals.error_detected = false; atGlobals.errorString[0] = 0; DoSendString(str, delayMS, m_emulateModsSeparately); if (atGlobals.error_detected) throw autotype_exception(); }
CKeySendImpl::CKeySendImpl(pws_os::AutotypeMethod method): m_display(XOpenDisplay(NULL)) { if (m_display) { m_method = GetAutotypeMethod(m_display, method); } else { if (!atGlobals.error_detected) atGlobals.error_detected = true; if (!atGlobals.errorString[0]) strncpy(atGlobals.errorString, "Could not open X display for autotyping", NumberOf(atGlobals.errorString)); throw autotype_exception(); } }