-
Notifications
You must be signed in to change notification settings - Fork 0
/
letter_emoji.py
136 lines (131 loc) · 4.85 KB
/
letter_emoji.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
from pynput.keyboard import Key, Controller
import time
keyboard = Controller()
msg = input("What message would you like to send? ")
word = msg.upper()
emoji = list(word)
time.sleep(5)
def emj(emoji):
for i in emoji:
if i == 'A':
keyboard.type(':regional_indicator_a:')
keyboard.press(Key.space)
keyboard.release(Key.space)
elif i == 'B':
keyboard.type(':regional_indicator_b:')
keyboard.press(Key.space)
keyboard.release(Key.space)
elif i == 'C':
keyboard.type(':regional_indicator_c:')
keyboard.press(Key.space)
keyboard.release(Key.space)
elif i == 'D':
keyboard.type(':regional_indicator_d:')
keyboard.press(Key.space)
keyboard.release(Key.space)
elif i == 'E':
keyboard.type(':regional_indicator_e:')
keyboard.press(Key.space)
keyboard.release(Key.space)
elif i == 'F':
keyboard.type(':regional_indicator_f:')
keyboard.press(Key.space)
keyboard.release(Key.space)
elif i == 'G':
keyboard.type(':regional_indicator_g:')
keyboard.press(Key.space)
keyboard.release(Key.space)
elif i == 'H':
keyboard.type(':regional_indicator_h:')
keyboard.press(Key.space)
keyboard.release(Key.space)
elif i == 'I':
keyboard.type(':regional_indicator_i:')
keyboard.press(Key.space)
keyboard.release(Key.space)
elif i == 'J':
keyboard.type(':regional_indicator_j:')
keyboard.press(Key.space)
keyboard.release(Key.space)
elif i == 'K':
keyboard.type(':regional_indicator_k:')
keyboard.press(Key.space)
keyboard.release(Key.space)
elif i == 'L':
keyboard.type(':regional_indicator_l:')
keyboard.press(Key.space)
keyboard.release(Key.space)
elif i == 'M':
keyboard.type(':regional_indicator_m:')
keyboard.press(Key.space)
keyboard.release(Key.space)
elif i == 'N':
keyboard.type(':regional_indicator_n:')
keyboard.press(Key.space)
keyboard.release(Key.space)
elif i == 'O':
keyboard.type(':regional_indicator_o:')
keyboard.press(Key.space)
keyboard.release(Key.space)
elif i == 'P':
keyboard.type(':regional_indicator_p:')
keyboard.press(Key.space)
keyboard.release(Key.space)
elif i == 'Q':
keyboard.type(':regional_indicator_q:')
keyboard.press(Key.space)
keyboard.release(Key.space)
elif i == 'R':
keyboard.type(':regional_indicator_r:')
keyboard.press(Key.space)
keyboard.release(Key.space)
elif i == 'S':
keyboard.type(':regional_indicator_s:')
keyboard.press(Key.space)
keyboard.release(Key.space)
elif i == 'T':
keyboard.type(':regional_indicator_t:')
keyboard.press(Key.space)
keyboard.release(Key.space)
elif i == 'U':
keyboard.type(':regional_indicator_u:')
keyboard.press(Key.space)
keyboard.release(Key.space)
elif i == 'V':
keyboard.type(':regional_indicator_v:')
keyboard.press(Key.space)
keyboard.release(Key.space)
elif i == 'W':
keyboard.type(':regional_indicator_w:')
keyboard.press(Key.space)
keyboard.release(Key.space)
elif i == 'X':
keyboard.type(':regional_indicator_x:')
keyboard.press(Key.space)
keyboard.release(Key.space)
elif i == 'Y':
keyboard.type(':regional_indicator_y:')
keyboard.press(Key.space)
keyboard.release(Key.space)
elif i == 'Z':
keyboard.type(':regional_indicator_z:')
keyboard.press(Key.space)
keyboard.release(Key.space)
else:
keyboard.press(Key.space)
keyboard.release(Key.space)
keyboard.press(Key.space)
keyboard.release(Key.space)
keyboard.press(Key.space)
keyboard.release(Key.space)
keyboard.press(Key.space)
keyboard.release(Key.space)
keyboard.press(Key.space)
keyboard.release(Key.space)
keyboard.press(Key.space)
keyboard.release(Key.space)
keyboard.press(Key.space)
keyboard.release(Key.space)
emj(emoji)
keyboard.press(Key.enter)
keyboard.release(Key.enter)