Slower pace for virtual typist

This commit is contained in:
Jerome Petazzoni
2017-12-21 05:45:38 +01:00
parent 2aced95c86
commit badb73a413

View File

@@ -254,8 +254,12 @@ def send_keys(data):
for key in data:
if key == ";":
key = "\\;"
if key == "\n":
time.sleep(1)
subprocess.check_call(["tmux", "send-keys", key])
time.sleep(0.1*random.random())
time.sleep(0.2*random.random())
if key == "\n":
time.sleep(1)
else:
subprocess.check_call(["tmux", "send-keys", data])