LiteManager server part on Linux or Mac via Wine

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
den123
Level 2
Level 2
Posts: 11
Joined: Wed Oct 05, 2011 4:08 am

LiteManager server part on Linux or Mac via Wine

Post by den123 »

Hi to all!
A have the progect - LiteManager this is remote access software like TeamViewer, Dameware or similars.
LiteManage consists of two part - Viewer is the main (admin) and Server is the slave (remote) like in VNC.
It's works great with Wine on Linux both Viewer and Server, but only mouse and keyboard emulation doesn't works.

I wrote about this problem on BugZilla here is my question (Bug 37528 )
https://bugs.winehq.org/show_bug.cgi?id=37528

It has status CLOSED WONTFIX.
A lot of users from many countries write me about this problem , they can't remotely control Linux PC, mouse is moving but doesn't click on native Linux Window , keyboard don't works too.
I know some solutions and know that it possible to simulate events on Linux , XSendEvent func, VNC allready have done this.

I'm ready to pay for this work, I really want to donate Wine Team, Your are best who can to do this feature, I can develop my software well only for Windows platform now.
Please, if it possible give your contacts, or I can give you my email, please write to me via private message.

You can find Wine page on my site
http://www.litemanager.com/litemanager_linux_macos_wine/

Not only me need this
proggi 2016-07-20 09:58:30 CDT
Click of the cursor across the field OUT OF the wine windows is necessary!
Many users around the world needs this feature in Wine.
Best regards!
den123
Level 2
Level 2
Posts: 11
Joined: Wed Oct 05, 2011 4:08 am

Re: LiteManager server part on Linux or Mac via Wine

Post by den123 »

Sorry, I just found some solutions, linux code example
Sending fake keypress events to an X11 window
http://www.doctort.org/adam/nerd-notes/x11-fake-keypress-event.html

And XTestFakeButtonEvent function
https://stackoverflow.com/questions/42013047/difference-between-xtestfakebuttonevent-xsendevent
https://stackoverflow.com/questions/30413316/sending-fake-keypress-event-to-a-window-using-xlib

Example
So i wrote second variant (based on XTestFakeButtonEvent):

Code: Select all

#include <X11/extensions/XTest.h>

void SendClick(int button, Bool down) 
{
    Display *display = XOpenDisplay(NULL);
    XTestFakeButtonEvent(display, button, down, CurrentTime);
    XFlush(display);
    XCloseDisplay(display);
}
And this code works fine everyvere include chrome.

Calling of those functions is very simple

// XSendEvent variant
mouseClick(1);

// XTestFakeButtonEvent variant
SendClick(1, true); // press lmb
SendClick(1, false); // release lmb
Seems, it really must works

It will be great if You implement this code in Wine
I wiil pay You for this
Locked