-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jarvis_general.py
63 lines (39 loc) · 1.21 KB
/
Jarvis_general.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
import pyautogui
class OS_Functions:
def __init__(self):
pass
def increase_volume(self):
pyautogui.press('volumeup',presses=3)
def decrease_volume(self):
pyautogui.press('volumedown',presses=3)
def mute(self):
pyautogui.press('volumemute',presses=3)
def capslock(self):
pyautogui.press('capslock')
def pgup(self):
pyautogui.press('pgup')
def page_down(self):
pyautogui.press('pgdn')
def screen_record(self):
pyautogui.hotkey('win','alt','r')
def screenshot(self):
pyautogui.hotkey('win','alt','prtsc')
def show_gamebar(self):
pyautogui.hotkey('win','g')
class Other_General_Functions:
def __init__(self):
pass
def take_printout(self):
pyautogui.hotkey('ctrl','p')
def copy_text(self):
pyautogui.hotkey('ctrl','c')
def paste_text(self):
pyautogui.hotkey('ctrl','v')
def save_file(self):
pyautogui.hotkey('ctrl','s')
def saveas_file(self):
pyautogui.hotkey('ctrl','shift','s')
def minmax_screen(self):
pyautogui.hotkey('win','d')
def switch_tab(self):
pyautogui.hotkey('alt','tab')