Logo Search packages:      
Sourcecode: kautoclick version File versions  Download package

void KAutoClick::XClick (  )  [slot]

Sends a click event to the X11 server using the Xtest lib. If stop != true then it uses a QTimer to call itself in m_interval seconds.

Send a click event to the X server if stop has not been clicked.

If stop is false then repeat after m_interval milliseconds.

Definition at line 72 of file kautoclick.cpp.

References m_interval, and stop.

Referenced by sendClick().

                        {
    /// Send a click event to the X server if stop has not been clicked.
    if(!stop) {
      kdDebug() << "Click" << endl;
      XTestFakeButtonEvent(this->x11Display(), 1, true, CurrentTime);
      XTestFakeButtonEvent(this->x11Display(), 1, false, CurrentTime);
      /// If stop is false then repeat after m_interval milliseconds.
      QTimer::singleShot(m_interval, this, SLOT(XClick()));
    }
    stop = false;
}


Generated by  Doxygen 1.6.0   Back to index