xdotool utilized.

This commit is contained in:
jens 2021-05-06 19:45:48 +02:00
parent 07555845a1
commit a282a95c4e
2 changed files with 25 additions and 20 deletions

View File

@ -337,7 +337,13 @@ public class GUI
@Override @Override
public void run() public void run()
{ {
try Miscellaneous.runExternalApplication("/usr/bin/xdotool key ctrl", 0, null, null);
}});
t.start();
}
void moveMouseCursor()
{ {
/* /*
* Move the mouse cursor * Move the mouse cursor
@ -348,6 +354,8 @@ public class GUI
* still black screen. * still black screen.
*/ */
try
{
Robot robot = new Robot(); Robot robot = new Robot();
for(int xCoord = 500; xCoord < 550; xCoord++) for(int xCoord = 500; xCoord < 550; xCoord++)
for(int yCoord = 500; yCoord < 550; yCoord++) for(int yCoord = 500; yCoord < 550; yCoord++)
@ -357,9 +365,6 @@ public class GUI
{ {
} }
}});
t.start();
} }
void getFocus() void getFocus()