/
GFNawakenedENG.ahk
111 lines (103 loc) · 2.33 KB
/
GFNawakenedENG.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
101
102
103
104
105
106
107
108
109
110
111
SetTitleMatchMode, 2
CoordMode, Mouse, Screen
ctrld = ^d
;altw = !w
ctrlaltd = ^!d
fd = {F1}
fo = {F2}
global key
FileCreateDir, C:\Users\%UserName%\Documents\timecat\GFNawakened
FileInstall, config.ini, C:\Users\%UserName%\Documents\timecat\GFNawakened\config.ini, 0
SetWorkingDir, C:\Users\%UserName%\Documents\timecat\GFNawakened
iniread, key, %A_WorkingDir%\config.ini, one, key
iniread, okn, %A_WorkingDir%\config.ini, one, okn
if okn = 0
{
Gui, Add, Text, x47 y9 w170 h20 , Введите название чата
Gui, Add, Edit, x82 y39 w120 h20 vKey
Gui, Add, Button, x82 y69 w100 h30 , Готово
Gui, Show, x397 y207 h107 w269, GFNawakened
Return
GuiClose:
ExitApp
ButtonГотово:
Gui, Submit
IniWrite, 1, %A_WorkingDir%\config.ini, one, okn
IniWrite, %key%, %A_WorkingDir%\config.ini, one, key
return
}
else
{
}
return
~^d::
Zapros(ctrld)
return
~^!d::
Zapros(ctrlaltd)
return
;~!w::
; Zapros(altw)
return
~F1::
Zapros(fd)
return
~F2::
Zapros(fo)
return
Zapros(comb)
{
KeyWait Control
BlockInput On
MouseGetPos, xpos, ypos
Send {Ctrl down}{Shift down}{Alt down}{Sleep 10}c{Sleep 10}{Ctrl up}{Shift up}{Alt up}
Sleep 25
Send {Shift down}
Sleep 50
Send {Tab down}
Sleep 50
Send {Tab up}
Sleep 50
Send {Shift up}
Sleep 200
Send {Ctrl down}
Sleep 10
Send, v
Sleep 10
Send {Ctrl up}
Sleep 25
Send {Enter}
Sleep 25
Send {Shift down}
Sleep 50
Send {Tab down}
Sleep 50
Send {Tab up}
Sleep 50
Send {Shift up}
MouseMove, %xpos%, %ypos%
BlockInput, off
Sleep 100
WinActivate, %key%
Send, {Ctrl down}a{Ctrl up}{sleep 20}{Ctrl down}{sleep 20}c{sleep 20}{Ctrl up}
pepe := % Clipboard
StringReplace, pepe, pepe, Item Class,ª, All
StringSplit, qq, pepe, ª
pepe2 := qq%qq0%
pepe2 = Item Class%pepe2%
StringReplace, pepe2, pepe2, Найти по имени,ª, All
StringSplit, ww, pepe2, ª
WinActivate, GeForce NOW
request = %ww1%
Send,% (comb)
Sleep 100
Send {Ctrl up}
Send {C up}
Send {Alt up}
clipboard = %request%
Sleep 20
Send {Ctrl up}
Send {C up}
Send {Alt up}
return
}