Skip to content

Instantly share code, notes, and snippets.

@xgpt
xgpt / pageant-autoload-keys-at-startup.txt
Last active May 24, 2023 15:29 — forked from chunter/pageant-autoload-keys-at-startup.txt
Make Pageant autoload keys at startup
To make Pageant automatically run and load keys at startup:
- Find the location of pageant.exe
- Windows key + R to open the 'run' dialog box
- Type: 'shell:startup' in the dialog box
- Create a shortcut to the pageant.exe and put into this startup folder.
# (C) Paul Gupta, 2022
import winsound
from pynput import keyboard
def on_press(key):
if key == keyboard.Key.esc:
exit()
try:
k = key.char
except: