-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.py
55 lines (42 loc) · 1.03 KB
/
functions.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
from shortcut_control import shortcut
from state_track import state, stop_state_checking
from speechrecog import stop_listen
import time
def toggle_hand():
shortcut('toggle_hand')
def toggle_fullscreen():
shortcut('toggle_fullscreen')
def unmute():
if state['audio'] == 0:
shortcut('toggle_audio')
def mute():
if state['audio'] == 1:
shortcut('toggle_audio')
def start_video():
if state['video'] == 0:
shortcut('toggle_video')
def stop_video():
if state['video'] == 1:
shortcut('toggle_video')
def start_share():
if state['share'] == 0:
shortcut('toggle_share', content='\n')
def stop_share():
if state['share'] == 1:
shortcut('toggle_share')
def open_chat():
if state['chat'] == 0:
shortcut('toggle_chat')
def close_chat():
if state['chat'] == 1:
shortcut('toggle_chat')
def send_chat(message):
if state['chat'] == 1:
shortcut('toggle_chat')
shortcut('toggle_chat', content=message)
def leave_meeting():
shortcut('toggle_leave_meeting', content='\n')
def quit():
stop_state_checking()
stop_listen()
exit()