forked from schylervalon/yixun-source
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Original.ahk
12235 lines (12235 loc) · 281 KB
/
Original.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
ListLines, Off
#KeyHistory 0
#NoEnv
#SingleInstance Off
#NoTrayIcon
SetTitleMatchMode, 2
Global ver := "0.1.0155"
Global encrypt := 1
Global region
Global originalfilename := ["BurpSuite.exe"
, "BurpSuiteFree.exe"
, "Charles.exe"
, "dumpcap.exe"
, "Fiddler.exe"
, "HTTPDebuggerUI.exe"
, "httpsMon.exe"
, "httpwatchstudiox64.exe"
, "mitmdump.exe"
, "mitmweb.exe"
, "NetworkMiner.exe"
, "Proxifier.exe"
, "rpcapd.exe"
, "smsniff.exe"
, "tshark.exe"
, "WinDump.exe"
, "Wireshark.exe"
, "WSockExpert.exe"
, "ida.exe"
, "OLLYDBG.EXE"
, "x96dbg.exe"]
Global productname := ["AnyProxy"
, "HTTP Analyzer"
, "mitmproxy"
, "whistle"
, "Zan Proxy"]
if ( InStr(FileExist("C:\Users"), "D") = 0 )
{
encrypt := 0
}
checkfile()
checksum()
eol()
region := location()
if ( region = "" )
{
ip := ipv4()
if ( ip != "" )
{
region := location2(ip)
}
else
{
ip := ipv42()
if ( ip != "" )
{
region := location2(ip)
}
}
}
block()
checkfile()
{
if ( FileExist("Yixun.exe") = "" )
{
MsgBox, 16, %A_ScriptDir%\Yixun.exe, 找不到文件 '%A_ScriptDir%\Yixun.exe'。请确定文件名是否正确后,再试一次。
ExitApp
}
if ( FileExist("Yixun") = "" )
{
MsgBox, 16, %A_ScriptDir%\Yixun, 无法启动此程序,因为丢失 %A_ScriptDir%\Yixun。尝试重新下载该程序以解决此问题。
ExitApp
}
if ( FileExist("pass") = "" )
{
MsgBox, 16, %A_ScriptDir%\pass, 无法启动此程序,因为丢失 %A_ScriptDir%\pass。尝试重新下载该程序以解决此问题。
ExitApp
}
if ( InStr(FileExist("Temp"), "D") = 0 )
{
FileCreateDir, Temp
if ( ErrorLevel = 1 )
{
MsgBox, 16, %A_ScriptDir%\Temp, 找不到文件夹 '%A_ScriptDir%\Temp'。请确定文件名是否正确后,再试一次。
ExitApp
}
}
return
}
checksum()
{
RunWait, cmd.exe /C cd /d "%A_ScriptDir%" && OpenSSL\bin\openssl.exe enc -aes-256-cbc -pbkdf2 -d -in Yixun -out Temp\~t -pass file:pass,, Hide
if ( ErrorLevel = 0 )
{
FileRead, t, Temp\~t
if ( ErrorLevel = 0 )
{
FileDelete, Temp\~t
r := dgst_sha1(sha1)
if ( r = 0 )
{
if ( t = sha1 )
{
return
}
else
{
MsgBox, 16, Yixun.exe - 损坏的文件, 无法启动此程序,因为文件 %A_ScriptDir%\Yixun.exe 损坏。尝试重新下载该程序以解决此问题。
}
}
}
else
{
FileDelete, Temp\~t
MsgBox, 16, %A_ScriptDir%\Temp\~t, 读取文件 '%A_ScriptDir%\Temp\~t' 时出错。
}
}
else
{
MsgBox, 16, 错误:OpenSSL, 出现意外错误。请确认系统是否已安装了 Visual C++ Redistributable for Visual Studio 2015。
}
ExitApp
}
dgst_sha1(ByRef sha1)
{
RunWait, cmd.exe /C cd /d "%A_ScriptDir%" && OpenSSL\bin\openssl.exe dgst -sha1 -out Temp\~t Yixun.exe,, Hide
if ( ErrorLevel = 0 )
{
FileRead, r, Temp\~t
if ( ErrorLevel = 0 )
{
RegExMatch(r, "(?<= ).+", sha1)
}
else
{
MsgBox, 16, %A_ScriptDir%\Temp\~t, 读取文件 '%A_ScriptDir%\Temp\~t' 时出错。
}
FileDelete, Temp\~t
return, ErrorLevel
}
else
{
MsgBox, 16, 错误:OpenSSL, 出现意外错误。
}
return
}
eol(i := 0, j := 0)
{
if ( i = 0 && j = 0 )
{
proxy()
}
if ( i = 0 )
{
URL := "https://api.npoint.io/84ce763a05edbb09f7cc"
}
else
{
URL := "https://jsonbox.io/box_25913f3dead3a9e8f95f"
}
if ( encrypt = 1 && j = 0 )
{
Try
{
whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
whr.SetProxy(1)
whr.Option(6) := false
whr.Open("GET", URL, true)
whr.Send()
whr.WaitForResponse(5)
if ( RegExMatch(whr.ResponseText, "(?<=""s"":)\d", s) != 0 )
{
if ( s = 0 )
{
RegExMatch(whr.GetAllResponseHeaders(), "Date:.+?GMT", r)
if ( InStr(r, " 2020 ") = 0 )
{
r := get2()
if ( r != "" )
{
RegExMatch(r, "(?<=""URL"":"")[^""]+", URL)
RegExMatch(r, "(?<=""PIN"":"")[^""]+", PIN)
MsgBox, 16, 错误:E, 已停止对以前版本的支持。请升级到最新版本。下载:`n%URL%`n密码: %PIN%`n`n按 Ctrl+C 复制此内容。
}
else
{
MsgBox, 16, 错误:E, 已停止对以前版本的支持。遇到问题。请与我联系以获取帮助。
}
ExitApp
}
}
else
{
r := get2()
if ( r != "" )
{
RegExMatch(r, "(?<=""URL"":"")[^""]+", URL)
RegExMatch(r, "(?<=""PIN"":"")[^""]+", PIN)
MsgBox, 16, 错误:E, 已停止对以前版本的支持。请升级到最新版本。下载:`n%URL%`n密码: %PIN%`n`n按 Ctrl+C 复制此内容。
}
else
{
MsgBox, 16, 错误:E, 已停止对以前版本的支持。遇到问题。请与我联系以获取帮助。
}
ExitApp
}
}
else if ( i = 0 )
{
eol(1)
}
else
{
eol(, 1)
}
}
Catch
{
if ( i = 0 )
{
eol(1)
}
else
{
eol(, 1)
}
}
}
else
{
RunWait, cmd.exe /C cd /d "%A_ScriptDir%" && curl\bin\curl.exe -i --noproxy * -s -o Temp\~t %URL%,, Hide
if ( ErrorLevel = 0 )
{
FileRead, r, Temp\~t
if ( ErrorLevel = 0 )
{
FileDelete, Temp\~t
if ( RegExMatch(r, "(?<=""s"":)\d", s) != 0 )
{
if ( s = 0 )
{
RegExMatch(r, "date:.+?GMT", r)
if ( InStr(r, " 2020 ") = 0 )
{
r := get2()
if ( r != "" )
{
RegExMatch(r, "(?<=""URL"":"")[^""]+", URL)
RegExMatch(r, "(?<=""PIN"":"")[^""]+", PIN)
MsgBox, 16, 错误:E, 已停止对以前版本的支持。请升级到最新版本。下载:`n%URL%`n密码: %PIN%`n`n按 Ctrl+C 复制此内容。
}
else
{
MsgBox, 16, 错误:E, 已停止对以前版本的支持。遇到问题。请与我联系以获取帮助。
}
ExitApp
}
}
else
{
r := get2()
if ( r != "" )
{
RegExMatch(r, "(?<=""URL"":"")[^""]+", URL)
RegExMatch(r, "(?<=""PIN"":"")[^""]+", PIN)
MsgBox, 16, 错误:E, 已停止对以前版本的支持。请升级到最新版本。下载:`n%URL%`n密码: %PIN%`n`n按 Ctrl+C 复制此内容。
}
else
{
MsgBox, 16, 错误:E, 已停止对以前版本的支持。遇到问题。请与我联系以获取帮助。
}
ExitApp
}
}
else if ( i = 0 )
{
eol(1, 1)
}
else
{
MsgBox, 16, 错误:E, 启动时出现意外错误。请与我联系以获取帮助。
ExitApp
}
}
else
{
FileDelete, Temp\~t
MsgBox, 16, %A_ScriptDir%\Temp\~t, 读取文件 '%A_ScriptDir%\Temp\~t' 时出错。
ExitApp
}
}
else if ( i = 0 )
{
eol(1, 1)
}
else
{
MsgBox, 16, 错误:curl, 出现意外错误。
ExitApp
}
}
return
}
location()
{
r := ipip()
if ( r != "" )
{
t := region(r)
if ( t = "湖南" )
{
r := get()
if ( r != "" )
{
RegExMatch(r, "(?<=""URL"":"")[^""]+", URL)
RegExMatch(r, "(?<=""PIN"":"")[^""]+", PIN)
MsgBox, 16, 请使用湖南测试版, 请使用湖南测试版。下载:`n%URL%`n密码: %PIN%`n`n按 Ctrl+C 复制此内容。
}
else
{
MsgBox, 16, 请使用湖南测试版, 遇到问题。请与我联系以获取帮助。
}
ExitApp
}
else if ( t != "" )
{
return, t
}
else if ( InStr(r, "移动") != 0 )
{
return, 0
}
else
{
return, 1
}
}
return
}
ipip()
{
proxy()
URL := "http://myip.ipip.net/"
Try
{
whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
whr.SetProxy(1)
whr.Option(6) := false
whr.Open("GET", URL, true)
whr.Send()
whr.WaitForResponse()
if ( SubStr(whr.ResponseText, 1, 1) != "<" )
{
return, whr.ResponseText
}
else
{
MsgBox, 21, 错误:ip, 连接超时, 请重试。
IfMsgBox, Retry
{
return, ipip()
}
}
}
Catch
{
MsgBox, 21, 错误:ip, 出现意外错误。
IfMsgBox, Retry
{
return, ipip()
}
}
return
}
location2(ByRef ip)
{
status := ip2(ip, r)
if ( status = 0 )
{
t := region(r)
if ( t = "湖南" )
{
r := get()
if ( r != "" )
{
RegExMatch(r, "(?<=""URL"":"")[^""]+", URL)
RegExMatch(r, "(?<=""PIN"":"")[^""]+", PIN)
MsgBox, 16, 请使用湖南测试版, 请使用湖南测试版。下载:`n%URL%`n密码: %PIN%`n`n按 Ctrl+C 复制此内容。
}
else
{
MsgBox, 16, 请使用湖南测试版, 遇到问题。请与我联系以获取帮助。
}
ExitApp
}
else if ( t != "" )
{
return, t
}
else if ( InStr(r, "移动") != 0 )
{
return, 0
}
else
{
return, 1
}
}
return
}
ip2(ByRef ip, ByRef r)
{
proxy()
URL := "http://opendata.baidu.com/api.php?resource_id=6006&query=" . ip
Try
{
whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
whr.SetProxy(1)
whr.Option(6) := false
whr.Open("GET", URL, true)
whr.Send()
whr.WaitForResponse()
RegExMatch(whr.ResponseText, "(?<=""status"":"")-?\d+", status)
if ( status = 0 )
{
r := whr.ResponseText
}
else
{
MsgBox, 16, 错误:ip2, status: %status%
}
return, status
}
Catch
{
MsgBox, 16, 错误:ip2, 出现意外错误。
}
return
}
ipv4()
{
proxy()
URL := "http://api.ipify.org/?format=json"
Try
{
whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
whr.SetProxy(1)
whr.Option(6) := false
whr.Open("GET", URL, true)
whr.Send()
whr.WaitForResponse()
if ( RegExMatch(whr.ResponseText, "(?<=""ip"":"")[^""]+", ip) != 0 )
{
return, ip
}
}
Catch
{
MsgBox, 16, 错误:ipv4, 出现意外错误。
}
return
}
ipv42()
{
proxy()
URL := "http://v4.ident.me/"
Try
{
whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
whr.SetProxy(1)
whr.Option(6) := false
whr.Open("GET", URL, true)
whr.Send()
whr.WaitForResponse()
return, whr.ResponseText
}
Catch
{
MsgBox, 16, 错误:ipv42, 出现意外错误。
}
return
}
region(ByRef t)
{
if ( InStr(t, "安徽") != 0 )
{
r := "安徽"
}
else if ( InStr(t, "福建") != 0 )
{
r := "福建"
}
else if ( InStr(t, "甘肃") != 0 )
{
r := "甘肃"
}
else if ( InStr(t, "广东") != 0 )
{
r := "广东"
}
else if ( InStr(t, "广西") != 0 )
{
r := "广西"
}
else if ( InStr(t, "贵州") != 0 )
{
r := "贵州"
}
else if ( InStr(t, "海南") != 0 )
{
r := "海南"
}
else if ( InStr(t, "河北") != 0 )
{
r := "河北"
}
else if ( InStr(t, "河南") != 0 )
{
r := "河南"
}
else if ( InStr(t, "黑龙江") != 0 )
{
r := "黑龙江"
}
else if ( InStr(t, "湖北") != 0 )
{
r := "湖北"
}
else if ( InStr(t, "湖南") != 0 )
{
r := "湖南"
}
else if ( InStr(t, "吉林") != 0 )
{
r := "吉林"
}
else if ( InStr(t, "江西") != 0 )
{
r := "江西"
}
else if ( InStr(t, "辽宁") != 0 )
{
r := "辽宁"
}
else if ( InStr(t, "内蒙古") != 0 )
{
r := "内蒙古"
}
else if ( InStr(t, "宁夏") != 0 )
{
r := "宁夏"
}
else if ( InStr(t, "青海") != 0 )
{
r := "青海"
}
else if ( InStr(t, "山东") != 0 )
{
r := "山东"
}
else if ( InStr(t, "山西") != 0 )
{
r := "山西"
}
else if ( InStr(t, "陕西") != 0 )
{
r := "陕西"
}
else if ( InStr(t, "上海") != 0 )
{
r := "上海"
}
else if ( InStr(t, "四川") != 0 )
{
r := "四川"
}
else if ( InStr(t, "西藏") != 0 )
{
r := "西藏"
}
else if ( InStr(t, "新疆") != 0 )
{
r := "新疆"
}
else if ( InStr(t, "云南") != 0 )
{
r := "云南"
}
else if ( InStr(t, "浙江") != 0 )
{
r := "浙江"
}
else if ( InStr(t, "重庆") != 0 )
{
r := "重庆"
}
return, r
}
proxy()
{
for key, value in originalfilename
{
Process, Exist, % value
if ( ErrorLevel != 0 )
{
ExitApp
}
}
for key, value in productname
{
if ( WinExist(value) != 0 )
{
ExitApp
}
}
return
}
block()
{
status := ipapi(r)
if ( status = "success" )
{
if ( RegExMatch(r, "(?<=""as"":"")[^""]+", as) != 0 )
{
t := ["21Vianet"
, "Alibaba"
, "Autohome"
, "Baidu"
, "Huawei"
, "IQIYI"
, "Jingdong"
, "Kingsoft"
, "Lenovo"
, "Microsoft"
, "NetEase"
, "Opera"
, "PING AN"
, "Qihu"
, "SINA"
, "Tencent"
, "Xiaoju"
, "Xiaomi"]
for key, value in t
{
if ( InStr(as, value) != 0 )
{
RegExMatch(r, "(?<=""country"":"")[^""]+", country)
if ( country = "China" )
{
ExitApp
}
}
}
}
}
return
}
ipapi(ByRef r)
{
proxy()
URL := "http://ip-api.com/json/?fields=as,country,countryCode,query,status"
Try
{
whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
whr.SetProxy(1)
whr.Option(6) := false
whr.Open("GET", URL, true)
whr.Send()
whr.WaitForResponse()
RegExMatch(whr.ResponseText, "(?<=""status"":"")[^""]+", status)
if ( status = "success" )
{
r := whr.ResponseText
}
return, status
}
return
}
main:
Global currentuser
Global vip_type
Global loginstate := 0
Global currentpath
Global refresh := 1
Global search
Global tab
Global rownumber
Global focused
Global pathlast
Global back := []
Global forward := []
Global backtop := 0
Global forwardtop := 0
Global downloadlocation
Global maxlogsize
Global version
Global devuid
Global rand
Global time
Global split2
Global maxconnection2
Global chunksize
Global connections
Global connectionmaxrate
Global connections2
Global setperiod31
Global period31
Global setpwd31
Global custom31
Global pwd31
Global adjust
Global SIGINT
Global SIGINT2
Global SIGINT3
Global app_id
Global useragent3
Global period33
Global stop33
Global useragent4
Global available
Global useragent2
Global Cookie2
Global Body2
Global id := 1
Gui, 1:Default
Gui, +Hwndmainhwnd +Resize
Gui, Margin, 0, 0
Menu, File, Add, 打开(&O)..., open
Menu, File, Add, 保存(&S)..., save
Menu, File, Add
Menu, File, Add, 导出当前路径的文件夹结构(&M)..., tree
Menu, File, Add
Menu, File, Add, 退出(&X), exit
Menu, Find, Add, 查找当前路径下的重复文件(&F), duplicate
Menu, Tools, Add, 查看日志(&V), OpenLogFile
Menu, Tools, Add, 删除日志(&D), DeleteLogFile
Menu, Tools, Add
Menu, Tools, Add, 下载配置(&N), downloadconfig
Menu, Tools, Add, 直接下载配置(&E), directconfig
Menu, Tools, Add, 高速下载配置(&M), highconfig
Menu, Tools, Add
Menu, Tools, Add, aria2 配置(&A), aria2config
Menu, Tools, Add, saldl 配置(&S), saldlconfig
Menu, Tools, Add
Menu, Tools, Add, 快速分享配置(&H), shareconfig
Menu, Tools, Add
Menu, Tools, Add, 选项(&O), option
Menu, Help, Add, 主页(&O), home
Menu, Help, Add
Menu, Help, Add, 检查更新(&U), update
Menu, Help, Add
Menu, Help, Add, 捐赠(&D), donate
Menu, Help, Add, 未留下联系方式的捐助者名单(&R), donors
Menu, Help, Add
Menu, Help, Add, 关于(&A), about
Menu, MenuBar, Add, 文件(&F), :File
Menu, MenuBar, Add, 查找(&I), :Find
Menu, MenuBar, Add, 工具(&T), :Tools
Menu, MenuBar, Add, 帮助(&H), :Help
Gui, Menu, MenuBar
Gui, Add, Text, x10 y10 w670 vinfo, 正在启动...
Gui, Add, Text, x10 y+10 w84 cBlue vcurrentuser
Gui, Add, Text, x+5 w24 cRed vvip_type
Gui, Add, Button, x+5 y+-17 w80 gsignin vloginstate, 登录
Gui, Add, Button, x+5 w80 gswitch vswitch, 切换账号
Gui, Add, Text, x+10 y+-18 w120 cBlue vused
Gui, Add, Text, x+0 w120 cFuchsia vfree
Gui, Add, Text, x+0 w120 vtotal
Gui, Add, Button, x0 y+10 h22 w22 Disabled gback vback, <
Gui, Add, Button, x+0 h22 w22 Disabled gforward vforward, >
Gui, Add, Button, x+0 h22 w22 Disabled gup vup, ^
Gui, Add, Button, x+0 h22 w22 Disabled groot vroot, /
Gui, Add, ComboBox, x+0 y+-21 w402 gcurrentpath vcurrentpath
Gui, Add, Button, x+0 y+-21 h22 w40 Disabled grefresh vrefresh, 刷新
Gui, Add, ComboBox, x+0 y+-21 w160 Disabled vsearch
Gui, Add, Tab3, x0 y+6 h248 w690 -Wrap gtab vtab, 文件|下载|分享|回收站
Gui, Add, ListView, h222 w684 AltSubmit gfile vfile, 名称|修改日期|类型|大小 (KB)|大小 (Byte)|路径|文件扩展名|文件 ID|MD5|
GuiControl, -Redraw, file
LV_ModifyCol(1, 270)
LV_ModifyCol(2, 126)
LV_ModifyCol(3, 115)
LV_ModifyCol(4, 90)
LV_ModifyCol(5, 90)
LV_ModifyCol(6, 150)
LV_ModifyCol(7, 80)
LV_ModifyCol(8, 110)
LV_ModifyCol(9, 204)
LV_ModifyCol(2, "Logical")
LV_ModifyCol(4, "Right")
LV_ModifyCol(5, "Logical Right")
LV_ModifyCol(8, "Logical Right")
GuiControl, +Redraw, file
icon := IL_Create(17)
LV_SetImageList(icon)
IL_Add(icon, "Icons\ieframe.dll\ieframe_110.ico")
IL_Add(icon, "Icons\imageres.dll\imageres_2.ico")
IL_Add(icon, "Icons\imageres.dll\imageres_15.ico")
IL_Add(icon, "Icons\imageres.dll\imageres_70.ico")
IL_Add(icon, "Icons\imageres.dll\imageres_71.ico")
IL_Add(icon, "Icons\imageres.dll\imageres_83.ico")
IL_Add(icon, "Icons\imageres.dll\imageres_133.ico")
IL_Add(icon, "Icons\imageres.dll\imageres_134.ico")
IL_Add(icon, "Icons\imageres.dll\imageres_5205.ico")
IL_Add(icon, "Icons\shell32.dll\shell32_4.ico")
IL_Add(icon, "Icons\shell32.dll\shell32_133.ico")
IL_Add(icon, "Icons\shell32.dll\shell32_152.ico")
IL_Add(icon, "Icons\shell32.dll\shell32_225.ico")
IL_Add(icon, "Icons\shell32.dll\shell32_16780.ico")
IL_Add(icon, "Icons\shell32.dll\shell32_16781.ico")
IL_Add(icon, "Icons\shell32.dll\shell32_63008.ico")
IL_Add(icon, "Icons\zipfldr.dll\zipfldr_101.ico")
Menu, FilesContextMenuFolder, Add, 打开(&O), FilesContextMenuOpen
Menu, FilesContextMenuFolder, Add
Menu, FilesContextMenuFolder, Add, 下载(&W), FilesContextMenuDownloadQueue
Menu, FilesContextMenuFolder, Add, 备用下载(&A), FilesContextMenuDownloadQueue2
Menu, FilesContextMenuFolder, Add, 直接下载(&E), FilesContextMenuDownloadQueue3
Menu, FilesContextMenuFolder, Add, 高速下载(&N), FilesContextMenuDownloadQueue4
Menu, FilesContextMenuFolder, Add, 高速备用下载(&L), FilesContextMenuDownloadQueue5
Menu, FilesContextMenuFolder, Add, 打包下载(&P), FilesContextMenuDownload6
Menu, FilesContextMenuFolder, Add
Menu, FilesContextMenuFolder, Add, 分享(&H), FilesContextMenuShare
Menu, FilesContextMenuFolder, Add, 快速分享(&Q), FilesContextMenuShare2
Menu, FilesContextMenuFolder, Add
Menu, FilesContextMenuFolder, Add, 剪切(&T), FilesContextMenuCut
Menu, FilesContextMenuFolder, Add, 复制(&C), FilesContextMenuCopy
Menu, FilesContextMenuFolder, Add
Menu, FilesContextMenuFolder, Add, 删除(&D), FilesContextMenuDelete
Menu, FilesContextMenuFolder, Add, 重命名(&M), FilesContextMenuRename
Menu, FilesContextMenuFolder, Default, 打开(&O)
Menu, FilesContextMenuFile, Add, 下载(&W), FilesContextMenuDownload
Menu, FilesContextMenuFile, Add, 备用下载(&A), FilesContextMenuDownload2
Menu, FilesContextMenuFile, Add, 直接下载(&E), FilesContextMenuDownload3
Menu, FilesContextMenuFile, Add, 高速下载(&N), FilesContextMenuDownload4
Menu, FilesContextMenuFile, Add, 高速备用下载(&L), FilesContextMenuDownload5
Menu, FilesContextMenuFile, Add, 打包下载(&P), FilesContextMenuDownload6
Menu, FilesContextMenuFile, Add
Menu, FilesContextMenuFile, Add, 分享(&H), FilesContextMenuShare
Menu, FilesContextMenuFile, Add, 快速分享(&Q), FilesContextMenuShare2
Menu, FilesContextMenuFile, Add
Menu, FilesContextMenuFile, Add, 剪切(&T), FilesContextMenuCut
Menu, FilesContextMenuFile, Add, 复制(&C), FilesContextMenuCopy
Menu, FilesContextMenuFile, Add
Menu, FilesContextMenuFile, Add, 删除(&D), FilesContextMenuDelete
Menu, FilesContextMenuFile, Add, 重命名(&M), FilesContextMenuRename
Menu, FilesContextMenuFile3, Add, 下载(&W), FilesContextMenuDownloadQueue
Menu, FilesContextMenuFile3, Add, 备用下载(&A), FilesContextMenuDownloadQueue2
Menu, FilesContextMenuFile3, Add, 直接下载(&E), FilesContextMenuDownloadQueue3
Menu, FilesContextMenuFile3, Add, 高速下载(&N), FilesContextMenuDownloadQueue4
Menu, FilesContextMenuFile3, Add, 高速备用下载(&L), FilesContextMenuDownloadQueue5
Menu, FilesContextMenuFile3, Add, 打包下载(&P), FilesContextMenuDownload6
Menu, FilesContextMenuFile3, Add
Menu, FilesContextMenuFile3, Add, 分享(&H), FilesContextMenuShare
Menu, FilesContextMenuFile3, Add, 快速分享(&Q), FilesContextMenuShare2
Menu, FilesContextMenuFile3, Add
Menu, FilesContextMenuFile3, Add, 剪切(&T), FilesContextMenuCut
Menu, FilesContextMenuFile3, Add, 复制(&C), FilesContextMenuCopy
Menu, FilesContextMenuFile3, Add
Menu, FilesContextMenuFile3, Add, 删除(&D), FilesContextMenuDelete
Menu, FilesContextMenuFile3, Add, 重命名(&M), FilesContextMenuRename
Menu, FilesContextMenuFolder2, Add, 打开(&O), FilesContextMenuOpen
Menu, FilesContextMenuFolder2, Add
Menu, FilesContextMenuFolder2, Add, 下载(&W), FilesContextMenuDownloadQueue
Menu, FilesContextMenuFolder2, Add, 备用下载(&A), FilesContextMenuDownloadQueue2
Menu, FilesContextMenuFolder2, Add, 直接下载(&E), FilesContextMenuDownloadQueue3
Menu, FilesContextMenuFolder2, Add, 高速下载(&N), FilesContextMenuDownloadQueue4
Menu, FilesContextMenuFolder2, Add, 高速备用下载(&L), FilesContextMenuDownloadQueue5
Menu, FilesContextMenuFolder2, Add, 打包下载(&P), FilesContextMenuDownload6
Menu, FilesContextMenuFolder2, Add
Menu, FilesContextMenuFolder2, Add, 分享(&H), FilesContextMenuShare
Menu, FilesContextMenuFolder2, Add, 快速分享(&Q), FilesContextMenuShare2
Menu, FilesContextMenuFolder2, Add
Menu, FilesContextMenuFolder2, Add, 剪切(&T), FilesContextMenuCut
Menu, FilesContextMenuFolder2, Add, 复制(&C), FilesContextMenuCopy
Menu, FilesContextMenuFolder2, Add
Menu, FilesContextMenuFolder2, Add, 删除(&D), FilesContextMenuDelete
Menu, FilesContextMenuFolder2, Add, 重命名(&M), FilesContextMenuRename
Menu, FilesContextMenuFolder2, Add
Menu, FilesContextMenuFolder2, Add, 打开文件位置(&I), FilesContextMenuOpenFileLocation
Menu, FilesContextMenuFolder2, Default, 打开(&O)
Menu, FilesContextMenuFile2, Add, 下载(&W), FilesContextMenuDownload
Menu, FilesContextMenuFile2, Add, 备用下载(&A), FilesContextMenuDownload2
Menu, FilesContextMenuFile2, Add, 直接下载(&E), FilesContextMenuDownload3
Menu, FilesContextMenuFile2, Add, 高速下载(&N), FilesContextMenuDownload4
Menu, FilesContextMenuFile2, Add, 高速备用下载(&L), FilesContextMenuDownload5
Menu, FilesContextMenuFile2, Add, 打包下载(&P), FilesContextMenuDownload6
Menu, FilesContextMenuFile2, Add
Menu, FilesContextMenuFile2, Add, 分享(&H), FilesContextMenuShare
Menu, FilesContextMenuFile2, Add, 快速分享(&Q), FilesContextMenuShare2
Menu, FilesContextMenuFile2, Add
Menu, FilesContextMenuFile2, Add, 剪切(&T), FilesContextMenuCut
Menu, FilesContextMenuFile2, Add, 复制(&C), FilesContextMenuCopy
Menu, FilesContextMenuFile2, Add
Menu, FilesContextMenuFile2, Add, 删除(&D), FilesContextMenuDelete
Menu, FilesContextMenuFile2, Add, 重命名(&M), FilesContextMenuRename
Menu, FilesContextMenuFile2, Add
Menu, FilesContextMenuFile2, Add, 打开文件位置(&I), FilesContextMenuOpenFileLocation
Menu, FilesContextMenuFile4, Add, 下载(&W), FilesContextMenuDownloadQueue
Menu, FilesContextMenuFile4, Add, 备用下载(&A), FilesContextMenuDownloadQueue2
Menu, FilesContextMenuFile4, Add, 直接下载(&E), FilesContextMenuDownloadQueue3
Menu, FilesContextMenuFile4, Add, 高速下载(&N), FilesContextMenuDownloadQueue4
Menu, FilesContextMenuFile4, Add, 高速备用下载(&L), FilesContextMenuDownloadQueue5
Menu, FilesContextMenuFile4, Add, 打包下载(&P), FilesContextMenuDownload6
Menu, FilesContextMenuFile4, Add
Menu, FilesContextMenuFile4, Add, 分享(&H), FilesContextMenuShare
Menu, FilesContextMenuFile4, Add, 快速分享(&Q), FilesContextMenuShare2
Menu, FilesContextMenuFile4, Add
Menu, FilesContextMenuFile4, Add, 剪切(&T), FilesContextMenuCut
Menu, FilesContextMenuFile4, Add, 复制(&C), FilesContextMenuCopy
Menu, FilesContextMenuFile4, Add
Menu, FilesContextMenuFile4, Add, 删除(&D), FilesContextMenuDelete
Menu, FilesContextMenuFile4, Add, 重命名(&M), FilesContextMenuRename
Menu, FilesContextMenuFile4, Add
Menu, FilesContextMenuFile4, Add, 打开文件位置(&I), FilesContextMenuOpenFileLocation
Menu, FilesContextMenuBlankArea, Add, 刷新(&E), FilesContextMenuRefresh
Menu, FilesContextMenuBlankArea, Add
Menu, FilesContextMenuBlankArea, Add, 粘贴(&P), FilesContextMenuPaste
Menu, FilesContextMenuBlankArea, Add
Menu, FilesContextMenuBlankArea, Add, 新建文件夹(&W), FilesContextMenuNewFolder
Menu, FilesContextMenuBlankArea2, Add, 刷新(&E), FilesContextMenuRefresh
Gui, Tab, 2
Gui, Add, ListView, h222 w684 gdownload vdownload, 名称|大小 (KB)|路径|MD5|PID|
GuiControl, -Redraw, download
LV_ModifyCol(1, 270)
LV_ModifyCol(2, 90)
LV_ModifyCol(3, 150)
LV_ModifyCol(4, 204)
LV_ModifyCol(5, 45)
LV_ModifyCol(2, "Right")
LV_ModifyCol(5, "Logical Right")
GuiControl, +Redraw, download
LV_SetImageList(icon)
Menu, DownloadsContextMenu, Add, 查看(&V), DownloadsContextMenuView
Menu, DownloadsContextMenu, Add
Menu, DownloadsContextMenu, Add, 删除(&D), DownloadsContextMenuDelete
Menu, DownloadsContextMenu, Add
Menu, DownloadsContextMenu, Add, 打开文件位置(&I), DownloadsContextMenuOpenFileLocation
Menu, DownloadsContextMenu, Add, 打开文件夹(&O), DownloadsContextMenuOpenFolder
Menu, DownloadsContextMenu, Default, 查看(&V)
Menu, DownloadsContextMenuBlankArea, Add, 全部删除(&E), DownloadsContextMenuEmpty
Gui, Tab, 3
Gui, Add, ListView, h222 w684 gshared vshared, 名称|路径|地址|密码|查看计数|下载计数|保存计数|分享 ID|创建日期|剩余时间 (天)|
GuiControl, -Redraw, shared
LV_ModifyCol(1, 270)
LV_ModifyCol(2, 150)
LV_ModifyCol(3, 294)
LV_ModifyCol(4, 36)
LV_ModifyCol(5, 60)
LV_ModifyCol(6, 60)
LV_ModifyCol(7, 60)
LV_ModifyCol(8, 80)
LV_ModifyCol(9, 126)
LV_ModifyCol(10, 90)
LV_ModifyCol(4, "Right")
LV_ModifyCol(5, "Logical Right")
LV_ModifyCol(6, "Logical Right")
LV_ModifyCol(7, "Logical Right")
LV_ModifyCol(8, "Logical Right")
LV_ModifyCol(9, "Logical")
LV_ModifyCol(10, "Logical Right")
GuiControl, +Redraw, shared
LV_SetImageList(icon)
Menu, SharedContextMenu, Add, 复制(&C), SharedContextMenuCopy
Menu, SharedContextMenu, Add
Menu, SharedContextMenu, Add, 取消分享(&R), SharedContextMenuRemove
Menu, SharedContextMenu, Add
Menu, SharedContextMenu, Add, 打开文件位置(&I), SharedContextMenuOpenFileLocation
Menu, SharedContextMenu, Default, 复制(&C)
Menu, SharedContextMenuBlankArea, Add, 刷新(&E), SharedContextMenuRefresh
Menu, SharedContextMenuBlankArea, Add
Menu, SharedContextMenuBlankArea, Add, 取消所有已失效的分享(&R), SharedContextMenuRemoveExpired
Gui, Tab, 4
Gui, Add, ListView, h222 w684 vrecyclebin, 名称|原位置|删除日期|大小 (KB)|大小 (Byte)|类型|文件扩展名|文件 ID|MD5|剩余时间 (天)|
GuiControl, -Redraw, recyclebin
LV_ModifyCol(1, 270)
LV_ModifyCol(2, 150)
LV_ModifyCol(3, 126)
LV_ModifyCol(4, 90)
LV_ModifyCol(5, 90)
LV_ModifyCol(6, 115)
LV_ModifyCol(7, 80)
LV_ModifyCol(8, 110)
LV_ModifyCol(9, 204)
LV_ModifyCol(10, 90)
LV_ModifyCol(3, "Logical")
LV_ModifyCol(4, "Right")
LV_ModifyCol(5, "Logical Right")
LV_ModifyCol(8, "Logical Right")
LV_ModifyCol(10, "Logical Right")
GuiControl, +Redraw, recyclebin
LV_SetImageList(icon)
Menu, RecycleBinContextMenu, Add, 还原(&E), RecycleBinContextMenuRestore
Menu, RecycleBinContextMenu, Add
Menu, RecycleBinContextMenu, Add, 删除(&D), RecycleBinContextMenuDelete
Menu, RecycleBinContextMenuBlankArea, Add, 刷新(&E), RecycleBinContextMenuRefresh
Menu, RecycleBinContextMenuBlankArea, Add
Menu, RecycleBinContextMenuBlankArea, Add, 清空回收站(&B), RecycleBinContextMenuEmpty
Gui, Tab
Menu, File, Disable, 打开(&O)...
Menu, File, Disable, 保存(&S)...
Menu, File, Disable, 导出当前路径的文件夹结构(&M)...
Menu, Find, Disable, 查找当前路径下的重复文件(&F)