/
SimeyAHK.ahk
100 lines (64 loc) · 5.38 KB
/
SimeyAHK.ahk
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
; # Win || ! Alt || ^ Control || + Shift
#SingleInstance
; load many replace hotstrings
#Include replace.ahk
; experimental fun stuff.
#Include simeyplay.ahk
; change script folder to helpers subfolder
#Include %A_ScriptDir%\helpers
#Include datetime.ahk
; replace ]dt with date and time, etc
; #Include InternetExplorer.ahk only ; referenced in OpenChrome
#Include OpenChrome.ahk
; OpenChrome
#Include LockSleepHibernateShutdown.ahk
; Lock
; Sleep
; Hibernate
; Shutdown
#Include TimedMsgBox.ahk
; TimedMsgBox
#Include ToggleInternetProxyAutoConfig.ahk
; ToggleInternetProxyAutoConfig
#Include WinExplorer.ahk
; ExplorerSelectedToClipBoard
; WinExplorerToggleFileExtensions
; WinExplorerToggleHiddenFiles
; WinExplorerUpALevel
; RunWithExplorerPath
; Notify when this script loads
TrayTip, Autohotkey, Successfully loaded`n%A_ScriptName%, 1
code := "C:\Users\om90898.OMCORE\AppData\Local\Programs\Microsoft VS Code\Code.exe"
hyper := "C:\Users\om90898.OMCORE\AppData\Local\hyper\Hyper.exe"
whatsapp := "C:\Users\om90898.OMCORE\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Chrome Apps\WhatsApp.lnk"
^+#F2:: Run, C:\Program Files\Microsoft VS Code\Code.exe "%A_ScriptDir%"
^+#F5:: ; CTRL+SHIFT+WIN+F5 - Reload this script
TrayTip, Autohotkey, Reloading`n%A_ScriptName%, 1
reload
return
#l:: LockAndMonOff() ; Override Win+L to lock monitor and also turn off screen
#+h:: TimedMsgBox(, "Hibernate", "Hibernate in $s seconds?",3, "Hibernate") ; Hibernate after 3 seconds
#+s:: TimedMsgBox(, "Sleep", "Sleep in $s seconds", 3, "Sleep") ; Sleep after 3 seconds
#x:: Run, %windir%\system32\SnippingTool.exe
#w:: OpenChrome() ; Run % "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" . " " . IE_GetUrl() ; Open Chrome, and open at
#+w:: Run % "C:\Users\om90898.OMCORE\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Chrome Apps\WhatsApp.lnk"
^#n:: Run, notepad.exe
#numlock:: Run, calc
#+c:: RunWithExplorerPath("C:\Users\om90898.OMCORE\AppData\Local\Programs\Microsoft VS Code\Code.exe")
#c::
#`:: RunWithExplorerPath(ComSpec)
^#+c:: ; same as below
#+`::RunWithExplorerPath("C:\Users\om90898.OMCORE\AppData\Local\hyper\Hyper.exe")
; #Include ToggleInternetProxyAutoConfig.ahk
#+p:: ToggleInternetProxyAutoConfig()
; ############### Windows Explorer Only
#IFWINACTIVE ahk_exe Explorer.EXE
^+c:: ExplorerSelectedToClipBoard()
^+h:: WinExplorerToggleHiddenFiles()
^+y:: WinExplorerToggleFileExtensions()
; backspace::WinExplorerUpALevel()
#IFWINACTIVE
; ############### Command Prompt Only
#IFWINACTIVE ahk_class ConsoleWindowClass
^v:: SendInput {Raw}%clipboard%
#IFWINACTIVE