(desktop, width, height)
| 12 | window_frame_height = 29 # Additional px to take into the account the window border at the top |
| 13 | |
| 14 | def move_around(desktop, width, height): |
| 15 | for i in range(5): |
| 16 | x = random.randint(0, width) |
| 17 | y = random.randint(0, height) |
| 18 | desktop.move_mouse(x, y) |
| 19 | print(" - Moved mouse to", x, y) |
| 20 | desktop.right_click() |
| 21 | print(" - Right clicked", i) |
| 22 | print(" - Waiting 2 seconds...\n") |
| 23 | time.sleep(2) |
| 24 | |
| 25 | def create_window(stream_url, width, height, command_queue): |
| 26 | # We create a separate thread to check the queue for the 'close' command that can be sent from the main thread. |
no test coverage detected