Exemplo n.º 1
0
 def user_choice():
     sleep(1)
     choice = None
     print('Зачёркиваем? [Y/N]', flush=True, end='')
     while choice not in ('y', 'н') or choice not in ('n', 'т'):
         choice = keyboard.read_shortcut()
         if choice == 'y':
             print('\rВы решили зачеркнуть цифру...' + ' ' * 40,
                   flush=True,
                   end=' ')
             sleep(1)
             print('\r' + ' ' * 26, flush=True)
             return 'yes'
         elif choice == 'n':
             print('\rВы решили не зачёркивать цифру...' + ' ' * 40,
                   flush=True,
                   end=' ')
             sleep(1)
             print('\r' + ' ' * 26, flush=True, end=' ')
             return 'no'
         elif choice == 'q':
             print('\nДо свидания!')
             sleep(1)
             exit()
         else:
             print('Примите решение нажав клавиши Y или N...')
Exemplo n.º 2
0
 def choose_dodge_side(self):
     side = ''
     print('Выберите сторону для уклонения.')
     while side != 'left' or side != 'right':
         side = keyboard.read_shortcut()
         if side == 'left':
             print('Вы отпрыгнули влево и... ', end='')
             sleep(0.2)
             return 'left'
         elif side == 'right':
             print('Вы отпрыгнули вправо и... ', end='')
             sleep(0.2)
             return 'right'
         else:
             print('Выберите сторону клавишами стрелочек...')
Exemplo n.º 3
0
 def choose_attack_side(self):
     side = None
     print('Выберите сторону для атаки.')
     while side != 'left' or side != 'right':
         side = keyboard.read_shortcut()
         if side == 'left':
             print('Вы атакуете налево и... ', end='')
             sleep(0.2)
             return 'left'
         elif side == 'right':
             print('Вы атакуете направо и... ', end='')
             sleep(0.2)
             return 'right'
         else:
             print('Выберите сторону клавишами стрелочек...')
Exemplo n.º 4
0
import keyboard

print('Press and release your desired shortcut: ')
shortcut = keyboard.read_shortcut()
print('Shortcut selected:', shortcut)
"""
Made by Opatio Co. Ltd. Co CEO Jaewon Lee
2017.11.28 S.KR

Key Hooker
"""

import keyboard

#1 desire shortcut
print('1 : Press and release your desired shortcut: ')
shortcut1 = keyboard.read_shortcut()
print('Shortcut selected:', shortcut1)

#2 desire shortcut
print('2 : Press and release your desired shortcut: ')
shortcut2 = keyboard.read_shortcut()
print('2 : Shortcut selected:', shortcut2)

#3 desire shortcut
print('3 : Press and release your desired shortcut: ')
shortcut3 = keyboard.read_shortcut()
print('3 : Shortcut selected:', shortcut3)

#4 desire shortcut
print('3 : Press and release your desired shortcut: ')
shortcut4 = keyboard.read_shortcut()
print('3 : Shortcut selected:', shortcut4)


#Let's Trigging