Feature/keyboard activity
Adding keyboard interactivity recording and playing in a single window
Current behaviour:
- For starting keyboard recording the user should use the command
ak
(add keyboard) - Currently any keyboard key is clicked is recorded in an buffer
- Whenever the user press
esc
the recorded buffer is written to the test script file usingjson.dumps
and with a keyword "writeRecordedKeys" - Example of recorded word "key" -->
writeRecordedKeys ["k", "e", "y"]
- Whenever the use do another action than writing on keyboard the buffer is also written to the script file
- During running the script the keys are parsed and played with
pynput.Controller.tab
- The
esc
will exit from the creator cli if keyboard activity is turned of even by a previousesc
orsk
(stop keyboard)
Scope:
- Works on a single window (no modal windows) -> to be added after modal window is done
- Keyboard modifiers and shortcuts are not supported -> more investigation