-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGUI_notepad.bat
More file actions
3386 lines (3331 loc) · 146 KB
/
Copy pathGUI_notepad.bat
File metadata and controls
3386 lines (3331 loc) · 146 KB
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
::
:: //\
:: //|\\
:: // | \\
:: // | \\
:: //---|---\\
:: // | \\
:: // | \\
:://_GUI notepad_\\
::
::Codename Tentclip
::
::Only edit if you are a developer. Do not open GUI notepad
::inside of itself, as you may self destruct it, if you do so
::(save process requires initial file deletion, before saving
::data).
::
@echo off
set pathname=%1
set args=%2
set args2=%3
set "pathname=%pathname:+= %"
set "pathname=%pathname:"= %"
if "%pathname%"=="+= " set "pathname="
::Do not delete this line. This is required for infinite note functionality.
::Removing it will render viewing notes impossible.
setlocal EnableDelayedExpansion
set "tab= "
for /l %%a in (1,1,1000) do set "bck=!bck!"
::Argument lines
if "%pathname%"=="" goto normalboot
if "%pathname%"=="/?" goto help_command
if "%pathname%"=="/V" goto verino
if "%pathname%"=="/v" goto verino
if "%pathname%"=="/N" set none=true
if "%pathname%"=="/n" set none=true
if "%args%"=="/N" set none=true
if "%args%"=="/n" set none=true
if "%args2%"=="/N" set none=true
if "%args2%"=="/n" set none=true
if "%pathname%"=="/Q" set cone=true
if "%pathname%"=="/q" set cone=true
if "%args%"=="/Q" set cone=true
if "%args%"=="/q" set cone=true
if "%args2%"=="/Q" set cone=true
if "%args2%"=="/q" set cone=true
if "%pathname%"=="/I" call :bg_binary_write&echo Command complited successfully&goto :eof
if "%pathname%"=="/i" call :bg_binary_write&echo Command complited successfully&goto :eof
if "%pathname:~0,2%"=="/E" call :typecmd&goto :eof
if "%pathname:~0,2%"=="/e" call :typecmd&goto :eof
if "%pathname:~0,2%"=="/C" goto convert_f
if "%pathname:~0,2%"=="/c" goto convert_f
::Normal bootup procceedure
:normalboot
if "%pathname%"=="/n" set "pathname="
if "%pathname%"=="/N" set "pathname="
if "%pathname%"=="/q" set "pathname="
if "%pathname%"=="/Q" set "pathname="
if "%none%"=="true" color 07&goto skipdisplay
::Splash screen
mode 80,25
color E0
cls
echo.
echo.
echo.
echo.
echo. ____
echo. ^| ^|
echo. ^|^|^|^|^|^|
echo. ^|^|^|^|^|^|
echo. ^|^|^|^|^|^| GUI notepad
echo. ^|^|^|^|^|^| Version 2.01
echo. ^|^|^|^|^|^| Public version
echo. ^|^|^|^|^|^|
echo. ^|^|^|^|^|^|
echo. ^|____^|
echo. \__/
echo. \/===================
echo.
echo.
echo.
ping localhost -n 2 >nul
bg.exe time>%temp%\l
set /p timeday=<%temp%\l
del %temp%\l
::End of splash screen
:skipdisplay
::Default values for color settings
set bg=0
set tx=7
set bgmen=7
set txmen=0
set bgsel=8
set txsel=7
set num1=1
set num2=2
set num3=3
set num4=4
set num5=5
set num6=6
set num7=7
set num8=8
set num9=9
set num10=10
set realine=1
set focus=Main
if "%timeday:~5,2%"=="12" call :christmascheck
if not "%note%"=="" goto viewnote
bg cursor 0
if exist "%windir%\System32\bg.exe" set bgst=true
if exist "bg.exe" set bgst=true
if "%bgst%"=="" set bgst=false
if "%bgst%"=="false" goto errorport
if not "%pathname%"=="" title Loading %pathname%
if not "%pathname%"=="" goto loadother
cls
color %bg%%tx%
set da=t
set pathname=new.txt
@echo off
setlocal EnableDelayedExpansion
set "tab= "
for /l %%a in (1,1,1000) do set "bck=!bck!"
goto main_interface
:christmascheck
if "%timeday:~8,2%"=="24" call :christmastheme
if "%timeday:~8,2%"=="25" call :christmastheme
if "%timeday:~8,2%"=="26" call :christmastheme
if "%timeday:~8,2%"=="27" call :christmastheme
if "%timeday:~8,2%"=="31" set neve=t
goto :eof
:christmastheme
set bg=0
set tx=2
set bgmen=4
set txmen=2
set bgsel=C
set txsel=A
set da=t
goto :eof
:funfactor
set /a timehour=0
set /a timeminute=0
set /a timesec=0
set /a timemilli=0
SET /A fnum=%RANDOM% * 26 / 32768 + 1
if "%neve%"=="t" call :neve&goto :eof
if "%fnum%"=="1" set ff1=You can use .prefix. in front of a line&set ff2=to add a prefix to a line.&goto :eof
if "%fnum%"=="2" set ff1=You can use .suffix. in front of a line&set ff2=to add a suffix to a line.&goto :eof
if "%fnum%"=="3" set ff1=Current date and time is %date% %time%&set "ff2="
if "%fnum%"=="4" set ff1=GUI notepad was created in Estonia&set "ff2="
if "%fnum%"=="5" set ff1=You can stil load older GUI notepad documents.&set ff2=They will be automatically converted to plain text.
if "%fnum%"=="6" set /a timehour=23-%time:~0,2%&set /a timeminute=59-%time:~3,2%&set /a timesec=59-%time:~6,2%&set /a timemilli=99-%time:~9,2%&set ff1=Time until the next day:&set ff2=%timehour% hours, %timeminute% minutes, %timesec% seconds, %timemilli% milliseconds
if "%fnum%"=="6" set /a timehour=23-%time:~0,2%&set /a timeminute=59-%time:~3,2%&set /a timesec=59-%time:~6,2%&set /a timemilli=99-%time:~9,2%&set ff1=Time until the next day:&set ff2=%timehour% hours, %timeminute% minutes, %timesec% seconds, %timemilli% milliseconds
if "%fnum%"=="7" set ff1=You are currently editing line %linenum%&set ff2=You are editing file ..%pathname:~0,-40%
if "%fnum%"=="8" set ff1=The pencil you see at the splash and about screen is not originally&set ff2=made by me, but I edited it a little bit.
if "%fnum%"=="9" set ff1=This batch file is codenamed Tentclip. It is&set ff2=a combination of a tent and a paperclip.
if "%fnum%"=="10" set ff1=This is a fun fact number 10&set "ff2="
if "%fnum%"=="11" set ff1=A Mask La Rum is an anagram for my name&set ff2=Steak Meal Re Gun is an anagram for my channel name.
if "%fnum%"=="12" set ff1=Sentence The quick brown fox jumped over the lazy dog&set ff2=contains every single letter from the English alphabet.
if "%fnum%"=="13" set ff1=This is a fact 13. You may not have a lot of luck.&set "ff2=Not a fact, but just saying"
if "%fnum%"=="14" set ff1=Lorem Ipsum is simply dummy text of the printing&set ff2=and typesetting industry. It has been so since 1500s.
if "%fnum%"=="15" set ff1=This is not a randomly generated number: %random%&set ff2=It used computer time to generate itself.
if "%fnum%"=="16" set ff1=When you're editing your document, you can simply&set ff2=press Enter/Return to use previously typed line (or use up/down arrow keys).
if "%fnum%"=="17" set ff1=You can't press ALT+F4 to close Command Prompt window&set "ff2="
if "%fnum%"=="18" set ff1=This fact got removed during the QA testing...&set ff2=It was about drugs.
if "%fnum%"=="19" set ff1=This fact can only be seen in the source code. Whatever the funfactor does, this fnum won't appear anywere
if "%fnum%"=="19" set ff1=MS-DOS stands for Microsoft Disk Operating System&set "ff2="
if "%fnum%"=="20" set ff1=Windows name came from its first version having&set ff2=windows user can interact with.
if "%fnum%"=="21" set ff1=XP in Windows XP's name stands for eXPerience.
if "%fnum%"=="22" set ff1=Linux was named by combining the name of its creator&set ff2=(Linus) and what it was built upon (Unix).
if "%fnum%"=="23" set ff1=Ubuntu was named so, because in Zulu and Xhosa languages&set ff2=in Africa, roughly means ^"humanity towards others^"
if "%fnum%"=="24" set ff1=USB stands for Universal Serial Bus, as it is a connection bus&set ff2=in a serial connection, that is meant to be universal.
if "%fnum%"=="25" set ff1=32-bit Unix time is going to end at 03:14:07 UTC &set ff2=on 19 January 2038.
if "%fnum%"=="26" set ff1=This batch file currently has 3370 lines of code.&set "ff2="
goto :eof
:neve
set /a timehour=23-%time:~0,2%
set /a timeminute=59-%time:~3,2%
set /a timesec=59-%time:~6,2%
set /a timemilli=99-%time:~9,2%
set ff1=Time until the next year:
set ff2=%timehour% hours, %timeminute% minutes, %timesec% seconds, %timemilli% milliseconds
goto :eof
::Main UX
:main_interface
if "%viewingnote%"=="true" goto checkpage
if "%editingnote%"=="true" goto mousenote
if "%demo%"=="true" set demo=
if "%noted%"=="exit" goto mousenote
echo %tab%%bck% 2>nul&set /p=<nul
Echo.
bg print %bgmen%%txmen% " File Edit Format View Help "
Echo.
Echo.
Echo.
Echo. To begin, click file and then New note.
Echo. If you want to continue your previous work,
Echo. click file and then Load note.
Echo.
Echo.
Echo.
Echo.
Echo.
Echo.
Echo.
Echo.
Echo.
Echo.
Echo.
Echo.
Echo.
Echo.
Echo.
echo %tab%%bck% 2>nul&set /p=<nul
Echo.
bg print %bgmen%%txmen% " File Edit Format View Help "
Echo.
Echo.
Echo.
Echo. To begin, click file and then New note.
Echo. If you want to continue your previous work,
Echo. click file and then Load note.
Echo.
Echo. Fun fact:
Echo.
call :funfactor
:ref
Echo. %ff1%
Echo. %ff2%
Echo.
Echo.
Echo.
Echo.
Echo.
Echo.
Echo.
Echo.
Echo.
Echo.
:mi
for /f "tokens=1- 3" %%a in ('bg.exe mouse') do set down=%%a&set top=%%b
set key=%down%x%top%
if %key% == 1x1 goto menu
if %key% == 1x2 goto menu
if %key% == 1x3 goto menu
if %key% == 1x4 goto menu
if %key% == 1x5 goto menu
if %key% == 1x6 goto menu
if %key% == 1x9 goto menu3
if %key% == 1x10 goto menu3
if %key% == 1x11 goto menu3
if %key% == 1x12 goto menu3
if %key% == 1x13 goto menu3
if %key% == 1x14 goto menu3
if %key% == 1x28 goto menu4
if %key% == 1x29 goto menu4
if %key% == 1x30 goto menu4
if %key% == 1x31 goto menu4
if %key% == 1x36 goto menu5
if %key% == 1x37 goto menu5
if %key% == 1x38 goto menu5
if %key% == 1x39 goto menu5
if %key% == 1x40 goto menu5
if %key% == 1x41 goto menu5
if %key% == 1x16 goto menu2
if %key% == 1x17 goto menu2
if %key% == 1x18 goto menu2
if %key% == 1x19 goto menu2
if %key% == 1x20 goto menu2
if %key% == 1x21 goto menu2
if %key% == 1x22 goto menu2
if %key% == 1x23 goto menu2
if %key% == 1x16 goto menu2
if %key% == 1x17 goto menu2
goto mi
:change_my_menu
echo %tab%%bck% 2>nul&set /p=<nul
Echo.
bg print %bgmen%%txmen% " File Edit Format View Help "
echo.
echo.
echo.
echo.
echo.
if %key% == 1x1 goto menu
if %key% == 1x2 goto menu
if %key% == 1x3 goto menu
if %key% == 1x4 goto menu
if %key% == 1x5 goto menu
if %key% == 1x6 goto menu
if %key% == 1x9 goto menu3
if %key% == 1x10 goto menu3
if %key% == 1x11 goto menu3
if %key% == 1x12 goto menu3
if %key% == 1x13 goto menu3
if %key% == 1x14 goto menu3
if %key% == 1x28 goto menu4
if %key% == 1x29 goto menu4
if %key% == 1x30 goto menu4
if %key% == 1x31 goto menu4
if %key% == 1x36 goto menu5
if %key% == 1x37 goto menu5
if %key% == 1x38 goto menu5
if %key% == 1x39 goto menu5
if %key% == 1x40 goto menu5
if %key% == 1x41 goto menu5
if %key% == 1x16 goto menu2
if %key% == 1x17 goto menu2
if %key% == 1x18 goto menu2
if %key% == 1x19 goto menu2
if %key% == 1x20 goto menu2
if %key% == 1x21 goto menu2
if %key% == 1x22 goto menu2
if %key% == 1x23 goto menu2
if %key% == 1x16 goto menu2
if %key% == 1x17 goto menu2
goto :eof
:checkpage
set viewingnote=false
set /a page=%page%-1
if "%page%"=="0" set page=1
if "%page%"=="" set page=1
goto realview
:menu
echo %tab%%bck% 2>nul&set /p=<nul
Echo.
bg print %bgsel%%txsel% " File "&bg print %bgmen%%txmen% " Edit Format View Help "
Echo.
bg print %bgmen%%txmen% " New note "
echo.
bg print %bgmen%%txmen% " Load note "
echo.
bg print %bgmen%%txmen% " Save note "
Echo.
bg print %bgmen%%txmen% " Exit "
echo.
for /f "tokens=1- 3" %%a in ('bg.exe mouse') do set down=%%a&set top=%%b
set key=%down%x%top%
if %key% == 1x1 goto main_interface
if %key% == 1x2 goto main_interface
if %key% == 1x3 goto main_interface
if %key% == 1x4 goto main_interface
if %key% == 1x5 goto main_interface
if %key% == 1x6 goto main_interface
if %key% == 2x1 set pathname=new.txt&goto newnote
if %key% == 2x2 set pathname=new.txt&goto newnote
if %key% == 2x3 set pathname=new.txt&goto newnote
if %key% == 2x4 set pathname=new.txt&goto newnote
if %key% == 2x5 set pathname=new.txt&goto newnote
if %key% == 2x6 set pathname=new.txt&goto newnote
if %key% == 2x7 set pathname=new.txt&goto newnote
if %key% == 2x8 set pathname=new.txt&goto newnote
if %key% == 4x1 goto savenote
if %key% == 4x2 goto savenote
if %key% == 4x3 goto savenote
if %key% == 4x4 goto savenote
if %key% == 4x5 goto savenote
if %key% == 4x6 goto savenote
if %key% == 4x7 goto savenote
if %key% == 4x8 goto savenote
if %key% == 4x9 goto savenote
if %key% == 3x1 goto loadnote
if %key% == 3x2 goto loadnote
if %key% == 3x3 goto loadnote
if %key% == 3x4 goto loadnote
if %key% == 3x5 goto loadnote
if %key% == 3x6 goto loadnote
if %key% == 3x7 goto loadnote
if %key% == 3x8 goto loadnote
if %key% == 3x9 goto loadnote
if %key% == 5x1 goto exit
if %key% == 5x2 goto exit
if %key% == 5x3 goto exit
if %key% == 5x4 goto exit
if %key% == 1x10 goto change_my_menu
if %key% == 1x11 goto change_my_menu
if %key% == 1x12 goto change_my_menu
if %key% == 1x13 goto change_my_menu
if %key% == 1x14 goto change_my_menu
if %key% == 1x28 goto change_my_menu
if %key% == 1x29 goto change_my_menu
if %key% == 1x30 goto change_my_menu
if %key% == 1x31 goto change_my_menu
if %key% == 1x36 goto change_my_menu
if %key% == 1x37 goto change_my_menu
if %key% == 1x38 goto change_my_menu
if %key% == 1x39 goto change_my_menu
if %key% == 1x40 goto change_my_menu
if %key% == 1x41 goto change_my_menu
if %key% == 1x16 goto change_my_menu
if %key% == 1x17 goto change_my_menu
if %key% == 1x18 goto change_my_menu
if %key% == 1x19 goto change_my_menu
if %key% == 1x20 goto change_my_menu
if %key% == 1x21 goto change_my_menu
if %key% == 1x22 goto change_my_menu
if %key% == 1x23 goto change_my_menu
if %key% == 1x16 goto change_my_menu
if %key% == 1x17 goto change_my_menu
goto main_interface
:savenote
echo %tab%%bck% 2>nul&set /p=<nul
Echo.
bg print %bgsel%%txsel% " File "&bg print %bgmen%%txmen% " Edit Format View Help "
Echo.
bg print %bgmen%%txmen% " New note "
echo.
bg print %bgmen%%txmen% " Load note "
Echo.
bg print %bgsel%%txsel% " Save note "
Echo.
bg print %bgmen%%txmen% " Exit "
echo.
echo %tab%%bck% 2>nul&set /p=<nul
Echo.
bg print %bgmen%%txmen% " File Edit Format View Help "
Echo.
Echo.
Echo.
bg print %bgmen%%txmen% " "
echo.
bg print %bgmen%%txmen% " "&bg print %bg%%tx% " Save as.. "&bg print %bgmen%%txmen% " "
echo.
bg print %bgmen%%txmen% " "&bg print %bg%%tx% " "&bg print %bgmen%%txmen% " "
echo.
bg print %bgmen%%txmen% " "&bg print %bg%%tx% "Enter file name: "&bg print %bgmen%%txmen% " "
echo.
bg print %bgmen%%txmen% " "&bg print %bg%%tx% " "&bg print %bgmen%%txmen% " "
echo.
bg print %bgmen%%txmen% " "
echo.
echo %tab%%bck% 2>nul&set /p=<nul
Echo.
bg print %bgmen%%txmen% " File Edit Format View Help "
Echo.
Echo.
Echo.
bg cursor 1
bg print %bgmen%%txmen% " "
echo.
bg print %bgmen%%txmen% " "&bg print %bg%%tx% " Save as.. "&bg print %bgmen%%txmen% " "
echo.
bg print %bgmen%%txmen% " "&bg print %bg%%tx% " "&bg print %bgmen%%txmen% " "
echo.
set /p pathname=ÛEnter file name:
:savingother
bg cursor 0
set "spi=0F \DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\n"
set "spi=%spi% 0F \DB c0 \DB\DB\DB 0c Saving.. c0 \DB\DB\DB 0F \DB\n"
set "spi=%spi%\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\n"
if not "%cone%"=="true" bg sprite 9 30 %spi%
if "%saveother%"=="true" set saveother=false&goto saev
if exist %pathname% del %pathname%
set save_num=0
set savepenalty=0
title DO NOT CANCEL THE PROCESS
goto fade_now
:fade_save
title Saving note (!save_num! lines saved)
:fade_now
if "!note%save_num%!"=="" set /a savepenalty=%savepenalty%+1
if "%savepenalty%"=="30" goto crappy
@echo.!note%save_num%!>>%pathname%
if not "!note%save_num%!"=="" set savepenalty=0
set /a save_num=%save_num%+1
goto fade_save
:crappy
title GUI notepad
set savepenalty=0
::if "%inhelp%"=="true" goto :eof
echo %tab%%bck% 2>nul&set /p=<nul
Echo.
bg print %bgmen%%txmen% " File Edit Format View Help "
Echo.
Echo.
Echo.
bg print %bgmen%%txmen% " "
echo.
bg print %bgmen%%txmen% " "&bg print %bg%%tx% " Save as.. "&bg print %bgmen%%txmen% " "
echo.
bg print %bgmen%%txmen% " "&bg print %bg%%tx% " "&bg print %bgmen%%txmen% " "
echo.
bg print %bgmen%%txmen% " "&bg print %bg%%tx% "Enter file name: "&bg print %bgmen%%txmen% " "
echo.
bg print %bgmen%%txmen% " "&bg print %bg%%tx% "Success "&bg print %bgmen%%txmen% " "&bg print %bg%%tx% " "
echo.
bg print %bgmen%%txmen% " "&bg print %bg%%tx% " "\n
Echo.
Echo.
Echo.
ping localhost -n 3 >nul
goto main_interface
:saev
if exist %pathname% del %pathname%
for /f "delims=" %%a in (%note%%a%) do (
SET "note!IDX!=%%i"
@echo %%i>>%pathname%
SET /A IDX+=1
)
if %IDX% GTR %endnote% goto finishsaev
goto saev
:finishsaev
set /a noteline=%idx%-1
echo %tab%%bck% 2>nul&set /p=<nul
Echo.
bg print %bgmen%%txmen% " File Edit Format View Help "
Echo.
Echo.
Echo.
bg print %bgmen%%txmen% " "
echo.
bg print %bgmen%%txmen% " "&bg print %bg%%tx% " Save as.. "&bg print %bgmen%%txmen% " "
echo.
bg print %bgmen%%txmen% " "&bg print %bg%%tx% " "&bg print %bgmen%%txmen% " "
echo.
bg print %bgmen%%txmen% " "&bg print %bg%%tx% "Enter file name: "&bg print %bgmen%%txmen% " "
echo.
bg print %bgmen%%txmen% " "&bg print %bg%%tx% "Success "&bg print %bgmen%%txmen% " "&bg print %bg%%tx% " "
echo.
bg print %bgmen%%txmen% " "&bg print %bg%%tx% " "
echo.
Echo.
ping localhost -n 3 >nul
goto main_interface
:loadnote
echo %tab%%bck% 2>nul&set /p=<nul
Echo.
bg print %bgsel%%txsel% " File "&bg print %bgmen%%txmen% " Edit Format View Help "
Echo.
bg print %bgmen%%txmen% " New note "
echo.
bg print %bgsel%%txsel% " Load note "
Echo.
bg print %bgmen%%txmen% " Save note "
Echo.
bg print %bgmen%%txmen% " Exit "
:loadnote_now
echo %tab%%bck% 2>nul&set /p=<nul
Echo.
bg print %bgmen%%txmen% " File Edit Format View Help "
Echo.
Echo.
Echo.
bg print %bgmen%%txmen% " "
echo.
bg print %bgmen%%txmen% " "&bg print %bg%%tx% " Load.. "&bg print %bgmen%%txmen% " "
echo.
bg print %bgmen%%txmen% " "&bg print %bg%%tx% " "&bg print %bgmen%%txmen% " "
echo.
bg print %bgmen%%txmen% " "&bg print %bg%%tx% "Enter file name: "&bg print %bgmen%%txmen% " "
echo.
bg print %bgmen%%txmen% " "&bg print %bg%%tx% " "&bg print %bgmen%%txmen% " "
echo.
bg print %bgmen%%txmen% " "
echo.
bg cursor 1
echo %tab%%bck% 2>nul&set /p=<nul
Echo.
bg print %bgmen%%txmen% " File Edit Format View Help "
Echo.
Echo.
Echo.
bg print %bgmen%%txmen% " "
echo.
bg print %bgmen%%txmen% " "&bg print %bg%%tx% " Load.. "&bg print %bgmen%%txmen% " "
echo.
bg print %bgmen%%txmen% " "&bg print %bg%%tx% " "&bg print %bgmen%%txmen% " "
echo.
set "menu=false"
set /p pathname=ÛEnter file name:
echo.
echo.
echo.
echo.
call :newloop
set numeral=
if exist "%pathname:.cmd=%.cmd" set pathname=%pathname:.cmd=%&goto pnc
if not exist "%pathname%.cmd" goto loadtxt
:pnc
set "spi=0F \DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\n"
set "spi=%spi% 0F \DB a0 \DB\DB 0a Loading... a0 \DB\DB 0F \DB\n"
set "spi=%spi%\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\n"
if not "%cone%"=="true" bg sprite 9 30 %spi%
bg cursor 0
call "%pathname%.cmd"
set pathname=/C:%pathname%
call :convert_f
set pathname=%pathname:~3%
goto mousenote
:loadtxt
echo %tab%%bck% 2>nul&set /p=<nul
if not exist "%pathname%.txt" goto loadother
bg cursor 0
echo.
echo.
echo.
echo.
bg print F0 " "
echo.
bg print F0 " "&bg print 0A " Loading... "&bg print F0 " "
echo.
bg print F0 " "
title Deleting any notes in the memory
set noteline=
SET IDX=1
title Loading note now... (loop started)
for /f "delims=" %%i in (%pathname%.txt) do (
SET "note!IDX!=%%i"
SET /A IDX+=1
echo %tab%%bck% 2>nul&set /p=<nul
echo %%i
)
cls
set /a noteline=%idx%-1
set endnote=%idx%
call :resetpages
if "%bg%"=="" set bg=0
if "%fg%"=="" set fg=7
color %bg%%fg%
goto mousenote
:loadother
echo %tab%%bck% 2>nul&set /p=<nul
if not exist %pathname% goto loadnote_now
bg cursor 0
echo.
echo.
echo.
echo.
:loadingothers
set "spi=0F \DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\n"
set "spi=%spi% 0F \DB a0 \DB\DB 0a Loading... a0 \DB\DB 0F \DB\n"
set "spi=%spi%\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\DB\n"
if not "%cone%"=="true" bg sprite 9 30 %spi%
:delmemories
title Deleting any notes in the memory
set noteline=
title Counting lines...
For /f %%j in ('Find "" /v /c ^<%pathname%') Do Set /a lc=%%j
title Loading note now... (loop started)
set IDX=0
set "checkvar="
for /f "delims=" %%i in (%pathname%) do (
SET /A IDX+=1
SET "note!IDX!=%%i"
SET /A pc=!IDX!*100/!lc!
title Loading note now... (!pc!%% loaded, line !IDX!/!lc!^)
)
if "%pathname:~-3%"=="exe" cls&echo This file is not supported by GUI_notepad&pause&goto menu
if "%pathname:~-3%"=="doc" cls&echo This file is not supported by GUI_notepad&pause&goto menu
if "%pathname:~-3%"=="pdf" cls&echo This file is not supported by GUI_notepad&pause&goto menu
if "%pathname:~-3%"=="docx" cls&echo This file is not supported by GUI_notepad&pause&goto menu
if "%pathname:~-3%"=="mp3" cls&echo What do you think you're trying to do? Play music in the office? Go out and get a life instead of wasting it for this bulls***&pause&goto menu
if "%pathname:~-3%"=="wav" cls&echo What do you think you're trying to do? Play music in the office? Go out and get a life instead of wasting it for this bulls***&pause&goto menu
if "%pathname:~-3%"=="ogg" cls&echo What do you think you're trying to do? Play music in the office? Go out and get a life instead of wasting it for this bulls***&pause&goto menu
if "%pathname:~-3%"=="aif" cls&echo What do you think you're trying to do? Play music in the office? Go out and get a life instead of wasting it for this bulls***&pause&goto menu
if "%pathname:~-3%"=="aiff" cls&echo What do you think you're trying to do? Play music in the office? Go out and get a life instead of wasting it for this bulls***&pause&goto menu
if "%pathname:~-4%"==".cmd" pause&call :checkold
if "%pathname:~-7%"=="cmd.old" cls&echo This file is not supported by GUI_notepad&pause&goto menu
if "%pathname%"=="GUI_notepad.bat" cls&echo Editing GUI notepad inside itself may end up having dangerous effects.&echo Do not save it inside itself, or the universe will explode.&pause
cls
title GUI notepad
set /a noteline=%idx%-1
set endnote=%idx%
call :resetpages
if "%nonexist%"=="true" set nonexist=false&del %pathname%
if not "%bf%"=="" set fg=%bf%&set "bf="
if "%bg%"=="" set bg=0
if "%fg%"=="" set fg=7
color %bg%%fg%
goto mousenote
:checkold
set "checkvar=%note2:~0,8%"
if "%checkvar%"=="set note" set pathname=/C:%pathname%
if "%checkvar%"=="set note" call :convert_f
if "%checkvar%"=="set note" set pathname=%pathname:~3%
if "%checkvar%"=="set note" goto delmemories
goto :eof
:menu2
echo %tab%%bck% 2>nul&set /p=<nul
Echo.
bg print %bgmen%%txmen% " File Edit "&bg print %bgsel%%txsel% " Format "&bg print %bgmen%%txmen% " View Help "
Echo.
bg print %bg%%tx% "%tab%%tab%"& bg print %bgmen%%txmen% " Colors.. "
for /f "tokens=1- 3" %%a in ('bg.exe mouse') do set down=%%a&set top=%%b
set key=%down%x%top%
if %key% == 1x16 goto main_interface
if %key% == 1x17 goto main_interface
if %key% == 1x18 goto main_interface
if %key% == 1x19 goto main_interface
if %key% == 1x20 goto main_interface
if %key% == 1x21 goto main_interface
if %key% == 1x22 goto main_interface
if %key% == 1x23 goto main_interface
if %key% == 1x16 goto main_interface
if %key% == 1x17 goto main_interface
if %key% == 2x17 goto color_dialog
if %key% == 2x18 goto color_dialog
if %key% == 2x19 goto color_dialog
if %key% == 2x20 goto color_dialog
if %key% == 2x21 goto color_dialog
if %key% == 2x22 goto color_dialog
if %key% == 2x23 goto color_dialog
if %key% == 2x24 goto color_dialog
if %key% == 2x25 goto color_dialog
if %key% == 1x1 goto change_my_menu
if %key% == 1x2 goto change_my_menu
if %key% == 1x3 goto change_my_menu
if %key% == 1x4 goto change_my_menu
if %key% == 1x5 goto change_my_menu
if %key% == 1x6 goto change_my_menu
if %key% == 1x9 goto change_my_menu
if %key% == 1x10 goto change_my_menu
if %key% == 1x11 goto change_my_menu
if %key% == 1x12 goto change_my_menu
if %key% == 1x13 goto change_my_menu
if %key% == 1x14 goto change_my_menu
if %key% == 1x28 goto change_my_menu
if %key% == 1x29 goto change_my_menu
if %key% == 1x30 goto change_my_menu
if %key% == 1x31 goto change_my_menu
if %key% == 1x36 goto change_my_menu
if %key% == 1x37 goto change_my_menu
if %key% == 1x38 goto change_my_menu
if %key% == 1x39 goto change_my_menu
if %key% == 1x40 goto change_my_menu
if %key% == 1x41 goto change_my_menu
if %key% == 1x16 goto change_my_menu
if %key% == 1x17 goto change_my_menu
if %key% == 1x18 goto change_my_menu
if %key% == 1x19 goto change_my_menu
if %key% == 1x20 goto change_my_menu
if %key% == 1x21 goto change_my_menu
if %key% == 1x22 goto change_my_menu
if %key% == 1x23 goto change_my_menu
if %key% == 1x16 goto change_my_menu
if %key% == 1x17 goto change_my_menu
goto main_interface
:menu3
echo %tab%%bck% 2>nul&set /p=<nul
Echo.
bg print %bgmen%%txmen% " File "&bg print %bgsel%%txsel% " Edit "&bg print %bgmen%%txmen% " Format View Help "
Echo.
bg print %bg%%tx% "%tab%"&bg print %bgmen%%txmen% " Add Date and time.. "
Echo.
bg print %bg%%tx% "%tab%"&bg print %bgmen%%txmen% " Change line "
Echo.
bg print %bg%%tx% "%tab%"&bg print %bgmen%%txmen% " Find "
Echo.
bg print %bg%%tx% "%tab%"&bg print %bgmen%%txmen% " Replace "
Echo.
for /f "tokens=1- 3" %%a in ('bg.exe mouse') do set down=%%a&set top=%%b
set key=%down%x%top%
if %key% == 1x9 goto main_interface
if %key% == 1x10 goto main_interface
if %key% == 1x11 goto main_interface
if %key% == 1x12 goto main_interface
if %key% == 1x13 goto main_interface
if %key% == 1x14 goto main_interface
if %key% == 2x9 goto add_time
if %key% == 2x10 goto add_time
if %key% == 2x11 goto add_time
if %key% == 2x12 goto add_time
if %key% == 2x13 goto add_time
if %key% == 2x14 goto add_time
if %key% == 2x15 goto add_time
if %key% == 2x16 goto add_time
if %key% == 2x17 goto add_time
if %key% == 2x18 goto add_time
if %key% == 2x19 goto add_time
if %key% == 2x20 goto add_time
if %key% == 2x21 goto add_time
if %key% == 2x22 goto add_time
if %key% == 2x23 goto add_time
if %key% == 2x24 goto add_time
if %key% == 2x25 goto add_time
if %key% == 2x26 goto add_time
if %key% == 2x27 goto add_time
if %key% == 3x9 goto edlin
if %key% == 3x10 goto edlin
if %key% == 3x11 goto edlin
if %key% == 3x12 goto edlin
if %key% == 3x13 goto edlin
if %key% == 3x14 goto edlin
if %key% == 3x15 goto edlin
if %key% == 3x16 goto edlin
if %key% == 3x17 goto edlin
if %key% == 3x18 goto edlin
if %key% == 3x19 goto edlin
if %key% == 3x20 goto edlin
if %key% == 4x9 goto flin
if %key% == 4x10 goto flin
if %key% == 4x11 goto flin
if %key% == 4x12 goto flin
if %key% == 4x13 goto flin
if %key% == 4x14 goto flin
if %key% == 4x15 goto flin
if %key% == 4x16 goto flin
if %key% == 4x17 goto flin
if %key% == 4x18 goto flin
if %key% == 4x19 goto flin
if %key% == 4x20 goto flin
if %key% == 5x9 goto rlin
if %key% == 5x10 goto rlin
if %key% == 5x11 goto rlin
if %key% == 5x12 goto rlin
if %key% == 5x13 goto rlin
if %key% == 5x14 goto rlin
if %key% == 5x15 goto rlin
if %key% == 5x16 goto rlin
if %key% == 5x17 goto rlin
if %key% == 5x18 goto rlin
if %key% == 5x19 goto rlin
if %key% == 5x20 goto rlin
if %key% == 1x1 goto change_my_menu
if %key% == 1x2 goto change_my_menu
if %key% == 1x3 goto change_my_menu
if %key% == 1x4 goto change_my_menu
if %key% == 1x5 goto change_my_menu
if %key% == 1x6 goto change_my_menu
if %key% == 1x9 goto change_my_menu
if %key% == 1x10 goto change_my_menu
if %key% == 1x11 goto change_my_menu
if %key% == 1x12 goto change_my_menu
if %key% == 1x13 goto change_my_menu
if %key% == 1x14 goto change_my_menu
if %key% == 1x28 goto change_my_menu
if %key% == 1x29 goto change_my_menu
if %key% == 1x30 goto change_my_menu
if %key% == 1x31 goto change_my_menu
if %key% == 1x36 goto change_my_menu
if %key% == 1x37 goto change_my_menu
if %key% == 1x38 goto change_my_menu
if %key% == 1x39 goto change_my_menu
if %key% == 1x40 goto change_my_menu
if %key% == 1x41 goto change_my_menu
if %key% == 1x16 goto change_my_menu
if %key% == 1x17 goto change_my_menu
if %key% == 1x18 goto change_my_menu
if %key% == 1x19 goto change_my_menu
if %key% == 1x20 goto change_my_menu
if %key% == 1x21 goto change_my_menu
if %key% == 1x22 goto change_my_menu
if %key% == 1x23 goto change_my_menu
if %key% == 1x16 goto change_my_menu
if %key% == 1x17 goto change_my_menu
goto main_interface
:menu4
echo %tab%%bck% 2>nul&set /p=<nul
Echo.
bg print %bgmen%%txmen% " File Edit Format "&bg print %bgsel%%txsel% " View "&bg print %bgmen%%txmen% " Help "
Echo.
bg print %bgmen%%txmen% " Edit note "
echo.
bg print %bgmen%%txmen% " View note "
echo.
bg print %bgmen%%txmen% " Start screen "
echo %tab%%bck% 2>nul&set /p=<nul
echo.
echo.
echo.
@echo.set a=%%~n1>>%temp%\cmm.bat
@echo.@echo.set a=%%a%%^>^>
bg print %bgmen%%txmen% " Note: %~ni"
)
echo.
bg print %bgmen%%txmen% " Line: %realine% "
echo.
for /f "tokens=1- 3" %%a in ('bg.exe mouse') do set down=%%a&set top=%%b
set key=%down%x%top%
if %key% == 1x29 goto main_interface
if %key% == 1x30 goto main_interface
if %key% == 1x31 goto main_interface
if %key% == 1x32 goto main_interface
if %key% == 1x33 goto main_interface
if %key% == 1x34 goto main_interface
if %key% == 2x28 goto mousenote
if %key% == 2x29 goto mousenote
if %key% == 2x30 goto mousenote
if %key% == 2x31 goto mousenote
if %key% == 2x32 goto mousenote
if %key% == 2x33 goto mousenote
if %key% == 2x34 goto mousenote
if %key% == 2x35 goto mousenote
if %key% == 2x36 goto mousenote
if %key% == 3x28 goto goview
if %key% == 3x29 goto goview
if %key% == 3x30 goto goview
if %key% == 3x31 goto goview
if %key% == 3x32 goto goview
if %key% == 3x33 goto goview
if %key% == 3x34 goto goview
if %key% == 3x35 goto goview
if %key% == 3x36 goto goview
if %key% == 4x28 goto gostart
if %key% == 4x29 goto gostart
if %key% == 4x30 goto gostart
if %key% == 4x31 goto gostart
if %key% == 4x32 goto gostart
if %key% == 4x33 goto gostart
if %key% == 4x34 goto gostart
if %key% == 4x35 goto gostart
if %key% == 4x36 goto gostart
if %key% == 4x37 goto gostart
if %key% == 4x38 goto gostart
if %key% == 4x39 goto gostart
if %key% == 1x1 goto change_my_menu
if %key% == 1x2 goto change_my_menu
if %key% == 1x3 goto change_my_menu
if %key% == 1x4 goto change_my_menu
if %key% == 1x5 goto change_my_menu
if %key% == 1x6 goto change_my_menu
if %key% == 1x9 goto change_my_menu
if %key% == 1x10 goto change_my_menu
if %key% == 1x11 goto change_my_menu
if %key% == 1x12 goto change_my_menu
if %key% == 1x13 goto change_my_menu
if %key% == 1x14 goto change_my_menu
if %key% == 1x28 goto change_my_menu
if %key% == 1x29 goto change_my_menu
if %key% == 1x30 goto change_my_menu
if %key% == 1x31 goto change_my_menu
if %key% == 1x36 goto change_my_menu
if %key% == 1x37 goto change_my_menu
if %key% == 1x38 goto change_my_menu
if %key% == 1x39 goto change_my_menu
if %key% == 1x40 goto change_my_menu
if %key% == 1x41 goto change_my_menu
if %key% == 1x16 goto change_my_menu
if %key% == 1x17 goto change_my_menu
if %key% == 1x18 goto change_my_menu
if %key% == 1x19 goto change_my_menu
if %key% == 1x20 goto change_my_menu
if %key% == 1x21 goto change_my_menu
if %key% == 1x22 goto change_my_menu
if %key% == 1x23 goto change_my_menu
if %key% == 1x16 goto change_my_menu
if %key% == 1x17 goto change_my_menu
goto main_interface
:goedit
echo %tab%%bck% 2>nul&set /p=<nul
Echo.
bg print %bgmen%%txmen% " File Edit Format "&bg print %bgsel%%txsel% " View "& bg print %bgmen%%txmen% " Help "
Echo.
bg print %bg%%tx% " "&bg print %bgsel%%txsel% " Edit note "
echo.
bg print %bg%%tx% " "&bg print %bgmen%%txmen% " View note "
echo.
bg print %bg%%tx% " "&bg print %bgmen%%txmen% " Start screen "
echo.
goto mousenote
:menu5
echo %tab%%bck% 2>nul&set /p=<nul
Echo.
bg print %bgmen%%txmen% " File Edit Format View "&bg print %bgsel%%txsel% " Help "& bg print %bgmen%%txmen% " "
Echo.
bg.exe print %bg%%tx% " "&bg print %bgmen%%txmen% " Tutorial "
Echo.
bg.exe print %bg%%tx% " "&bg print %bgmen%%txmen% " About.. "
Echo.
for /f "tokens=1- 3" %%a in ('bg.exe mouse') do set down=%%a&set top=%%b
set key=%down%x%top%
if %key% == 1x36 goto main_interface
if %key% == 1x37 goto main_interface
if %key% == 1x38 goto main_interface
if %key% == 1x39 goto main_interface
if %key% == 1x40 goto main_interface
if %key% == 1x41 goto main_interface
if %key% == 2x34 goto demo
if %key% == 2x35 goto demo
if %key% == 2x36 goto demo
if %key% == 2x37 goto demo
if %key% == 2x38 goto demo
if %key% == 2x39 goto demo
if %key% == 2x40 goto demo
if %key% == 2x41 goto demo
if %key% == 2x42 goto demo
if %key% == 3x35 goto aboutnote
if %key% == 3x36 goto aboutnote
if %key% == 3x37 goto aboutnote
if %key% == 3x38 goto aboutnote
if %key% == 3x39 goto aboutnote
if %key% == 3x40 goto aboutnote