Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import keycapture,keypress
- key=None
- status=0
- def onoff():
- global key
- if key:
- if status:
- key.keys=()
- key.stop()
- key.start()
- if not status:
- key.keys=codes
- key.stop()
- key.start()
- def handleKey(code):
- if kode=='EStdKeyFullStop':
- keypress.simulate_key('EStdKeyLeftShift',1)
- codes=('tombol untuk on/of','EStdKeyFullStop')
- key=keycapture.KeyCapturer(handleKey)
- key.keys=('kode tombol untuk on/off',)
- key.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement