To use this project you must add the Broadcaster Plugin into Eventghost and install the UDP sender tasker plugin.
UDP Sender Plugin https://play.google.com/store/apps/deta ... nder&hl=en
Here is the event ghost XML to which allows the mouse to move, copy the code and paste it into EventGhost
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1700">
<Folder Name="Touchpad Project" Expanded="True">
<Macro Name="Tasker Mouse">
<Event Name="Broadcast.Computer-Move" />
<Action Name="Mouse Test">
EventGhost.PythonScript(u'import math\ndir = eg.event.payload[0]\nval = int(eg.event.payload[1])/int(2)\n\n#print eg.globals.mousedir\n\nif dir == "right":\n x = int(val)\n #print x\n eg.globals.mousex = x\n eg.globals.mousey = int(0)\n #print eg.globals.mousex\nif dir == "left":\n a = val\n #print a\n #float(a)\n #print a\n b = -1\n #print b\n x = int(a)*int(b)\n eg.globals.mousex = x\n eg.globals.mousey = int(0)\n #print eg.globals.mousex\n#int(float(eg.event.payload[2]\nif dir == "up":\n a = val\n b = -1\n y = int(a)*int(b)\n #print y\n eg.globals.mousey = y\n eg.globals.mousex = int(0)\n #print eg.globals.mousey\nif dir =="down":\n y = int(val)\n #b = -1\n #y = int(a)*int(b)\n #print x\n eg.globals.mousey = y\n eg.globals.mousex = int(0)\n #print eg.globals.mousey\nif dir == "upleft":\n a = val\n b = -1\n y = int(a)*int(b)\n eg.globals.mousey = y\n eg.globals.mousex = y\nif dir == "upright":\n a = val\n b = -1\n y = int(a)*int(b)\n eg.globals.mousey = y\n eg.globals.mousex = a\nif dir == "downleft":\n a = val\n b = -1\n y = int(a)*int(b)\n eg.globals.mousey = a\n eg.globals.mousex = y\nif dir == "downright":\n a = val\n b = -1\n y = int(a)*int(b)\n eg.globals.mousey = a\n eg.globals.mousex = a\nprint eg.globals.mousex\nprint eg.globals.mousey\n# The following is mouse\neg.plugins.Mouse.MoveRelative(int(float(eg.globals.mousex)), int(float(eg.globals.mousey)))\n')
</Action>
</Macro>
<Macro Name="Left mouse button">
<Event Name="Broadcast.Computer-enter" />
<Action>
Mouse.LeftButton()
</Action>
</Macro>
<Macro Name="Right mouse button">
<Event Name="Broadcast.Computer-back" />
<Action>
Mouse.RightButton()
</Action>
<Action>
EventGhost.FlushEvents()
</Action>
</Macro>
</Folder>
</EventGhost>The tasker project is simple and just an example. after it is imported into tasker you will need to back out of tasker to save the project. Then open the task "Set Initial Variables And Launch Touchpad" then press run (the play button). You may also want to set initial variables in this task as ip address is set to broadcast to entire network 255.255.255.255 and port is the Broadcaster plugin default of 33333.