How can I simulate all mouse and keyboard events in Qt that works on Linux and Windows?
- by S.Mohammadi
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.