From 0bcaeda784309cdec82fb34ea57956ec602d59bb Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 22 Oct 2021 12:07:04 -0400 Subject: [PATCH] Repeat the click 3 times --- snippets/ib_data_reset.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/snippets/ib_data_reset.py b/snippets/ib_data_reset.py index d2a5c63d..a65321dc 100644 --- a/snippets/ib_data_reset.py +++ b/snippets/ib_data_reset.py @@ -53,14 +53,16 @@ for name in win_names: # move mouse to bottom left of window (where there should # be nothing to click). - 'mousemove_relative', '--sync', str(w-3), str(h-3), + 'mousemove_relative', '--sync', str(w-4), str(h-4), # NOTE: we may need to stick a `--retry 3` in here.. - 'click', '--window', win_id, '1', + 'click', '--window', win_id, '--repeat', '3', '1', # hackzorzes 'key', 'ctrl+alt+f', - ]) + ], + timeout=1, + ) # re-activate and focus original window subprocess.call([