-
Notifications
You must be signed in to change notification settings - Fork 0
/
Complete.ahk
97 lines (79 loc) · 2.02 KB
/
Complete.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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;!Left::Send {Media_Prev}
;!Down::Send {Media_Play_Pause}
;!Right::Send {Media_Next}
^+x::
OldClipboard:= Clipboard
Clipboard:= ""
Send, ^c ;copies selected text
ClipWait
Run https://www.google.com/search?q=%Clipboard%
Sleep 200
Clipboard:= OldClipboard
return
^+z::
OldClipboard:= Clipboard
Clipboard:= ""
Send, ^c ;copies selected text
ClipWait
Run https://www.google.com/search?q="%Clipboard%"
Sleep 200
Clipboard:= OldClipboard
return
^+a::
OldClipboard:= Clipboard
Clipboard:= ""
Send, ^c ;copies selected text
ClipWait
Run https://www.google.com/search?tbm=bks&q="%Clipboard%"
Sleep 200
Clipboard:= OldClipboard
return
;#IfWinActive, ahk_exe msedge.exe
;
;MButton::
;if GetKeyState("MButton", "P") ; Check if MButton is pressed
;{
; old_clipboard := ClipboardAll ; Save the current clipboard contents
; Send, ^c ; Copy the selected text
; ClipWait, 1 ; Wait for the clipboard to contain data for up to 1 second
; If ErrorLevel ; Check if there was an error with ClipWait
; {
; Clipboard := old_clipboard ; Restore the original clipboard contents
; return
; }
; If Clipboard = old_clipboard ; Check if the copied text is the same as the previous contents of the clipboard
; {
; Clipboard := old_clipboard ; Restore the original clipboard contents
; return
; }
; Send, ^x ; Cut the selected text
;}
;return
;
;#IfWinActive
;Window always on Top
^SPACE:: Winset, Alwaysontop, , A ; Ctrl + SpaceMouseClick, left
return
^+p::
SendMode, Event
SendRaw, %Clipboard%
SetKeyDelay, 30,30
return
#If WinActive("ahk_exe msedge.exe")
{
\::
Send, {Enter}
return
}
;#IfWinActive ahk_exe UnrealEditor.exe
;Esc::
;Send, {Esc}
;sleep 2000
;Send, {Esc}
;sleep 2000
;Send, ^r
;return