How can I simulate all mouse and keyboard events in Qt that works on Linux and Windows?
Posted
by
S.Mohammadi
on Stack Overflow
See other posts from Stack Overflow
or by S.Mohammadi
Published on 2014-08-18T16:04:53Z
Indexed on
2014/08/19
4:21 UTC
Read the original article
Hit count: 419
Problem: I have a device that send to me some commands (e.g: 1,2,3,...), i want simulate mouse and keyboard events according to received commands in Both Linux OS and Windows OS.
I worked with bool QCoreApplication::postEvent(QObject *receiver, QEvent *event, int priority = Qt::NormalEventPriority)
but i don't know what receiver pass to it and i has problem with MouseMove
action with it.
I found this help that works good in linux OS, but i have problem with this help approach in Windows OS. Is there any approach that works in both OS?
Thanks for your attention.
© Stack Overflow or respective owner