script 2 doesn't work because variable CODE
is forgotten after script 1 is executed.
script 1 (hotkey is set to 1)
code = 123
script 2 (hotkey is set to 2)
if code == 123:
keyboard.send_key("G")
How to make this or an analogue ? I need digits to be remembered, and then used in another script(s) with a condition like above.