Python Forum
controlling multiple server simultaneously.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
controlling multiple server simultaneously.
#1
Hi guys,i'm newbie on this forum,i need your help to code a project.

I have 2 vps server with linux and GUI,my goal is to code something for control mouse and keyoboard of each server at the same time.

With a VNC viewer i can use one server at a time,but i need to copy movement over two or more pc's at the same time,evry server must do the same mouse movement over the desktop,same keyboard typing,etc.

is there any library o any ideas to solve this problem? Wall
Reply
#2
You have to use some messaging library/protocol or whatever is called to order the remote systems what to do.
I think zerorpc or pyzmq will do the work. Then I will use pyinput to get the local keyboard and mouse events and for example pyautogui to move the mouse and generate keystrokes on the remote systems.

There are other modules to fit ?fill the requirements.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#3
(May-11-2018, 12:23 PM)wavic Wrote: You have to use some messaging library/protocol or whatever is called to order the remote systems what to do.
I think zerorpc or pyzmq will do the work. Then I will use pyinput to get the local keyboard and mouse events and for example pyautogui to move the mouse and generate keystrokes on the remote systems.

There are other modules to fit ?fill the requirements.

tnx for addressing me,i have done onli simple scrip util now so i don't know if this is a more complcated project for me but...let's try!

so the idea is to map the "MASTER" pc trought pyimput,then send the data to "SLAVE1","SLAVE2","SLAVEx" trought zeropc and then tell to pyautoguy to follow the commannds?

i don't need to do complicated tasks like copy/paste or tranfer files,just move mouse and keyboard to open files,browser or programs ,simulating an X number of humans doing the same tasks on your own machines.
Reply
#4
It's just as you describe it. Read the input with pyinput and send the raw data to the slaves. They get it and pass it to pyautogui methods which are doing the movement of the mouse and generate the keystrokes. You can serialize the data as json for example. simplejson or ujason are faster libraries in lots of the cases.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Looking For Help On Controlling Philips Hue From PyCharm RickyRay333 4 1,179 Aug-24-2020, 08:33 PM
Last Post: Nickd12
  How to run same process simultaneously exploit123 1 540 Sep-19-2019, 10:08 AM
Last Post: Gribouillis
  Control 2 stepper motor simultaneously jihene 2 1,091 May-08-2019, 05:27 PM
Last Post: DeaD_EyE
  Moving with objects simultaneously kom2 1 692 Apr-20-2019, 07:12 PM
Last Post: SheeppOSU
  using subpocess for both reading and writing simultaneously dauriac 11 3,742 May-30-2018, 10:09 PM
Last Post: killerrex
  Controlling Python Program From Django Front End sourabhjaiswal92 3 1,406 May-21-2018, 06:07 AM
Last Post: wavic
  How to define two functions run simultaneously within a function? Alberto 4 1,656 Feb-06-2018, 10:08 PM
Last Post: Alberto
  Controlling trailing zeros with rounding? RedSkeleton007 1 12,888 Jan-25-2018, 07:23 AM
Last Post: j.crater
  Modifying / extracting multiple list items simultaneously using variable from range ehammarlund 4 1,679 Dec-06-2017, 08:15 PM
Last Post: ehammarlund

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020