-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
temp_cleaner_gui_r3.1_u12.py
1233 lines (1054 loc) · 66.8 KB
/
temp_cleaner_gui_r3.1_u12.py
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
"""
The Project Temp_Cleaner GUI by Insertx2k Dev.
A simple temporary folders cleaning solution made by Insertx2k Dev under the GNU General Public License
That will help you free up a lot of disk space in your computer through erasing all the Temporary folders
Exist in almost all temporary folders directories either in your C:\ drive (Windows drive) or other drives.
~~Uses the same environment variables as in the version 1.32, except a renewed GUI.~~ - That no longer happens.
Free to modify and redistribute to fit in your needs as explained in the GNU General Public License v2.0 or later.
License for the Project Temp_Cleaner GUI.
A simple program made to help you erase temporary files in your Windows-based PC.
Copyright (C) 2021 - Insertx2k Dev (Mr.X)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
See github.com/insertx2k/temp_cleaner_gui
For a much better github page, try visiting https://insertx2k.github.io/temp_cleaner_gui
The program Temp_Cleaner GUI was previously Temp_Cleaner and it was using a CUI instead of a GUI.
"""
# defining the global variable that holds the font_size of the scrolledtext.ScrolledText widget
# named 'showLicense'
font_size = 14
print()
print("Greetings from the Temp_Cleaner GUI Project.")
print("By Insertx2k Dev (Mr.X)")
print("Github : https://github.com/insertx2k/temp_cleaner_gui")
print("Twitter : https://twitter.com/insertplayztw")
print()
print("Powered by Minimal Accessibility Pack v1.0 by Insertx2k Dev (Mr.X)")
print()
# Importing all the required 3rd party modules.
# from re import L -> This import was no longer required as of Update 3.1
from tkinter import *
# import WINTCMD -> This import was no longer required as of Update 3.1
from tkinter import messagebox
from tkinter import ttk
import os
from PIL import Image, ImageTk
import time
import configparser
from tkinter import filedialog
from tkinter import scrolledtext
import subprocess
from subprocess import PIPE
import awesometkinter as atk
# Defining the function that will get the current values of an configparser values.
GetConfig = configparser.ConfigParser()
GetConfig.read('Config.ini')
root = Tk()
# # Trying to change the theme.
# try:
# # Changing the root's theme.
# root.style = ttk.Style()
# root.style.theme_use("native")
# except Exception as excpt:
# print(f"The following exception had occured while trying to apply the theme 'native' \n {excpt}")
# root.configure(background='white')
try:
login = os.getlogin()
root.title(f"The Temp_Cleaner GUI Project (v3.2) (Windows) (Licensed to : {login}) (Powered by Minimal Accessibility Pack v1.0)")
except Exception as excpt129:
root.title("The Temp_Cleaner GUI Project (v3.2) (Windows) (Powered by Minimal Accessibility Pack v1.0)")
root.geometry('1225x600')
# attempting to change the iconbitmap attribute of the window.
try:
root.iconbitmap("icon0.ico")
except Exception as excpt12: # better high level exception handling.
messagebox.showerror("ERROR 1 in ICONBITMAP", f"Unable to load icon file for this window due to exception:\n{excpt12}")
pass
root.minsize(1225,600)
# Changing the root's color.
# root.configure(background='black')
# Configuring the scrollbar to make it available for the main program's window.
# Create a main frame.
main_frame = Frame(root)
main_frame.pack(fill=BOTH, expand=1)
# Create a canvas.
main_canvas = Canvas(main_frame)
main_canvas.pack(side=LEFT, fill=BOTH, expand=1)
# Add a scrollbar to the canvas
main_scrollbar = atk.SimpleScrollbar(main_frame, orient=VERTICAL, command=main_canvas.yview, bg=atk.DEFAULT_COLOR, slider_color='grey', width=12)
main_scrollbar.pack(side=RIGHT, fill=Y)
# Configure the canvas.
main_canvas.configure(yscrollcommand=main_scrollbar.set)
main_canvas.bind('<Configure>', lambda e: main_canvas.configure(scrollregion = main_canvas.bbox("all")))
# Create another frame INSIDE the canvas.
show_frame = Frame(main_canvas)
# Add that New frame to a window in the canvas.
main_canvas.create_window((0,0), window=show_frame, anchor="nw")
# main_canvas.configure(background='black')
# main_frame.configure(background='black')
# show_frame.configure(background='black')
# Defining some informative labels inside of the Temp_Cleaner GUI's Window.
banner = PhotoImage(file="banner.png")
banner_show = Label(show_frame, image=banner, width=1200, height=300)
banner_show.grid(column=0, row=1, sticky='w')
# Defining the function used to show the user the about window of the program.
def show_about_window():
messagebox.showinfo("About 'The Temp_Cleaner GUI Project (v3.2)'","""The Temp_Cleaner GUI Project by Insertx2k Dev\n
Version 3.2
Written by Insertx2k Dev (Mr.X)
Support Twitter : @insertplayztw
Support Github : InsertX2k
This release of Temp_Cleaner GUI is powered by "Minimal Accessibility Pack v1.0" by Insertx2k Dev (Mr.X).
\n
In this update of The Temp_Cleaner GUI Project, We've fixed the issue of "Windows Update Cleaner" that suddenly disappered, and we've changed the look 'n' feel of the program.
GitHub page : https://github.com/insertx2k/temp_cleaner_gui
Better UI GitHub page : https://insertx2k.github.io/temp_cleaner_gui
\n
This program is Free Software (FOSS), You are allowed to modify or redistribute it under the terms of GNU General Public License v2.0 or later @ Free Software Foundation.
""")
return None
# Defining the function to execute the following selected commands :
def execute_theprogram():
ShowNotificationDone = True
exec_btn.configure(text="Executing", command=None)
# show_output() # Calling the show output method so you can actually see what's happening inside.
output_show.configure(state='normal')
selection = var0.get()
if selection == '1':
process = subprocess.getoutput('rmdir /s /q "%systemdrive%\\$Recycle.bin"')
output_show.insert(END, f"\n {process}")
selection1 = var1.get()
if selection1 == '1':
process = subprocess.getoutput(' cd /d "%windir%"&erase /s /f /q prefetch')
output_show.insert(END, f"\n {process}")
selection2 = var2.get()
if selection2 == '1':
process = subprocess.getoutput(' cd /d %localappdata%&erase /s /f /q "D3DSCache"')
output_show.insert(END, f"\n {process}")
selection3 = var3.get()
if selection3 == '1':
process = subprocess.getoutput(' cd /d %windir%&erase /s /f /q "Temp"')
output_show.insert(END, f"\n {process}")
selection4 = var4.get()
if selection4 == '1':
process = subprocess.getoutput(' cd /d %localappdata%&erase /s /f /q "Temp"')
output_show.insert(END, f"\n {process}")
selection5 = var5.get()
if selection5 == '1':
process = subprocess.getoutput(' cd /d %localappdata%&cd Google&cd Chrome&cd "User Data"&cd "Default"&erase /s /f /q "GPUCache"&erase /s /f /q Cache&erase /s /f /q "Code Cache"')
output_show.insert(END, f"\n {process}")
selection6 = var6.get()
if selection6 == '1':
process = subprocess.getoutput(' cd /d %localappdata%&cd Google&cd Chrome&cd "User Data"&cd "Default"&del /s /q "Cookies"&del /s /q "Cookies-journal"')
output_show.insert(END, f"\n {process}")
selection9 = var7.get()
if selection9 == '1':
process = subprocess.getoutput(' cd /d "%systemdrive%\\Users\\Default\\AppData\\Local"&erase /s /f /q Temp')
output_show.insert(END, f"\n {process}")
selection10 = var8.get()
if selection10 == '1':
process = subprocess.getoutput(' cd /d "%localappdata%\\Microsoft\\Windows"&erase /s /f /q "INetCache"')
output_show.insert(END, f"\n {process}")
selection11 = var9.get()
if selection11 == '1':
process = subprocess.getoutput(' @echo off | clip')
output_show.insert(END, f"\n {process}")
selection12 = var10.get()
if selection12 == '1':
process = subprocess.getoutput(' cd /d %localappdata%&cd microsoft&cd windows&cd explorer&del /s /q *thumbcache*&cd /d %localappdata%\microsoft\windows\explorer&del /s /q *thumb*')
output_show.insert(END, f"\n {process}")
selection13 = var11.get()
if selection13 == '1':
process = subprocess.getoutput(' cd /d %userprofile%\\AppData\\Roaming&cd Microsoft&cd Windows&erase /s /f /q Recent')
output_show.insert(END, f"\n {process}")
selection14 = var12.get()
if selection14 == '1':
process = subprocess.getoutput(' cd /d "%userprofile%\\AppData\\Roaming\\discord"&erase /s /f /q "Cache"&erase /s /f /q "Code Cache"&erase /s /f /q "GPUCache"&erase /s /f /q "Local Storage"')
output_show.insert(END, f"\n {process}")
selection15 = var13.get()
if selection15 == '1':
process = subprocess.getoutput(' cd /d "%userprofile%\\AppData\\Roaming\\GIMP\\2.10"&erase /s /f /q "tmp"')
output_show.insert(END, f"\n {process}")
selection16 = var14.get()
if selection16 == '1':
process = subprocess.getoutput(' cd /d "%localappdata%\\Steam\\htmlcache"&erase /s /f /q "Cache"&erase /s /f /q "Code Cache"&erase /s /f /q "GPUCache"')
output_show.insert(END, f"\n {process}")
selection17 = var15.get()
if selection17 == '1':
process = subprocess.getoutput(' cd /d "%windir%\\SoftwareDistribution"&del /f /s /q "Download"')
output_show.insert(END, f"\n {process}")
reboot_uwp = messagebox.askquestion("Restart Windows Update Service", "After you delete all Downloaded files by the Windows Update Service you should restart the whole service to commit changes you did to it\nWould you like to restart the Windows Update Service?")
if reboot_uwp == "yes":
root_2 = Tk()
root_2.title("Restart Windows Update Service")
root_2.geometry('500x90')
root_2.resizable(False,False)
try:
root_2.iconbitmap("icon0.ico")
except Exception as excpt24:
messagebox.showerror("ERROR 1 in ICONBITMAP process", f"Unable to load the icon file for this window due to Exception:\n{excpt24}")
pass
# Defining some labels used to show the user that something is happening inside.
lbl0x = Label(root_2, text="Restarting Windows Update Service...", font=("Arial", 19))
lbl0x.place(x=25 ,y=20)
# Defining the actions used to restart the Windows update service.
process = subprocess.getoutput('net start wuauserv')
# Defining the commands used to show the user that all pending operations has been successfully completed!
messagebox.showinfo("Restart Windows Update Service", "Windows Update Service Has been successfully restarted!")
# Defining the mainloop destroy once the execution is done.
root_2.destroy()
root_2.mainloop()
messagebox.showinfo("Restart Windows Update Service", "Done restarting the Windows Update Service!")
else:
messagebox.showinfo("Restart Windows Update Service", "Expect your device to have problems with Windows Update if you didn't restart it as soon as possible then.")
selection18 = var16.get()
if selection18 == '1':
process = subprocess.getoutput(' cd /d %localappdata%\\Microsoft\\Windows&erase /s /f /q "Caches"')
output_show.insert(END, f"\n {process}")
selection19 = var17.get()
if selection19 == '1':
process = subprocess.getoutput(' cd /d "%localappdata%\\Microsoft\\Windows"&erase /s /f /q "INetCookies"')
output_show.insert(END, f"\n {process}")
selection20 = var18.get()
if selection20 == '1':
process = subprocess.getoutput(' cd /d %localappdata%\\Microsoft\\Windows&erase /s /f /q "IECompatCache"&erase /s /f /q "IECompatUaCache"')
output_show.insert(END, f"\n {process}")
selection21 = var19.get()
if selection21 == '1':
process = subprocess.getoutput(' cd /d %localappdata%\\Microsoft\\Windows&erase /s /f /q "IEDownloadHistory"')
output_show.insert(END, f"\n {process}")
selection22 = var20.get()
if selection22 == '1':
process = subprocess.getoutput(' cd /d "%localappdata%\\Microsoft\\Windows"&erase /s /f /q "ActionCenterCache"')
output_show.insert(END, f"\n {process}")
selection23 = var21.get()
if selection23 == '1':
process = subprocess.getoutput(' cd /d %localappdata%\\Microsoft\\Windows&erase /s /f /q "AppCache"')
output_show.insert(END, f"\n {process}")
selection24 = var22.get()
if selection24 == '1':
conf1 = messagebox.askquestion("Clean Store-based MS Edge Cached Data", "Cleaning Store-based MS Edge cached data can not be done automatically, which means you are supposed to do that manually, which will make this tool open an explorer (Windows Explorer) window for you showing you the folder where you are supposed to clean MS-Store-Based EDGE Webcache data\nPlease keep in mind that you shouldn't leave the directory opened to you by this tool\nSo do you wish to processed?")
if conf1 == "yes":
messagebox.showinfo("Clean Store-based MS Edge Cached Data", "Opening the directory for you\nDon't forget to look for the folder Microsoft.MicrosoftEdge_[a random number], and go inside the AC folder inside of it, you will then be able to see all MS Store-based edge webcached data.")
process = subprocess.getoutput(' explorer.exe "%localappdata%\\Packages\\"')
output_show.insert(END, f"\n {process}")
messagebox.showinfo("Clean Windows Modern Applications Cached Data", "Done!")
else:
messagebox.showinfo("Clean Windows Modern Applications Cached Data", "Operation canceled by the user.")
selection25 = var23.get()
if selection25 == '1':
process = subprocess.getoutput(' cd /d "%localappdata%\\Microsoft\\Windows\\Explorer"&erase /s /f /q "ThumbCacheToDelete"')
output_show.insert(END, f"\n {process}")
selection26 = var24.get()
if selection26 == '1':
process = subprocess.getoutput(' cd /d "%localappdata%\\Microsoft\\Edge\\User Data\\Default"&erase /s /f /q "GPUCache"&erase /s /f /q "Cache"&erase /s /f /q "Code Cache"')
output_show.insert(END, f"\n {process}")
selection27 = var25.get()
if selection27 == '1':
process = subprocess.getoutput(' cd /d "%localappdata%\\Microsoft\\Edge\\User Data\\Default"&del /s /q "Cookies"&del /s /q "Cookies-journal"')
output_show.insert(END, f"\n {process}")
selection28 = var26.get()
if selection28 == '1':
process = subprocess.getoutput(' cd /d "%localappdata%\\Roblox"&erase /s /f /q "Downloads"')
output_show.insert(END, f"\n {process}")
selection29 = var27.get()
if selection29 == '1':
process = subprocess.getoutput(' cd /d "%appdata%\\Adobe\\Adobe Photoshop 2020\\Adobe Photoshop 2020 Settings\\web-cache-temp"&erase /s /f /q "GPUCache"&erase /s /f /q "Code Cache"&del /s /f /q "Visited Links"')
output_show.insert(END, f"\n {process}")
selection30 = var28.get()
if selection30 == '1':
process = subprocess.getoutput(' cd /d "%localappdata%\\VEGAS Pro\\17.0"&erase /s /f /q "File Explorer Thumbnails"&erase /s /f /q "Device Explorer Thumbnails"&del /s /f /q "*.autosave.veg.bak"&del /s /f /q "svfx_Ofx*.log"')
output_show.insert(END, f"\n {process}")
selection31 = var29.get()
if selection31 == '1':
process = subprocess.getoutput(' cd /d "%localappdata%\\McNeel\\Rhinoceros"&erase /s /f /q "temp"')
output_show.insert(END, f"\n {process}")
selection32 = var30.get()
if selection32 == '1':
process = subprocess.getoutput(' cd /d "%userprofile%\\AppData\\LocalLow\\Microsoft"&erase /s /f /q /A:S "CryptnetUrlCache"')
output_show.insert(END, f"\n {process}")
selection33 = var31.get()
if selection33 == '1':
process = subprocess.getoutput(' cd /d "%localappdata%\\pip"&erase /s /f /q "cache"')
output_show.insert(END, f"\n {process}")
selection34 = var32.get()
if selection34 == '1':
conf2 = messagebox.askquestion("Empty Windows Workingsets", "Would you really like to run RAMMap by Sysinternals to empty RAM Workingsets?")
if conf2 == "yes":
RAMMAPpath_var = GetConfig['ProgConfig']['RAMMapPath']
if RAMMAPpath_var == '$DEFAULT':
messagebox.showinfo("Notification", "The path of the RAMMap tool is set to '$DEFAULT', Continuing using the default configured RAMMap path.")
process = subprocess.getoutput(r'"%systemdrive%\RAMMap\RAMMap.exe" -Ew')
output_show.insert(END, f"\n {process}")
messagebox.showinfo("Empty Windows Workingsets", "RAMMap.exe - Command sent.")
else:
process = subprocess.getoutput(rf'""{RAMMAPpath_var}"\RAMMap.exe" -Ew')
output_show.insert(END, f"\n {process}")
messagebox.showinfo("Empty Windows Workingsets", "RAMMap.exe - Command sent.")
else:
messagebox.showinfo("Empty Windows Workingsets", "Operation has been canceled.")
selection35 = var33.get()
if selection35 == '1':
process = subprocess.getoutput(' cd /d "%localappdata%\\Google\\Chrome\\User Data\\Default"&del /s /q "Extension Cookies"&del /s /q "Extension Cookies-journal"')
output_show.insert(END, f"\n {process}")
selection36 = var34.get()
if selection36 == '1':
CDPCCPATH_var = GetConfig['ProgConfig']['CDPCCPATH']
if CDPCCPATH_var == '$DEFAULT':
messagebox.showinfo("Notification", "You didn't specify a custom location for the Windows activites cache cleaner to work on, Continuing using the Default values.")
process = subprocess.getoutput(' cd /d "%localappdata%\\ConnectedDevicesPlatform"&erase /s /f /q "ee2999716b7783e6"')
output_show.insert(END, f"\n {process}")
else:
subprocess.getoutput(rf' cd /d "%localappdata%\\ConnectedDevicesPlatform"&erase /s /f /q "{CDPCCPATH_var}"')
output_show.insert(END, f"\n {process}")
selection37 = var35.get()
if selection37 == '1':
conf3 = messagebox.askquestion("Clean icon cache", "Cleaning IconCache.db file can not be done automatically, which means the user is premitted to do that manually, all what you have to do is just deleting the file iconcache.db in the directory we will open to you\nDo you wish to processed?")
if conf3 == "yes":
process = subprocess.getoutput('%windir%\\explorer.exe "%localappdata%"')
output_show.insert(END, f"\n {process}")
messagebox.showinfo("Clean icon cache database file", "Done!")
else:
pass
selection38 = var36.get()
if selection38 == '1':
process = subprocess.getoutput(' cd /d "%localappdata%"&erase /s /f /q "Microvirt"')
output_show.insert(END, f"\n {process}")
selection39 = var37.get()
if selection39 == '1':
ADWCLRPATH_var = GetConfig['ProgConfig']['ADWCLRPath']
if ADWCLRPATH_var == '$DEFAULT':
messagebox.showinfo("Notification", "You didn't specify a custom working location for the AdwareCleaner Cleaner, Continuing using the default path.")
process = subprocess.getoutput(' erase /s /f /q "%systemdrive%\\AdwCleaner\\Logs"')
output_show.insert(END, f"\n {process}")
else:
process = subprocess.getoutput(rf' erase /s /f /q "{ADWCLRPATH_var}\Logs"')
output_show.insert(END, f"\n {process}")
selection40 = var38.get()
if selection40 == '1':
process = subprocess.getoutput(' %systemdrive%&cd /d \\.\\&erase /s /f /q "PerfLogs"')
output_show.insert(END, f"\n {process}")
selection41 = var39.get()
if selection41 == '1':
process = subprocess.getoutput(' cd /d "%userprofile%"&rmdir /s /q ".cache"')
output_show.insert(END, f"\n {process}")
selection42 = var40.get()
if selection42 == '1':
process = subprocess.getoutput(' cd /d "%localappdata%"&erase /s /f /q "SquirrelTemp"')
output_show.insert(END, f"\n {process}")
selection43 = var41.get()
if selection43 == '1':
process = subprocess.getoutput(' cd /d "%userprofile%\\AppData\\LocalLow"&erase /s /f /q "Temp"')
output_show.insert(END, f"\n {process}")
selection44 = var42.get()
if selection44 == '1':
process = subprocess.getoutput(' cd /d "%localappdata%"&erase /s /f /q "ElevatedDiagnostics"')
output_show.insert(END, f"\n {process}")
selection45 = var43.get()
if selection45 == '1':
process = subprocess.getoutput(' cd /d "%localappdata%\\VMware"&erase /s /f /q "vmware-download*"')
output_show.insert(END, f"\n {process}")
selection46 = var44.get()
if selection46 == '1':
process = subprocess.getoutput(' cd /d "%userprofile%\\appdata\\roaming\\balena-etcher"&erase /s /f /q "blob_storage"&erase /s /f /q "Code Cache"&erase /s /f /q "GPUCache"&erase /s /f /q "Local Storage"&erase /s /f /q "Session Storage"')
output_show.insert(END, f"\n {process}")
selection47 = var45.get()
if selection47 == '1':
process = subprocess.getoutput(' cd /d "%appdata%"&cd /d "%userprofile%\\AppData\\Roaming"&erase /s /f /q "pyinstaller"')
output_show.insert(END, f"\n {process}")
selection48 = var46.get()
if selection48 == '1':
process = subprocess.getoutput(' cd /d "%localappdata%"&erase /s /f /q "Jedi"')
output_show.insert(END, f"\n {process}")
selection49 = var47.get()
if selection49 == '1':
process = subprocess.getoutput(' cd /d "%localappdata%"&del /s /q "recently-used.xbel"')
output_show.insert(END, f"\n {process}")
selection50 = var48.get()
if selection50 == '1':
process = subprocess.getoutput(' cd /d "%localappdata%"&del /s /q "llftool.*.agreement"')
output_show.insert(END, f"\n {process}")
selection51 = var49.get()
if selection51 == '1':
process = subprocess.getoutput(' cd /d "%localappdata%"&erase /s /f /q "IdentityNexusIntegration"')
output_show.insert(END, f"\n {process}")
selection52 = var50.get()
if selection52 == '1':
process = subprocess.getoutput(' cd /d "%localappdata%\\Axolot Games"&cd "Scrap Mechanic"&cd "Temp"&erase /s /f /q "WorkshopIcons"')
output_show.insert(END, f"\n {process}")
selection53 = var51.get()
if selection53 == '1':
process = subprocess.getoutput(' cd /d "%localappdata%\\Roblox"&erase /s /f /q "logs"')
output_show.insert(END, f"\n {process}")
selection54 = var52.get()
if selection54 == '1':
process = subprocess.getoutput(' cd /d "%userprofile%\\AppData\\Roaming\\Code"&erase /s /f /q "GPUCache"&erase /s /f /q "Code Cache"&erase /s /f /q "CachedData"&erase /s /f /q "Cache"')
output_show.insert(END, f"\n {process}")
selection55 = var53.get()
if selection55 == '1':
process = subprocess.getoutput(' cd /d "%userprofile%\\AppData\\Roaming\\Code"&del /s /q "Cookies"&del /s /q "Cookies-journal"')
output_show.insert(END, f"\n {process}")
selection56 = var54.get()
if selection56 == '1':
process = subprocess.getoutput(' cd /d "%userprofile%\\AppData\\Roaming\\Code"&erase /s /f /q "CachedExtensions"&erase /s /f /q "CachedExtensionVSIXs"')
output_show.insert(END, f"\n {process}")
selection57 = var55.get()
if selection57 == '1':
WINXPEPATH_var = GetConfig['ProgConfig']['WINXPEPATH']
if WINXPEPATH_var == '$NONE':
messagebox.showinfo("An ERROR has occured", "You didn't specify the path of the 'WinXPE' program, The cleaner can't continue.")
else:
process = subprocess.getoutput(rf' erase /s /f /q "{WINXPEPATH_var}\Temp"')
output_show.insert(END, f"\n {process}")
messagebox.showinfo("Note", "You will need to redownload all downloaded data by the tool for the exporting phase to be done!")
selection58 = var56.get()
if selection58 == '1':
process = subprocess.getoutput(' cd /d "%localappdata%"&erase /s /f /q "ServiceHub"')
output_show.insert(END, f"\n {process}")
selection59 = var57.get()
if selection59 == '1':
process = subprocess.getoutput(' erase /s /f /q "%localappdata%\\HiSuite\\log"')
output_show.insert(END, f"\n {process}")
selection60 = var58.get()
if selection60 == '1':
process = subprocess.getoutput(' erase /s /f /q "%userprofile%\\AppData\\Roaming\\.minecraft\\webcache"')
output_show.insert(END, f"\n {process}")
selection61 = var59.get()
if selection61 == '1':
process = subprocess.getoutput(' cd /d "%localappdata%\\Mozilla\\Firefox\\Profiles"&cd *.default-release&erase /s /f /q "cache2"&erase /s /f /q "jumpListCache"&cd /d "%userprofile%\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles"&cd *.default-release&erase /s /f /q "shader-cache"')
output_show.insert(END, f"\n {process}")
selection62 = var60.get()
if selection62 == '1':
process = subprocess.getoutput(' cd /d "%userprofile%\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles"&cd *.default-release&del /s /q "cookies.sqlite"')
output_show.insert(END, f"\n {process}")
selection63 = var61.get()
if selection63 == '1':
process = subprocess.getoutput(' cd /d "%localappdata%\\VEGAS"&erase /s /f /q "ErrorReport"')
output_show.insert(END, f"\n {process}")
selection64 = var62.get()
if selection64 == '1':
process = subprocess.getoutput(' cd /d "%userprofile%\\AppData\\LocalLow\\Sun\\Java\\Deployment"&erase /s /f /q "tmp"')
output_show.insert(END, f"\n {process}")
selection65 = var63.get()
if selection65 == '1':
process = subprocess.getoutput(' cd /d "%localappdata%\\HiSuite\\userdata"&erase /s /f /q "DropTemp"')
output_show.insert(END, f"\n {process}")
selection66 = var64.get()
output_show.insert(END, "\n\n\n All pending operations has been completed!\n\n\n\nYou may press the 'F6' button in your keyboard to clear console.\n\n\n")
output_show.configure(state='disabled')
if selection66 == '1':
ShowNotificationDone = False
root.destroy()
# Sleeping a bit for longer (or equal) to 5 seconds.
time.sleep(1)
try:
# Ok, let's revert everything back to what it was before.
exec_btn.configure(text="Execute", command=execute_theprogram)
except TclError as tkerr:
pass
# Fixing the bug that caused the user to see another tk window appearing when they select to close the program when everything had completed!
if ShowNotificationDone == True:
# ShowNotificationAllDone()
pass
else:
pass
return None
def ShowNotificationAllDone():
# Now, let's send the user a message telling them that everything had done.
# messagebox.showinfo("Complete", "All pending operations has been completed!")
pass
# Defining the function that calls the configuration window of this program.
def StartConfigurationWindow():
"""
This thing here just defines the Configuration window of such software.
This function is no longer experiemental.
"""
global font_size
# Defining the function used to destroy the whole activity without saving any changes.
def SelfDestroy():
ConfigRoot.destroy()
return None
# Defining the browse for directory function for all browsing folders.
def BrowseForDirectory(parent):
BrowseForDirectoryWindow = filedialog.askdirectory()
FinalDirectory = BrowseForDirectoryWindow
parent.delete(0, END)
parent.insert(INSERT, FinalDirectory)
return None
# Defining the browse 1 func.
def BrowseOne():
BrowseForDirectory(rammappath_input)
return None
def BrowseTwo():
BrowseForDirectory(adwcleanerwpath_input)
return None
def BrowseThree():
BrowseForDirectory(winxpeapppath_input)
return None
def BrowseFour():
BrowseForDirectory(cdpccpath_input)
return None
# Defining the function to retrieve the configuration from the configuration file then outputs it into the textboxes.
def RetrieveConfig():
"""
The function used to get the configuration information from the file "Config.ini" in the current program path.
Do not try to call this function, it will be automatically called when needed.
"""
RetrieveConfig_Init = configparser.ConfigParser()
try:
RetrieveConfig_Init.read("Config.ini")
except:
messagebox.showerror("Runtime Exception", "Unable to retrieve the configuration information, this can be due to a hard exception, or a something else, the settings window will close.")
ConfigRoot.destroy()
try:
rammappath_input.insert(INSERT, RetrieveConfig_Init['ProgConfig']['RAMMapPath'])
adwcleanerwpath_input.insert(INSERT, RetrieveConfig_Init['ProgConfig']['ADWCLRPath'])
winxpeapppath_input.insert(INSERT, RetrieveConfig_Init['ProgConfig']['WINXPEPATH'])
cdpccpath_input.insert(INSERT, RetrieveConfig_Init['ProgConfig']['CDPCCPATH'])
except:
messagebox.showerror("A runtime exception", "Unable to read the configuration file from your computer, please make sure to give this program a permission to read files in your hard disk if blocked by your antivirus software and try again, The settings window will close.")
ConfigRoot.destroy()
return None
# It is the time to define the function used to save the changes to the configuration file "Config.ini"
def SaveConfigurationandQuit():
try:
ConfigFileSaveProcess = configparser.ConfigParser()
ConfigFileSaveProcess.read("Config.ini")
except:
messagebox.showerror("A runtime exception", "Unable to open the configuration file on your computer, please make sure to give this program enough permissions to do so, and if your antivirus blocks it, please give it access and try again.")
ConfigRoot.destroy()
# Second try.
try:
ConfigFileSaveProcess['ProgConfig']['RAMMapPath'] = rammappath_input.get()
ConfigFileSaveProcess['ProgConfig']['ADWCLRPath'] = adwcleanerwpath_input.get()
ConfigFileSaveProcess['ProgConfig']['WINXPEPATH'] = winxpeapppath_input.get()
ConfigFileSaveProcess['ProgConfig']['CDPCCPATH'] = cdpccpath_input.get()
# Right now, I guess it is enough and we should rn write the configuration data to the file "Config.ini".
with open("Config.ini", 'w') as ConfigFileProcessor:
ConfigFileSaveProcess.write(ConfigFileProcessor)
# Defining the window which will tell the user that a reboot is needed to apply the changes.
messagebox.showinfo("Saved your changes", "All changes you did has been successfully saved, but for the changes to take effect, you will need to restart Temp_Cleaner GUI.")
# Okay, enough with that, let's destroy the main loop ok?
ConfigRoot.destroy()
except:
messagebox.showerror("A runtime exception", "Unable to save your changes to the file 'Config.ini', Nothing has changed yet, and this window will not close.")
return None
# Defining the root constructor.
ConfigRoot = Tk()
# Defining the root properties.
ConfigRoot.title("Settings @ Temp_Cleaner GUI")
ConfigRoot.geometry('1202x600')
ConfigRoot.resizable(False,False)
ConfigRoot.minsize(1202,600)
ConfigRoot.maxsize(1202,600)
try:
ConfigRoot.iconbitmap("icon0.ico")
except Exception as excpt672:
messagebox.showerror("ERROR 1 in ICONBITMAP", f"Unable to load icon file for this window due to Exception:\n{excpt672}")
pass
ConfigRoot.configure(bg='#008aff')
def showLicenseWindow():
global font_size
# defining a new toplevel widget to show the program's license on.
licenseShow = Toplevel()
licenseShow.title("License for Temp_Cleaner GUI")
licenseShow.geometry('640x480')
licenseShow.minsize(640, 480)
licenseShow.resizable(True, True)
def decrFontSize(keybinding_arg):
"""
This function decreases the font size of the text in the window (TopLevel widget) `licenseShow`
This function is a part of the "Minimal Accessibility Pack" for Temp_Cleaner GUI
"""
global font_size
# checking if font size is equal to 4.
if int(font_size) == 4:
messagebox.showerror("Do you want to decrease more?", "Is your computer's screen really that big?, If yes, Then I'm sorry I can't help you anymore.")
return False
else:
font_size = font_size - 1
showLicenseStext.configure(font=("Arial", font_size))
return None
# print("Decrease font size")
return None
def incrFontSize(keybinding_arg):
"""
This function increases the font size of the text in the window (TopLevel widget) `licenseShow`
This function is a part of the "Minimal Accessibility Pack" for Temp_Cleaner GUI
"""
global font_size
# checking if font size is 100.
if int(font_size) == 100:
messagebox.showerror("Increase font size", "Is your eyesight really that low?, If yes, Then I'm sorry I can't help you anymore.")
return False
else:
font_size = font_size + 1
showLicenseStext.configure(font=("Arial", font_size))
return None
# print("Increase font size")
return None
def showHelp(keybinding_arg):
messagebox.showinfo("Help on using 'Minimal Accessibility Pack v1.0'", f"""Minimal Accessibility Pack v1.0 is here!
You can enjoy using your favorite Mr.X software, even if you have any problems either with your computer's screen or with your eyesight.
To increase the font size, You can do "Control + I"
To decrease the font size, You can do "Control + D"
And thank you for choosing Mr.X's Software!
Powered by Minimal Accessibility Pack v1.0 by Insertx2k Dev (Mr.X).
""")
return None
# attempting to change the iconbitmap of the show license window.
try:
licenseShow.iconbitmap("icon0.ico")
pass
except Exception as excpt0:
messagebox.showerror("Error @ LICENSESHOW WINDOW", f"{excpt0}")
pass
# defining the scrolledtext.ScrolledText widget that holds everything in the license text.
showLicenseStext = scrolledtext.ScrolledText(licenseShow, font=("Arial", font_size), foreground='black', selectbackground='#009cda', selectforeground='black', state='disabled', cursor='arrow')
showLicenseStext.pack(expand=1, fill="both")
# adding license text to that widget.
showLicenseStext.configure(state='normal')
showLicenseStext.delete(1.0, END)
showLicenseStext.insert(END, """License for the project Temp_Cleaner GUI release 1.1 and all releases of it :
A simple program made to help you erase temporary files in your Windows-based PC.
Copyright (C) 2021 - Insertx2k Dev (Mr.X) or The X Software Foundation
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
""")
# I don't want the widget to be editable anymore.
showLicenseStext.configure(state='disabled')
# binding keystrokes "Control-D" to decrease font size, and "Control-I" to increase the font size.
licenseShow.bind("<Control-d>", decrFontSize)
licenseShow.bind("<Control-D>", decrFontSize)
licenseShow.bind("<Control-i>", incrFontSize)
licenseShow.bind("<Control-I>", incrFontSize)
licenseShow.bind("<F1>", showHelp)
# calling the mainloop() of the toplevel widget licenseShow.
licenseShow.mainloop()
# if mainloop was destroyed, return this function with None.
return None
# Defining some informative labels (Basically some bla bla blas).
lbl0_config = Label(ConfigRoot, text="Temp_Cleaner Settings", font=("Arial Bold", 32), background='#008aff', foreground='white')
lbl0_config.place(x=20, y=7)
lbl1_config = Label(ConfigRoot, text="Configure the working pathes and other settings related to the Runtime of Temp_Cleaner", foreground='white', background='#008aff', font=("Arial", 12))
lbl1_config.place(x=20, y=70)
lbl2_config = Label(ConfigRoot, text="Enter the path where RAMMap by Sysinternals tool executable is stored in :", foreground='white', background='#008aff', font=("Arial",12))
lbl2_config.place(x=20, y=100)
rammappath_input = ttk.Entry(ConfigRoot, width=180)
rammappath_input.place(x=20, y=130)
rammappath_input_browsebtn = ttk.Button(ConfigRoot, text="...", command=BrowseOne)
rammappath_input_browsebtn.place(x=1108, y=131, relwidth=0.027, relheight=0.033)
lbl3_config = Label(ConfigRoot, text="Enter the current working path of the tool MalwareBytes AdwareCleaner :", foreground='white', background='#008aff', font=("Arial",12))
lbl3_config.place(x=20, y=155)
adwcleanerwpath_input = ttk.Entry(ConfigRoot, width=180)
adwcleanerwpath_input.place(x=20, y=180)
adwcleanerwpath_input_browsebtn = ttk.Button(ConfigRoot, text="...", command=BrowseTwo)
adwcleanerwpath_input_browsebtn.place(x=1108, y=180, relwidth=0.027, relheight=0.033)
lbl4_config = Label(ConfigRoot, text="WinXPE Program Path :", foreground='white', background='#008aff', font=("Arial", 12))
lbl4_config.place(x=20, y=205)
winxpeapppath_input = ttk.Entry(ConfigRoot, width=180)
winxpeapppath_input.place(x=20, y=230)
winxpeapppath_input_browsebtn = ttk.Button(ConfigRoot, text="...", command=BrowseThree)
winxpeapppath_input_browsebtn.place(x=1108, y=230, relwidth=0.027, relheight=0.033)
lbl5_config = Label(ConfigRoot, text="Enter the name of the User ID folder inside the WindowsActivitiesCache Folder (Optional) :", foreground='white', background='#008aff', font=("Arial",12))
lbl5_config.place(x=20, y=257)
cdpccpath_input = ttk.Entry(ConfigRoot, width=180)
cdpccpath_input.place(x=20, y=283)
cdpccpath_input_browsebtn = ttk.Button(ConfigRoot, text="...", command=BrowseFour)
cdpccpath_input_browsebtn.place(x=1108, y=283, relwidth=0.027, relheight=0.033)
# defining the copyright window button.
showcpyrights_windowbtn = ttk.Button(ConfigRoot, text="License for Temp_Cleaner GUI", command=showLicenseWindow)
showcpyrights_windowbtn.place(relwidth=0.30, relheight=0.060, x=410, y=550)
closewindow_btn = atk.Button3d(ConfigRoot, text="Quit", command=SelfDestroy)
closewindow_btn.place(x=20, y=550, relwidth=0.30, relheight=0.060)
# Tonight I'd fly, and be your lover.
# Yeah, Yeah, Yeah....
applychangesandclose_btn = atk.Button3d(ConfigRoot, text="Apply and Quit", command=SaveConfigurationandQuit)
applychangesandclose_btn.place(x=800, y=550, relwidth=0.30, relheight=0.060)
# Gas Gas Gas.
# I'm gonna run in the flash.
# Tonight I will fight, to be the winner.
# lbl6_config = Label(ConfigRoot, text="License : ", font=("Arial Bold", 20), foreground='white', background='#008aff')
# lbl6_config.place(x=200, y=400)
# I no longer want the user to see license in the main window of the settings thing.
# Calling the function to retrieve the configuration information from the config.ini file.
RetrieveConfig()
# Calling the ConfigRoot's Mainloop (Used to allow the user to interact to the window freely)
ConfigRoot.mainloop()
# Defining a sample get var functionaking a new checkbox.
# Defining the ON-OFF Like variable
var0 = StringVar()
var1 = StringVar()
var2 = StringVar()
var3 = StringVar()
var4 = StringVar()
var5 = StringVar()
var6 = StringVar()
var7 = StringVar()
var8 = StringVar()
var9 = StringVar()
var10 = StringVar()
var11 = StringVar()
var12 = StringVar()
var13 = StringVar()
var14 = StringVar()
var15 = StringVar()
var16 = StringVar()
var17 = StringVar()
var18 = StringVar()
var19 = StringVar()
var20 = StringVar()
var21 = StringVar()
var22 = StringVar()
var23 = StringVar()
var24 = StringVar()
var25 = StringVar()
var26 = StringVar()
var27 = StringVar()
var28 = StringVar()
var29 = StringVar()
var30 = StringVar()
var31 = StringVar()
var32 = StringVar()
var33 = StringVar()
var34 = StringVar()
var35 = StringVar()
var36 = StringVar()
var37 = StringVar()
var38 = StringVar()
var39 = StringVar()
var40 = StringVar()
var41 = StringVar()
var42 = StringVar()
var43 = StringVar()
var44 = StringVar()
var45 = StringVar()
var46 = StringVar()
var47 = StringVar()
var48 = StringVar()
var49 = StringVar()
var50 = StringVar()
var51 = StringVar()
var52 = StringVar()
var53 = StringVar()
var54 = StringVar()
var55 = StringVar()
var56 = StringVar()
var57 = StringVar()
var58 = StringVar()
var59 = StringVar()
var60 = StringVar()
var61 = StringVar()
var62 = StringVar()
var63 = StringVar()
var64 = StringVar()
# Defining the checkbox button.
lblframe0 = ttk.Labelframe(show_frame, text="Recycle Bin Cleanup")
# --------------------------
clr_recyclebin_sysdrive_btn = ttk.Checkbutton(lblframe0, text="Empty Systemdrive Recycle Bin", variable=var0, onvalue="1", offvalue="0", command=None)
clr_recyclebin_sysdrive_btn.grid(column=0, row=3, sticky='w')
# ---------------------------
lblframe0.grid(column=0, row=2, sticky='w')
lblframe1 = ttk.Labelframe(show_frame, text="DirectX Shader Cache Cleanup (Win 10/11 Only)")
# ---------------------------
clr_d3dscache_localappdata_btn = ttk.Checkbutton(lblframe1, text="Clean D3DSCached data in local app data Directory", variable=var2, onvalue="1", offvalue="0", command=None)
clr_d3dscache_localappdata_btn.grid(column=0, row=5, sticky='w')
# ---------------------------
lblframe1.grid(column=0, row=4, sticky='w')
lblframe2 = ttk.Labelframe(show_frame, text="System and User Specific Cleaner")
# ---------------------------
clr_prefetchw_windir_btn = ttk.Checkbutton(lblframe2, text="Clean PrefetchW in Windows Directory Data.", variable=var1, onvalue="1", offvalue="0", command=None)
clr_prefetchw_windir_btn.grid(column=0, row=7, sticky='w')
clr_usrclipboard_content_btn = ttk.Checkbutton(lblframe2, text="Clean User Clipboard Data (Excl. Content you copy 'n' paste)", variable=var9, onvalue="1", offvalue="0", command=None)
clr_usrclipboard_content_btn.grid(column=0, row=8, sticky='w')
clr_windir_temp_btn = ttk.Checkbutton(lblframe2, text="Clear Windir Temporary Data", variable=var3, onvalue="1", offvalue="0", command=None)
clr_windir_temp_btn.grid(column=0, row=9, sticky='w')
clr_localappdata_temp_btn = ttk.Checkbutton(lblframe2, text="Clean User Temporary Data", variable=var4, onvalue="1", offvalue="0", command=None)
clr_localappdata_temp_btn.grid(column=0, row=10, sticky='w')
clr_default_usr_appdata_temp_btn = ttk.Checkbutton(lblframe2, text="Clean Default User Temporary Files", variable=var7, onvalue="1", offvalue="0", command=None)
clr_default_usr_appdata_temp_btn.grid(column=0, row=11, sticky='w')
clr_inet_cached_data_btn = ttk.Checkbutton(lblframe2, text="Clean IE (Internet Explorer) Cached data", variable=var8, onvalue="1", offvalue="0", command=None)
clr_inet_cached_data_btn.grid(column=0, row=12, sticky='w')
clr_msexplorer_thumbcacheddata_btn = ttk.Checkbutton(lblframe2, text="Clean Windows Explorer Thumbnails Cached Data", variable=var10, onvalue="1", offvalue="0", command=None)
clr_msexplorer_thumbcacheddata_btn.grid(column=0, row=13, sticky='w')
clr_winrecentdocs_list_btn = ttk.Checkbutton(lblframe2, text="Clean User Recent Documents List", variable=var11, onvalue="1", offvalue="0", command=None)
clr_winrecentdocs_list_btn.grid(column=0, row=14, sticky='w')
clr_locallow_temporary_data_btn = ttk.Checkbutton(lblframe2, text="Clean Local Low Temporary Folders", variable=var41, onvalue="1", offvalue="0", command=None)
clr_locallow_temporary_data_btn.grid(column=0, row=15, sticky='w')
# ---------------------------
lblframe2.grid(column=0, row=6, sticky='w')
lblframe3 = ttk.Labelframe(show_frame, text="Web Browser Cleaner")
# ---------------------------
clr_gchrome_webcache_incl_gpucache_codecache_btn = ttk.Checkbutton(lblframe3, text="Clean Google Chrome Browser Webcached data (Incl. GPUCache, Code Cache)", variable=var5, onvalue="1", offvalue="0", command=None)
clr_gchrome_webcache_incl_gpucache_codecache_btn.grid(column=0, row=17, sticky='w')
clr_gchrome_browser_cookies_btn = ttk.Checkbutton(lblframe3, text="Clean Google Chrome Browser Cookies (Incl. Cookies-journal)", variable=var6, onvalue="1", offvalue="0", command=None)
clr_gchrome_browser_cookies_btn.grid(column=0, row=18, sticky='w')
clr_gchrome_extension_cookies_data_btn = ttk.Checkbutton(lblframe3, text="Clean Google Chrome Browser Extension Cookie Data", variable=var33, onvalue="1", offvalue="0", command=None)
clr_gchrome_extension_cookies_data_btn.grid(column=0, row=19, sticky='w')
clr_steam_webclient_htmlcache_btn = ttk.Checkbutton(lblframe3, text="Clean Steam Webclient HTML Cached data", variable=var14, onvalue="1", offvalue="0", command=None)
clr_steam_webclient_htmlcache_btn.grid(column=0, row=20, sticky='w')
clr_discordwebclient_webcacheddata_btn = ttk.Checkbutton(lblframe3, text="Clean Discord Webclient Webcached data", variable=var12, onvalue="1", offvalue="0", command=None)
clr_discordwebclient_webcacheddata_btn.grid(column=0, row=21, sticky='w')
clr_chromiumbased_msedge_webcached_data_btn = ttk.Checkbutton(lblframe3, text="Clean Chromium-based Microsoft Edge Webcached data (Incl. GPUCache, Code cache)", variable=var24, onvalue="1", offvalue="0", command=None)
clr_chromiumbased_msedge_webcached_data_btn.grid(column=0, row=22, sticky='w')
clr_chormiumbased_msedge_cookies_data_btn = ttk.Checkbutton(lblframe3, text="Clean Chromium-based Microsoft Edge Cookie data (Incl. Cookies-journal)", variable=var25, onvalue="1", offvalue="0", command=None)
clr_chormiumbased_msedge_cookies_data_btn.grid(column=0, row=23, sticky='w')
clr_mozilla_firefox_webcached_data_btn = ttk.Checkbutton(lblframe3, text="Clean Mozilla Firefox Webcached data (Incl. cache2, jumpListCache, and Shader Cache)", variable=var59, onvalue="1", offvalue="0", command=None)
clr_mozilla_firefox_webcached_data_btn.grid(column=0, row=24, sticky='w')
clr_mozilla_firefox_cookies_sqlite_file_btn = ttk.Checkbutton(lblframe3, text="Clean Mozilla Firefox browser Cookie data (it is just a Sqlite file)", variable=var60, onvalue="1", offvalue="0", command=None)
clr_mozilla_firefox_cookies_sqlite_file_btn.grid(column=0, row=25, sticky='w')
clr_discordapp_squirrel_temp_data_btn = ttk.Checkbutton(lblframe3, text="Clean Discord Windows Client Squirrel Temp", variable=var40, onvalue="1", offvalue="0", command=None)
clr_discordapp_squirrel_temp_data_btn.grid(column=0, row=26, sticky='w')
clr_inetcookies_btn = ttk.Checkbutton(lblframe3, text="Clean Internet Explorer Cookies Data", variable=var17, onvalue="1", offvalue="0", command=None)
clr_inetcookies_btn.grid(column=0, row=27, sticky='w')
clr_additionalinet_cacheddata_btn = ttk.Checkbutton(lblframe3, text="Clean Internet Explorer Additional Cached Data", variable=var18, onvalue="1", offvalue="0", command=None)
clr_additionalinet_cacheddata_btn.grid(column=0, row=28, sticky='w')
clr_iedownload_history_data_btn = ttk.Checkbutton(lblframe3, text="Clean Internet Explorer Downloads History Data", variable=var19, onvalue="1", offvalue="0", command=None)
clr_iedownload_history_data_btn.grid(column=0, row=29, sticky='w')
# ---------------------------
lblframe3.grid(column=0, row=16, sticky='w')
lblframe4 = ttk.Labelframe(show_frame, text="Photo Editors Cleanup")
# ---------------------------
clr_gimpstmps_btn = ttk.Checkbutton(lblframe4, text="Clean GNU Image Manipulation Program's Temporary data (gimp's tmps)", variable=var13, onvalue="1", offvalue="0", command=None)
clr_gimpstmps_btn.grid(column=0, row=31, sticky='w')
clr_gimp_recentdocs_btn = ttk.Checkbutton(lblframe4, text="Clean GNU Image Manipulation Program Recent Documents List (GIMP)", variable=var47, onvalue="1", offvalue="0", command=None)
clr_gimp_recentdocs_btn.grid(column=0, row=32, sticky='w')
clr_adobephotoshop_webcached_data_btn = ttk.Checkbutton(lblframe4, text="Clean Adobe Photoshop 2020 Webcached data", variable=var27, onvalue="1", offvalue="0", command=None)
clr_adobephotoshop_webcached_data_btn.grid(column=0, row=33, sticky='w')
# ---------------------------
lblframe4.grid(column=0, row=30, sticky='w')
lblframe5 = ttk.Labelframe(show_frame, text="Microsoft Windows Update Cleaners")
# ---------------------------
clr_windowsupdate_downloaded_updates_btn = ttk.Checkbutton(lblframe5, text="Clean all Windows Update's Downloaded Update Files", variable=var15, onvalue="1", offvalue="0", command=None)
clr_windowsupdate_downloaded_updates_btn.grid(column=0, row=35, sticky='w')
# ---------------------------
lblframe5.grid(column=0, row=34, sticky='w')
lblframe6 = ttk.Labelframe(show_frame, text="Windows 10/11 only Cleaners")
# ---------------------------
clr_win10os_cached_data_btn = ttk.Checkbutton(lblframe6, text="Clean Windows 10/11 Operating System Cached Data", variable=var16, onvalue="1", offvalue="0", command=None)
clr_win10os_cached_data_btn.grid(column=0, row=37, sticky='w')
clr_win10_action_center_cached_data_btn = ttk.Checkbutton(lblframe6, text="Clean Windows 10/11 Action Center/Notifications Center Cached data", variable=var20, onvalue="1", offvalue="0", command=None)
clr_win10_action_center_cached_data_btn.grid(column=0, row=38, sticky='w')
clr_winappux_cached_data_btn = ttk.Checkbutton(lblframe6, text="Clean Windows 10/11 Modern Applications Cached data", variable=var21, onvalue="1", offvalue="0", command=None)
clr_winappux_cached_data_btn.grid(column=0, row=39, sticky='w')
clr_msstore_based_edge_webcached_data_btn = ttk.Checkbutton(lblframe6, text="Clean Microsoft Store Based Edge Web cached data", variable=var22, onvalue="1", offvalue="0", command=None)
clr_msstore_based_edge_webcached_data_btn.grid(column=0, row=40, sticky='w')
clr_winexplorer_thumbcache_to_delete_files_btn = ttk.Checkbutton(lblframe6, text="Clean Additional Windows Explorer Thumbnails Cached Data (thumbcachetodelete)", variable=var23, onvalue="1", offvalue="0", command=None)
clr_winexplorer_thumbcache_to_delete_files_btn.grid(column=0, row=41, sticky='w')
clr_cryptnet_urlcache_data_btn = ttk.Checkbutton(lblframe6, text="Clean Windows 10/11 Cryptnet URL Cached data", variable=var30, onvalue="1", offvalue="0", command=None)
clr_cryptnet_urlcache_data_btn.grid(column=0, row=42, sticky='w')
clr_connecteddevicesplatform_win10_cached_data_btn = ttk.Checkbutton(lblframe6, text="Clean Windows 10/11 ConnectedDevicesPlatform Cached Data (Requires you to set it's path in Settings)", variable=var34, onvalue="1", offvalue="0", command=None)
clr_connecteddevicesplatform_win10_cached_data_btn.grid(column=0, row=43, sticky='w')
clr_elevated_diagnostics_data_btn = ttk.Checkbutton(lblframe6, text="Clean Elevated Diagnostics Data folder (Only for Windows 10/11)", variable=var42, onvalue="1", offvalue="0", command=None)
clr_elevated_diagnostics_data_btn.grid(column=0, row=44, sticky='w')
clr_identitynexus_integration_folder_btn = ttk.Checkbutton(lblframe6, text="Clean IdentityNexusIntegration Folder contents (Only for Windows 10/11)", variable=var49, onvalue="1", offvalue="0", command=None)
clr_identitynexus_integration_folder_btn.grid(column=0, row=45, sticky='w')
clr_servicehub_identity_file_btn = ttk.Checkbutton(lblframe6, text="Clean ServiceHub Identity file (that salt file)", variable=var56, onvalue="1", offvalue="0", command=None)
clr_servicehub_identity_file_btn.grid(column=0, row=46, sticky='w')
# ---------------------------
lblframe6.grid(column=0, row=36, sticky='w')
lblframe7 = ttk.Labelframe(show_frame, text="Games Cleaner")
# ---------------------------
clr_roblox_game_downloads_btn = ttk.Checkbutton(lblframe7, text="Clean ROBLOX Game Downloaded Textures/Data", variable=var26, onvalue="1", offvalue="0", command=None)
clr_roblox_game_downloads_btn.grid(column=0, row=48, sticky='w')