forked from iQuerz/iQScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.ahk
More file actions
94 lines (77 loc) · 1.68 KB
/
Copy pathscript.ahk
File metadata and controls
94 lines (77 loc) · 1.68 KB
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
currentVersion = 1.6
request := ComObjCreate("WinHttp.WinHttpRequest.5.1")
request.Open("GET", "https://raw.githubusercontent.com/iQuerz/MyAHKScript/main/ver.txt", true)
request.Send()
request.WaitForResponse()
version := request.ResponseText
If(currentVersion != version){
Run dialog.ahk
}
#MaxHotkeysPerInterval 15000
#NoEnv
#SingleInstance, Force
#UseHook
SendMode Input
SetWorkingDir %A_ScriptDir%
; alt+q for close
;!Q::
; WinClose A
;return
; Do you remember that you can write 1-line commands without following 'return'?
!Q:: WinClose A
; alt+w for minimize
!W::
WinMinimize A
return
; alt + 8 for delete
!8::
SendInput {Delete}
return
; alt + 9 for home
!9::
SendInput {Home}
return
; alt + 0 for end
!0::
SendInput {End}
return
; alt+e for my computer
!E::
Run C:\Windows\explorer.exe
return
; alt+a for notifications
!A::
SendInput #a
return
; alt+s for screenshot
!S::
Run C:\WINDOWS\system32\SnippingTool.exe /clip
return
; Use windows key for PowerToys Run, but retain the functionality of other shortcuts using Windows key
#If A_PriorKey == "LWin"
LWin Up::
SendInput !r
#If
; alt+scroll up to scroll left.
!WheelUp::
SendInput {WheelLeft}
return
; alt+scroll down to scroll right.
!WheelDown::
SendInput {WheelRight}
return
; internal joke, you can skip & ignore or delete this part
!C::
Send ce bude™
return
; Next bit of the code is for simulating arrow keys with I, J, K, L while holding down ';'.
; Helpful when your hands are at the homerow position
SC0027 & I::Up
SC0027 & J::Left
SC0027 & K::Down
SC0027 & L::Right
+SC0027:::
;#If A_PriorKey == ";"
; You just don't need this #If stuff here. Test it and you'll see.
SC0027::Send `; ; You don't need Up here.
;#If