SHOW:
|
|
- or go back to the newest paste.
1 | - | #singleinstance force |
1 | + | -#singleinstance force |
2 | setkeydelay 45 ; | |
3 | ||
4 | steampath = c:\program files (x86)\steam\ ; path to the steam folder, don't remove the "/" from the end | |
5 | launchtf2 = yes ; check the check box "launch tf2" by default (yes or no) | |
6 | launchoptions = -console -noborder -novid ; launch options for tf2, optional | |
7 | lmaobox = yes ; check the check box "lmaobox" by default (yes or no) | |
8 | lmaopath = %homepath%\documents\iexplore.exe ; path to lmaobox executable | |
9 | lmaoversion = free ; paid or free | |
10 | lmaouser = ; username for paid lmaobox | |
11 | lmaopass = ; password for paid lmaobox | |
12 | ||
13 | show_ip_box = yes ; check the check box "connect to ip address" by default (yes or no) | |
14 | ||
15 | gui: | |
16 | gui, destroy | |
17 | gui, add, edit, x90 y25 w290 h21 vahkname, | |
18 | gui, add, edit, x90 y56 w330 h21 vahkpass, | |
19 | gui, add, edit, x90 y141 w330 h84 vahkipstring, | |
20 | gui, add, checkbox, x90 y87 w70 h13 glmaocheck checked vahktf2, launch tf2 | |
21 | if lmaobox = yes | |
22 | gui, add, checkbox, x170 y87 w70 h13 checked glmaocheck vahklmao, lmaobox | |
23 | else | |
24 | gui, add, checkbox, x170 y87 w70 h13 glmaocheck vahklmao, lmaobox | |
25 | gui, add, checkbox, x260 y87 w160 h13 gshowbox vshowbox, connect to ip address | |
26 | ||
27 | gui, add, button, x389 y24 w32 , new | |
28 | gui, add, button, x89 y109 w162 , create | |
29 | gui, add, button, x259 y109 w162 , cancel | |
30 | gui, add, text, x1 y28 w80 right, username | |
31 | gui, add, text, x1 y59 w80 right, password | |
32 | ||
33 | ifnotexist, %steampath%steam.exe | |
34 | { | |
35 | msgbox, steam not found! check the settings and try again | |
36 | exitapp | |
37 | } | |
38 | ||
39 | if show_ip_box = yes | |
40 | { | |
41 | guicontrol, show, ahkipstring | |
42 | guicontrol,, showbox, 1 | |
43 | gui, show, w445 h250 x5 y5,account maker | |
44 | } | |
45 | ||
46 | if launchtf2 = no | |
47 | { | |
48 | guicontrol,, lmaobox, 0 | |
49 | guicontrol, disable, lmaobox | |
50 | guicontrol,, ahktf2, 0 | |
51 | } | |
52 | ||
53 | if show_ip_box = no | |
54 | { | |
55 | guicontrol, hide, ahkipstring | |
56 | gui, show, w445 h156 x5 y5,account maker | |
57 | } | |
58 | buttonnew: | |
59 | generatename: ;username | |
60 | ncharlist = a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,1,2,3,4,5,6,7,8,9,0 | |
61 | stringsplit, chararray, ncharlist, `, | |
62 | nstr = | |
63 | random, nrand, 8, 16 | |
64 | loop, %nrand% | |
65 | { random, pick, 1, %chararray0% | |
66 | item := chararray%pick% | |
67 | nstr = %nstr%%item% | |
68 | } | |
69 | generatemail: ;email address | |
70 | mcharlist = a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z | |
71 | stringsplit, chararray, mcharlist, `, | |
72 | mstr = | |
73 | random, mrand, 8, 16 | |
74 | loop, %mrand% | |
75 | { random, pick, 1, %chararray0% | |
76 | item := chararray%pick% | |
77 | mstr = %mstr%%item% | |
78 | } | |
79 | generatemailhost: ;email host or whatever | |
80 | mhcharlist = a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z | |
81 | stringsplit, chararray, mhcharlist, `, | |
82 | mhstr = | |
83 | random, mhrand, 6, 10 | |
84 | loop, %mhrand% | |
85 | { random, pick, 1, %chararray0% | |
86 | item := chararray%pick% | |
87 | mhstr = %mhstr%%item% | |
88 | } | |
89 | generatequestion: ;secret question | |
90 | qcharlist = a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z, , , , , , , , , | |
91 | stringsplit, chararray, qcharlist, `, | |
92 | qstr = | |
93 | random, qrand, 8, 16 | |
94 | loop, %qrand% | |
95 | { random, pick, 1, %chararray0% | |
96 | item := chararray%pick% | |
97 | qstr = %qstr%%item% | |
98 | } | |
99 | generatepass: ;password | |
100 | pcharlist = a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,1,2,3,4,5,6,7,8,9,0 | |
101 | stringsplit, chararray, pcharlist, `, | |
102 | pstr = | |
103 | random, prand, 10, 20 | |
104 | loop, %prand% | |
105 | { random, pick, 1, %chararray0% | |
106 | item := chararray%pick% | |
107 | pstr = %pstr%%item% | |
108 | } | |
109 | ahkname = %nstr% | |
110 | ahkmail = %mstr%@%mhstr%.com | |
111 | ahksecret = %qstr% | |
112 | ahkpass = %pstr% | |
113 | guicontrol,, ahkname, %mstr% | |
114 | guicontrol,, ahkpass, %pstr% | |
115 | lmaocheck: | |
116 | gui, submit, nohide | |
117 | ||
118 | if ahktf2 = 0 | |
119 | { | |
120 | guicontrol,, lmaobox, 0 | |
121 | guicontrol, disable, lmaobox | |
122 | } | |
123 | if ahktf2 = 1 | |
124 | { | |
125 | guicontrol, enable, lmaobox | |
126 | } | |
127 | if lmaobox = yes | |
128 | if ahktf2 = 0 | |
129 | guicontrol,, lmaobox, 0 | |
130 | return | |
131 | showbox: | |
132 | gui, submit, nohide | |
133 | if showbox = 1 | |
134 | { | |
135 | ||
136 | show_ip_box = yes | |
137 | goto gui | |
138 | all = bad | |
139 | return | |
140 | } | |
141 | ||
142 | if showbox = 0 | |
143 | { | |
144 | show_ip_box = no | |
145 | goto gui | |
146 | all = bad | |
147 | return | |
148 | } | |
149 | ||
150 | return | |
151 | ||
152 | buttoncancel: | |
153 | exitapp | |
154 | return ; you won't return from that | |
155 | ||
156 | buttoncreate: | |
157 | filedelete, %steampath%config\steamappdata.vdf | |
158 | process, close, hl2.exe | |
159 | process, close, gameoverlayui.exe | |
160 | process, close, steam.exe | |
161 | gui, submit, nohide | |
162 | ifwinexist, Windows Security | |
163 | winclose, Windows Security | |
164 | if ahklmao = 1 | |
165 | if (lmaoversion == "free") | |
166 | { | |
167 | run, %lmaopath% | |
168 | winwaitactive, LMAOBOX PUBLIC | |
169 | winminimize, LMAOBOX PUBLIC | |
170 | } | |
171 | if ahklmao = 1 | |
172 | if (lmaoversion == "paid") | |
173 | { | |
174 | run, %lmaopath% | |
175 | winwaitactive, Windows Security | |
176 | winminimize, Windows Security | |
177 | } | |
178 | ||
179 | if ahklmao = 1 | |
180 | { | |
181 | ifnotexist, %lmaopath% | |
182 | { | |
183 | msgbox, lmaobox not found! check the settings and try again | |
184 | exitapp | |
185 | } | |
186 | } | |
187 | ||
188 | if ahktf2 = 1 | |
189 | ahktf2 = -applaunch 440 | |
190 | if ahktf2 = 0 | |
191 | ahktf2 = | |
192 | ||
193 | regexmatch(ahkipstring, "(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}):(\d{1,5})", ahkip) | |
194 | if (ahkip == "") | |
195 | { | |
196 | guicontrol,, ahkipstring, no ip found! | |
197 | connect = | |
198 | } | |
199 | ||
200 | if not (ahkip == "") | |
201 | { | |
202 | guicontrol,, ahkipstring, will connect to %ahkip%... | |
203 | connect = +connect %ahkip% | |
204 | } | |
205 | run, %steampath%steam.exe | |
206 | sleep, 1000 | |
207 | winwaitactive, Steam | |
208 | sleep, 300 | |
209 | send, {enter} | |
210 | sleep, 50 | |
211 | send, {enter} | |
212 | send, {enter} | |
213 | sleep, 50 | |
214 | send, %ahkname%{tab} | |
215 | sleep, 30 | |
216 | send, %ahkpass%{tab} | |
217 | sleep, 30 | |
218 | send, %ahkpass% | |
219 | sleep, 3010 | |
220 | send, {enter} | |
221 | winwaitactive, Steam - working | |
222 | winwaitclose, Steam - working | |
223 | sleep, 30 | |
224 | send, %ahkmail%{tab} | |
225 | sleep, 30 | |
226 | send, %ahkmail% | |
227 | sleep, 30 | |
228 | send, {enter} | |
229 | winwaitactive, Steam - working | |
230 | winwaitclose, Steam - working | |
231 | sleep, 30 | |
232 | send, {downarrow} | |
233 | sleep, 30 | |
234 | send, {tab} | |
235 | sleep, 30 | |
236 | send, %ahksecret% | |
237 | sleep, 30 | |
238 | send, {enter} | |
239 | winwaitactive, Steam - Working | |
240 | winwaitclose, Steam - Working | |
241 | sleep, 30 | |
242 | send, {enter} | |
243 | sleep, 30 | |
244 | send, {enter} | |
245 | if ahklmao = 1 | |
246 | if (lmaoversion == "free") | |
247 | { | |
248 | winactivate, LMAOBOX PUBLIC | |
249 | winwaitactive, LMAOBOX PUBLIC | |
250 | send, {return} | |
251 | winactivate, Team Fortress 2 | |
252 | } | |
253 | if ahklmao = 1 | |
254 | if (lmaoversion == "paid") | |
255 | { | |
256 | winactivate, Windows Security | |
257 | winwaitactive, Windows Security | |
258 | sleep, 30 | |
259 | send, %lmaouser%{tab}%lmaopass%{return} | |
260 | } | |
261 | run, %steampath%steam.exe %ahktf2% %launchoptions% %connect% | |
262 | winclose, Steam | |
263 | goto gui |