This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SeizeControl_0.14.ahk
6209 lines (5734 loc) · 265 KB
/
SeizeControl_0.14.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
; Redo the GUI using https://github.com/G33kDude/Neutron.ahk
; - Can resize clipped images.
; - Screen Clipper freezes the screen on activation.
; - Code epic pen.
#SingleInstance, Force ; Force the script to close any other instances of this script. (Run one copy at a time)
#NoEnv
;#ErrorStdOut
ListLines,Off
SetBatchLines, -1 ;Set the script to run at top speed.
SetMouseDelay, -1
CoordMode, Mouse , Screen ;Use the screen as the refrence to get positions from.
SendMode Input
SetWorkingDir %A_ScriptDir%
SetControlDelay, 50
DetectHiddenWindows, On
Global pToken := Gdip_Startup() ;Start Gdip
SetTimer, ToolTipFollowMouse, 25
SetTimer, ToolTipFollowMouse, Off
SetTimer, HB_Button_Hover, 50
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Globalised variables and Default values for settings %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
version = 0.14
Global version
Global ContextMenu
Global SeizeControl_Gui_Status
;============================================== Global for Creating Gui Dimension and Positons============================================
;Global of Sub_Top_Window's height
Global STWh
;Global for Sub_Bottom_Window's height and y possition
Global SBWh, SBWy
;Global for Sub_Left_Window's and Sub_Right_Window's height
Global SLRWh
;Global for Sub_Left_Window's witdh
Global SLWw
;Global for Sub_Right_Window's witdh and x position
Global SRWw, SRWx
;Global for Sub_Control_Window's x,y,w,h
Global SCWx, SCWy, SCWw, SCWh, SSCWw
;Global for Setting1_Window's height
Global S1Wh
;============================================================ Global for Class ============================================================
Global HB_Button:=[]
Global VD5Tab
Global H4Tab
;============================================================ Switching Windows ===========================================================
STab = 1
STab2 = 1
CTab = 1
HTab = 1
Global STab
Global STab2
Global CTab
Global HTab
;========================================================= Settings for Apperance =========================================================
DefaultButtonSettings()
DefaultTabsSettings()
DefaultToggleSettings()
DefaultOtherSettings()
DefaultButtonSettings(){
ButtonTextColorTop = EBA8FE
ButtonTextColorBottom = 000000
ButtonColor = 002240
ButtonOutline = 000000
ButtonHoverOutline = EBA8FE
ButtonFont = Segoe UI
ButtonColor2 = 002240
ButtonColor3 = 002240
ButtonTextSize = 10
ButtonColor4 = 002240
ButtonColor5 = 002240
ButtonColor6 = 002240
ButtonColor7 = 002240
}
DefaultTabsSettings(){
TabTextColor = EBA8FE
TabColor = 002240
TabFont = Arial
TabPressedColor = 33345A
TabReleasedColor = 33568A
}
DefaultToggleSettings(){
ToggleTextColor = EBA8FE
ToggleColor = 002240
ToggleFont = Arial
ToggleTextSize = 10
ToggleEnabledColor = 5DBCD2
ToggleDisabledColor = 206080
ToggleKnobColor = 5DBCD2
ToggleKnobColor2 = ffffff
}
DefaultOtherSettings(){
LineColor = 5DBCD2
TextColor = EBA8FE
BackgroundColor = 002240
TextFont = Segoe UI
EditBoxColor = FF0000
}
Global ButtonTextColorTop, ButtonTextColorBottom, ButtonColor, ButtonOutline, ButtonHoverOutline, ButtonFont, ButtonColor2, ButtonColor3, ButtonTextSize, ButtonColor4, ButtonColor5, ButtonColor6, ButtonColor7
Global TabTextColor, TabColor, TabFont, TabPressedColor, TabReleasedColor
Global ToggleTextColor, ToggleColor, ToggleFont, ToggleTextSize, ToggleEnabledColor, ToggleDisabledColor, ToggleKnobColor, ToggleKnobColor2
Global LineColor, TextColor, BackgroundColor, TextFont, EditBoxColor
;============================================================= Window Settings ============================================================
OpenOnStartUp = Off
StartMinimized = Off
StartCompacted = Off
CloseButtonMinimizesToTray = On
MainWindow_AlwaysOnTop = Off
MainWindow_ToolWindow = Off
;Global
Global OpenOnStartUp
Global StartMinimized, StartMinimized1
Global StartCompacted
Global CloseButtonMinimizesToTray
Global MainWindow_AlwaysOnTop
Global MainWindow_ToolWindow
;============================================================= Hotkey Settings ============================================================
Global CloseAppHotKeyOnOff, CloseAppHotkey
CloseAppHotKeyOnOff = Off
;============================================================== Window Tools ==============================================================
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WindowSwitch;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Global for Gui variables
Global S1, SHotkey1, SHotKeyOnOff1
Global S2, SHotkey2, SHotKeyOnOff2
Global S3, SHotkey3, SHotKeyOnOff3
;Global for functionality
Global WinName
Global ID1, WinTitle1
Global ID2, WinTitle2
Global ID3, WinTitle3
Global STHotkey, SwitchTabHotKeyOnOff
;Toggle State, on/off
SHotKeyOnOff1 = Off
SHotKeyOnOff2 = Off
SHotKeyOnOff3 = Off
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SetWinTransparency;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
SwitchTabsDefaultHotkey = Off
SetWinTransparencyScalingValue = 10
SetWinTransparencyMinimumOpacity = 30
SetWinTransparencyUpHotkeyOnOff = Off
SetWinTransparencyDownHotkeyOnOff = Off
Global SwitchTabsDefaultHotkey
Global SetWinTransparencyScalingValue
Global SetWinTransparencyMinimumOpacity
Global SetWinTransparencyUpHotkeyOnOff, SetWinTransparencyDownHotkeyOnOff, SetWinTransparencyUpHotkey, SetWinTransparencyDownHotkey
;============================================================== Screen Clipper ===========================================================
ScreenShotFilePath := A_Desktop "\Saved Clip" ;C:\Users\User\Desktop\Saved Clip
ScreenClipHotKeyOnOff = Off
EnableScreenClipHotkey = On
EnableScreenClipSave2Clipboard = On
EnableScreenClipSave2Folder = On
EnableScreenClipOverwrite = Off
EnableScreenClipShowCloseButton = On
EnableScreenClipShow_Picture = On
EnableScreenClipGui_Hide = On
EnableScreenClipGui_AlwaysOnTop = On
EnableScreenClipGui_ToolWindow = On
;Toggle State, on/off and default value.
Global ScreenShotFilePath
Global EnableScreenClipHotkey
Global EnableScreenClipSave2Clipboard
Global EnableScreenClipSave2Folder
Global EnableScreenClipOverwrite
Global EnableScreenClipGui_Hide
Global EnableScreenClipShowCloseButton, EnableScreenClipShow_Picture
Global EnableScreenClipGui_AlwaysOnTop, EnableScreenClipGui_ToolWindow
Global ScreenClipHotkey1 ,ScreenClipHotKeyOnOff
;Global for functionality
Global ScreenClipHandles := []
Global ScreenClipIndex := 0
;================================================================ Color Picker ===========================================================
;Default Values for functionality
ColorPickerREDHEXVALUE = 00
ColorPickerGREENHEXVALUE = 00
ColorPickerBLUEHEXVALUE = 00
ColorPickerREDSLIDERVALUE = 00
ColorPickerGREENSLIDERVALUE = 00
ColorPickerBLUESLIDERVALUE = 00
ColorPickerREDDECVALUE = 00
ColorPickerGREENDECVALUE = 00
ColorPickerBLUEDECVALUE = 00
ColorPickerREDMIN1 = 0
ColorPickerREDMAX1 = 255
ColorPickerGREENMIN1 = 0
ColorPickerGREENMAX1 = 255
ColorPickerBLUEMIN1 = 0
ColorPickerBLUEMAX1 = 255
;Global for functionality
Global ColorPickerREDTRIGGER, ColorPickerGREENTRIGGER, ColorPickerBLUETRIGGER
Global ColorPickerREDHEXVALUE, ColorPickerGREENHEXVALUE, ColorPickerBLUEHEXVALUE
Global ColorPickerREDSLIDERVALUE, ColorPickerGREENSLIDERVALUE, ColorPickerBLUESLIDERVALUE
Global ColorPickerREDDECVALUE, ColorPickerGREENDECVALUE, ColorPickerBLUEDECVALUE
Global ColorPickerRGBCOLORBLOCK
GLobal ColorPickerREDMIN1, ColorPickerREDMAX1
GLobal ColorPickerGREENMIN1, ColorPickerGREENMAX1
GLobal ColorPickerBLUEMIN1, ColorPickerBLUEMAX1
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Create or Read Config file %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
IfNotExist,SeizeControl Settings_%version%.ini
{
IniWrite_All_Variable_Values()
}else
{
IniRead_Variable_Values()
}
IniWrite_All_Variable_Values(){
IniWrite,% version, SeizeControl Settings_%version%.ini,Version,version
;========================================================== Values for Apperance ==========================================================
IniWrite,% ButtonTextColorTop, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonTextColorTop
IniWrite,% ButtonTextColorBottom, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonTextColorBottom
IniWrite,% ButtonColor, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonColor
IniWrite,% ButtonOutline, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonOutline
IniWrite,% ButtonHoverOutline, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonHoverOutline
IniWrite,% ButtonFont, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonFont
IniWrite,% ButtonColor2, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonColor2
IniWrite,% ButtonColor3, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonColor3
IniWrite,% ButtonTextSize, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonTextSize
IniWrite,% ButtonColor4, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonColor4
IniWrite,% ButtonColor5, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonColor5
IniWrite,% ButtonColor6, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonColor6
IniWrite,% ButtonColor6, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonColor6
IniWrite,% ButtonColor7, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonColor7
IniWrite,% TabTextColor, SeizeControl Settings_%version%.ini, Apperance-Tabs,TabTextColor
IniWrite,% TabColor, SeizeControl Settings_%version%.ini, Apperance-Tabs,TabColor
IniWrite,% TabFont, SeizeControl Settings_%version%.ini, Apperance-Tabs,TabFont
IniWrite,% TabPressedColor, SeizeControl Settings_%version%.ini, Apperance-Tabs,TabPressedColor
IniWrite,% TabReleasedColor, SeizeControl Settings_%version%.ini, Apperance-Tabs,TabReleasedColor
IniWrite,% ToggleTextColor, SeizeControl Settings_%version%.ini, Apperance-Toggle,ToggleTextColor
IniWrite,% ToggleColor, SeizeControl Settings_%version%.ini, Apperance-Toggle,ToggleColor
IniWrite,% ToggleFont, SeizeControl Settings_%version%.ini, Apperance-Toggle,ToggleFont
IniWrite,% ToggleTextSize, SeizeControl Settings_%version%.ini, Apperance-Toggle,ToggleTextSize
IniWrite,% ToggleEnabledColor, SeizeControl Settings_%version%.ini, Apperance-Toggle,ToggleEnabledColor
IniWrite,% ToggleDisabledColor, SeizeControl Settings_%version%.ini, Apperance-Toggle,ToggleDisabledColor
IniWrite,% ToggleKnobColor, SeizeControl Settings_%version%.ini, Apperance-Toggle,ToggleKnobColor
IniWrite,% ToggleKnobColor2, SeizeControl Settings_%version%.ini, Apperance-Toggle,ToggleKnobColor2
IniWrite,% LineColor, SeizeControl Settings_%version%.ini, Apperance-General,LineColor
IniWrite,% TextColor, SeizeControl Settings_%version%.ini, Apperance-General,TextColor
IniWrite,% BackgroundColor, SeizeControl Settings_%version%.ini, Apperance-General,BackgroundColor
IniWrite,% TextFont, SeizeControl Settings_%version%.ini, Apperance-General,TextFont
IniWrite,% EditBoxColor, SeizeControl Settings_%version%.ini, Apperance-General,EditBoxColor
;========================================================= Values for Window Settings =====================================================
IniWrite,% OpenOnStartUp, SeizeControl Settings_%version%.ini, Window-Settings,OpenOnStartUp
IniWrite,% StartMinimized, SeizeControl Settings_%version%.ini, Window-Settings,StartMinimized
IniWrite,% StartCompacted, SeizeControl Settings_%version%.ini, Window-Settings,StartCompacted
IniWrite,% CloseButtonMinimizesToTray, SeizeControl Settings_%version%.ini, Window-Settings,CloseButtonMinimizesToTray
IniWrite,% MainWindow_AlwaysOnTop, SeizeControl Settings_%version%.ini, Window-Settings,MainWindow_AlwaysOnTop
IniWrite,% MainWindow_ToolWindow, SeizeControl Settings_%version%.ini, Window-Settings,MainWindow_ToolWindow
;========================================================== Values for Hotkey Settings ====================================================
IniWrite,% CloseAppHotkey, SeizeControl Settings_%version%.ini, Hotkey-Settings,CloseAppHotkey
IniWrite,% CloseAppHotKeyOnOff, SeizeControl Settings_%version%.ini, Hotkey-Settings,CloseAppHotKeyOnOff
;=========================================================== Values for Window Tools ======================================================
IniWrite,% SHotkey1, SeizeControl Settings_%version%.ini, Window-Tools,SHotkey1
IniWrite,% SHotkey2, SeizeControl Settings_%version%.ini, Window-Tools,SHotkey2
IniWrite,% SHotkey3, SeizeControl Settings_%version%.ini, Window-Tools,SHotkey3
IniWrite,% SHotKeyOnOff1, SeizeControl Settings_%version%.ini, Window-Tools,SHotKeyOnOff1
IniWrite,% SHotKeyOnOff2, SeizeControl Settings_%version%.ini, Window-Tools,SHotKeyOnOff2
IniWrite,% SHotKeyOnOff3, SeizeControl Settings_%version%.ini, Window-Tools,SHotKeyOnOff3
IniWrite,% STHotkey, SeizeControl Settings_%version%.ini, Window-Tools,STHotkey
IniWrite,% SwitchTabHotKeyOnOff, SeizeControl Settings_%version%.ini, Window-Tools,SwitchTabHotKeyOnOff
IniWrite,% SwitchTabsDefaultHotkey, SeizeControl Settings_%version%.ini, Window-Tools,SwitchTabsDefaultHotkey
IniWrite,% SetWinTransparencyUpHotkeyOnOff, SeizeControl Settings_%version%.ini, Window-Tools,SetWinTransparencyUpHotkeyOnOff
IniWrite,% SetWinTransparencyDownHotkeyOnOff, SeizeControl Settings_%version%.ini, Window-Tools,SetWinTransparencyDownHotkeyOnOff
IniWrite,% SetWinTransparencyUpHotkey, SeizeControl Settings_%version%.ini, Window-Tools,SetWinTransparencyUpHotkey
IniWrite,% SetWinTransparencyDownHotkey, SeizeControl Settings_%version%.ini, Window-Tools,SetWinTransparencyDownHotkey
IniWrite,% SetWinTransparencyScalingValue, SeizeControl Settings_%version%.ini, Window-Tools,SetWinTransparencyScalingValue
IniWrite,% SetWinTransparencyMinimumOpacity, SeizeControl Settings_%version%.ini, Window-Tools,SetWinTransparencyMinimumOpacity
;======================================================== Values for Screen Clipper =======================================================
IniWrite,% ScreenShotFilePath, SeizeControl Settings_%version%.ini, Screen-Clipper,ScreenShotFilePath
IniWrite,% EnableScreenClipHotkey, SeizeControl Settings_%version%.ini, Screen-Clipper,EnableScreenClipHotkey
IniWrite,% EnableScreenClipSave2Clipboard, SeizeControl Settings_%version%.ini, Screen-Clipper,EnableScreenClipSave2Clipboard
IniWrite,% EnableScreenClipSave2Folder, SeizeControl Settings_%version%.ini, Screen-Clipper,EnableScreenClipSave2Folder
IniWrite,% EnableScreenClipOverwrite, SeizeControl Settings_%version%.ini, Screen-Clipper,EnableScreenClipOverwrite
IniWrite,% EnableScreenClipShowCloseButton, SeizeControl Settings_%version%.ini, Screen-Clipper,EnableScreenClipShowCloseButton
IniWrite,% EnableScreenClipShow_Picture, SeizeControl Settings_%version%.ini, Screen-Clipper,EnableScreenClipShow_Picture
IniWrite,% EnableScreenClipGui_Hide, SeizeControl Settings_%version%.ini, Screen-Clipper,EnableScreenClipGui_Hide
IniWrite,% EnableScreenClipGui_Hide, SeizeControl Settings_%version%.ini, Screen-Clipper,EnableScreenClipGui_AlwaysOnTop
IniWrite,% EnableScreenClipGui_Hide, SeizeControl Settings_%version%.ini, Screen-Clipper,EnableScreenClipGui_ToolWindow
IniWrite,% ScreenClipHotKeyOnOff, SeizeControl Settings_%version%.ini, Screen-Clipper,ScreenClipHotKeyOnOff
IniWrite,% ScreenClipHotkey1, SeizeControl Settings_%version%.ini, Screen-Clipper,ScreenClipHotkey1
}
IniRead_Variable_Values(){
;========================================================== Values for Apperance ==========================================================
IniRead, ButtonTextColorTop, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonTextColorTop
IniRead, ButtonTextColorBottom, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonTextColorBottom
IniRead, ButtonColor, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonColor
IniRead, ButtonOutline, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonOutline
IniRead, ButtonHoverOutline, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonHoverOutline
IniRead, ButtonFont, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonFont
IniRead, ButtonColor2, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonColor2
IniRead, ButtonColor3, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonColor3
IniRead, ButtonTextSize, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonTextSize
IniRead, ButtonColor4, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonColor4
IniRead, ButtonColor5, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonColor5
IniRead, ButtonColor6, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonColor6
IniRead, ButtonColor6, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonColor6
IniRead, ButtonColor7, SeizeControl Settings_%version%.ini, Apperance-Button,ButtonColor7
IniRead, TabTextColor, SeizeControl Settings_%version%.ini, Apperance-Tabs,TabTextColor
IniRead, TabColor, SeizeControl Settings_%version%.ini, Apperance-Tabs,TabColor
IniRead, TabFont, SeizeControl Settings_%version%.ini, Apperance-Tabs,TabFont
IniRead, TabPressedColor, SeizeControl Settings_%version%.ini, Apperance-Tabs,TabPressedColor
IniRead, TabReleasedColor, SeizeControl Settings_%version%.ini, Apperance-Tabs,TabReleasedColor
IniRead, ToggleTextColor, SeizeControl Settings_%version%.ini, Apperance-Toggle,ToggleTextColor
IniRead, ToggleColor, SeizeControl Settings_%version%.ini, Apperance-Toggle,ToggleColor
IniRead, ToggleFont, SeizeControl Settings_%version%.ini, Apperance-Toggle,ToggleFont
IniRead, ToggleTextSize, SeizeControl Settings_%version%.ini, Apperance-Toggle,ToggleTextSize
IniRead, ToggleEnabledColor, SeizeControl Settings_%version%.ini, Apperance-Toggle,ToggleEnabledColor
IniRead, ToggleDisabledColor, SeizeControl Settings_%version%.ini, Apperance-Toggle,ToggleDisabledColor
IniRead, ToggleKnobColor, SeizeControl Settings_%version%.ini, Apperance-Toggle,ToggleKnobColor
IniRead, ToggleKnobColor2, SeizeControl Settings_%version%.ini, Apperance-Toggle,ToggleKnobColor2
IniRead, LineColor, SeizeControl Settings_%version%.ini, Apperance-General,LineColor
IniRead, TextColor, SeizeControl Settings_%version%.ini, Apperance-General,TextColor
IniRead, BackgroundColor, SeizeControl Settings_%version%.ini, Apperance-General,BackgroundColor
IniRead, TextFont, SeizeControl Settings_%version%.ini, Apperance-General,TextFont
IniRead, EditBoxColor, SeizeControl Settings_%version%.ini, Apperance-General,EditBoxColor
;========================================================= Values for Window Settings =====================================================
IniRead, OpenOnStartUp, SeizeControl Settings_%version%.ini, Window-Settings,OpenOnStartUp
IniRead, StartMinimized, SeizeControl Settings_%version%.ini, Window-Settings,StartMinimized
IniRead, StartCompacted, SeizeControl Settings_%version%.ini, Window-Settings,StartCompacted
IniRead, CloseButtonMinimizesToTray, SeizeControl Settings_%version%.ini, Window-Settings,CloseButtonMinimizesToTray
IniRead, MainWindow_AlwaysOnTop, SeizeControl Settings_%version%.ini, Window-Settings,MainWindow_AlwaysOnTop
IniRead, MainWindow_ToolWindow, SeizeControl Settings_%version%.ini, Window-Settings,MainWindow_ToolWindow
;========================================================== Values for Hotkey Settings ====================================================
IniRead, CloseAppHotkey, SeizeControl Settings_%version%.ini, Hotkey-Settings,CloseAppHotkey
IniRead, CloseAppHotKeyOnOff, SeizeControl Settings_%version%.ini, Hotkey-Settings,CloseAppHotKeyOnOff
;=========================================================== Values for Window Tools ======================================================
IniRead, SHotkey1, SeizeControl Settings_%version%.ini, Window-Tools,SHotkey1
IniRead, SHotkey2, SeizeControl Settings_%version%.ini, Window-Tools,SHotkey2
IniRead, SHotkey3, SeizeControl Settings_%version%.ini, Window-Tools,SHotkey3
IniRead, SHotKeyOnOff1, SeizeControl Settings_%version%.ini, Window-Tools,SHotKeyOnOff1
IniRead, SHotKeyOnOff2, SeizeControl Settings_%version%.ini, Window-Tools,SHotKeyOnOff2
IniRead, SHotKeyOnOff3, SeizeControl Settings_%version%.ini, Window-Tools,SHotKeyOnOff3
IniRead, STHotkey, SeizeControl Settings_%version%.ini, Window-Tools,STHotkey
IniRead, SwitchTabHotKeyOnOff, SeizeControl Settings_%version%.ini, Window-Tools,SwitchTabHotKeyOnOff
IniRead, SwitchTabsDefaultHotkey, SeizeControl Settings_%version%.ini, Window-Tools,SwitchTabsDefaultHotkey
IniRead, SetWinTransparencyUpHotkeyOnOff, SeizeControl Settings_%version%.ini, Window-Tools,SetWinTransparencyUpHotkeyOnOff
IniRead, SetWinTransparencyDownHotkeyOnOff, SeizeControl Settings_%version%.ini, Window-Tools,SetWinTransparencyDownHotkeyOnOff
IniRead, SetWinTransparencyUpHotkey, SeizeControl Settings_%version%.ini, Window-Tools,SetWinTransparencyUpHotkey
IniRead, SetWinTransparencyDownHotkey, SeizeControl Settings_%version%.ini, Window-Tools,SetWinTransparencyDownHotkey
IniRead, SetWinTransparencyScalingValue, SeizeControl Settings_%version%.ini, Window-Tools,SetWinTransparencyScalingValue
IniRead, SetWinTransparencyMinimumOpacity, SeizeControl Settings_%version%.ini, Window-Tools,SetWinTransparencyMinimumOpacity
;======================================================== Values for Screen Clipper =======================================================
IniRead, ScreenShotFilePath, SeizeControl Settings_%version%.ini, Screen-Clipper,ScreenShotFilePath
IniRead, EnableScreenClipHotkey, SeizeControl Settings_%version%.ini, Screen-Clipper,EnableScreenClipHotkey
IniRead, EnableScreenClipSave2Clipboard, SeizeControl Settings_%version%.ini, Screen-Clipper,EnableScreenClipSave2Clipboard
IniRead, EnableScreenClipSave2Folder, SeizeControl Settings_%version%.ini, Screen-Clipper,EnableScreenClipSave2Folder
IniRead, EnableScreenClipOverwrite, SeizeControl Settings_%version%.ini, Screen-Clipper,EnableScreenClipOverwrite
IniRead, EnableScreenClipShowCloseButton, SeizeControl Settings_%version%.ini, Screen-Clipper,EnableScreenClipShowCloseButton
IniRead, EnableScreenClipShow_Picture, SeizeControl Settings_%version%.ini, Screen-Clipper,EnableScreenClipShow_Picture
IniRead, EnableScreenClipGui_Hide, SeizeControl Settings_%version%.ini, Screen-Clipper,EnableScreenClipGui_Hide
IniRead, EnableScreenClipGui_Hide, SeizeControl Settings_%version%.ini, Screen-Clipper,EnableScreenClipGui_AlwaysOnTop
IniRead, EnableScreenClipGui_Hide, SeizeControl Settings_%version%.ini, Screen-Clipper,EnableScreenClipGui_ToolWindow
IniRead, ScreenClipHotKeyOnOff, SeizeControl Settings_%version%.ini, Screen-Clipper,ScreenClipHotKeyOnOff
IniRead, ScreenClipHotkey1, SeizeControl Settings_%version%.ini, Screen-Clipper,ScreenClipHotkey1
}
if (StartCompacted = "On"){
;TogWinTab:=!TogWinTab
ContextMenu = 1
} else {
ContextMenu = 0
}
if (StartMinimized = "On"){
StartMinimized1 = 1
}
if (OpenOnStartUp = "On"){
FileCreateShortcut,%A_ScriptFullPath%, C:\Users\User\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\SeizeControl_%version%.lnk
FileCreateShortcut,%A_ScriptFullPath%, C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp\SeizeControl_%version%.lnk
}
if (OpenOnStartUp = "Off"){
FileDelete, C:\Users\User\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\SeizeControl_%version%.lnk
FileDelete, C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp\SeizeControl_%version%.lnk
}
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Create Gui %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Create_Tray_Menu()
;Control for Control_Window dimension and position
SCWx = 170
;vertical placement of inner Gui
SCWy = 61
SCWh = 235
;Sub_Left_Window width
SLWw = 11
;Sub_Right_Window width
SRWw := 10
;Setting1_Window height
S1Wh := 35
;calculations
GUI_Placement_Calculation()
GUI_Placement_Calculation(){
STWh := SCWy
SSCWw := SCWx-SLWw
SBWh := 350-SCWy-SCWh
SCWw := 740-SCWx-SRWw
}
;Create Gui
Create_Main_Window() ;Gui 1
StartMinimized1 = 0
Create_SubTop_Window() ;Gui 2
Create_SubBottom_Window() ;Gui 3
Create_SubLeft_Window() ;Gui 4
Create_SubRight_Window() ;Gui 5
Create_SubControl_Window() ;Gui SubControl
Create_Control1_Window() ;Gui 6
;Create_Control2_Window() ;Gui C2
;Create_Control3_Window() ;Gui C3
;Create_Control3a_Window() ;Gui C3a ;ParentC3
;Create_Control4_Window() ;Gui C4
;Create_SubSetting_Window() ;Gui SubSeting
;Create_Setting1_Window() ;Gui S1
;Create_Setting2_Window() ;Gui S2
;Create_Setting3_Window() ;Gui S3
;Create_Setting4_Window() ;Gui S4
;Create_Setting5_Window() ;Gui S5
;Create_Setting6_Window() ;Gui S6
;Create_Setting7_Window() ;Gui S7
;Create_SubHelp_Window() ;Gui SubHelp
;Create_Help1_Window() ;Gui H1
;Create_Help2_Window() ;Gui H2
;Create_Help3_Window() ;Gui H3
;Create_SubAbout_Window() ;Gui SubAbout
;Create_About1_Window() ;Gui A1
Return ;End of auto execute
;///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ LastFound and Outer Skirts of the Interface Window \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Create_Main_Window(){
Gui, 1: -DPIScale -Caption +LastFound
HB_Button.Push(New Logo_Button(x:=0, y:=0, window:="1", Label:="GuiContextMenu"))
If (ContextMenu = 1){
Winset,Transcolor,Clear
Gui,1:Color,Clear
Gui, 1: -DPIScale -Caption +LastFound +AlwaysOnTop
Gui,1:Show, w47 h50, Zseni's Master Tool
}
If (ContextMenu = 0){
Gui,1:Color,% BackgroundColor
Gui,1:Show, w740 h350, Zseni's Master Tool
}
if (StartMinimized1 = 1){
Gui,1:Hide
SeizeControl_Gui_Status = Hide
}
if (MainWindow_AlwaysOnTop = "Off" and ContextMenu = 0){
Gui, 1: -DPIScale -Caption +LastFound -AlwaysOnTop
}else{
Gui, 1: -DPIScale -Caption +LastFound +AlwaysOnTop
}
if (MainWindow_ToolWindow = "Off"){
Gui, 1: -DPIScale -Caption +LastFound -ToolWindow
}else{
Gui, 1: -DPIScale -Caption +LastFound +ToolWindow
}
}
Create_SubTop_Window(){
New Custom_Window( x:= 0 , y:= 0 , w:= 740 , h:= 50 , Name:= "2" , Options:= "-Caption -DPIScale +Parent1" , Title:= "" , Background_Bitmap:= SubTop_Window() )
HB_Button.Push(New Buttons_1(x:=655, y:=5, w:=40, h:=40, window:="2", Label:="GuiMinimize", Text:="-", y_Offset:=0 ))
if (CloseButtonMinimizesToTray = "On"){
HB_Button.Push(New Buttons_1(x:=695, y:=5, w:=40, h:=40, window:="2", Label:="GuiHide", Text:="X", y_Offset:=0 ))
} else {
HB_Button.Push(New Buttons_1(x:=695, y:=5, w:=40, h:=40, window:="2", Label:="CloseApp", Text:="X", y_Offset:=0 ))
}
Gui,2:Add,Text,x5 y5 w650 h40 BackgroundTrans gMove_Window
Gui,2:Color,% BackgroundColor
Gui,2:Show,% "w740" "y0" "x0 " "h" STWh
}
SubTop_Window(){
pBitmap:=Gdip_CreateBitmap( 740 , 350 )
G := Gdip_GraphicsFromImage( pBitmap )
Gdip_SetSmoothingMode( G , 4 )
;----------------------------------------------------------------
cc:="0xFF"BackgroundColor
Match := StrSplit(RegExReplace(cc, "^0x(..)(..)(..)(..)$", "0x$1 0x$2 0x$3 0x$4"), " ")
cc := Format("0x{:02X}{:02X}{:02X}{:02X}", Match.1, Max(Match.2-0x00,0), Max(Match.3-0x00,0), Max(Match.4+0x11,0))
Brush := Gdip_BrushCreateSolid( cc )
;----------------------------------------------------------------
Gdip_FillRectangle( G , Brush , 50 , 13 , 100 , 24 )
Gdip_DeleteBrush( Brush )
;----------------------------------------------------------------
cc:="0xFF"LineColor ;5DBCD2
Match := StrSplit(RegExReplace(cc, "^0x(..)(..)(..)(..)$", "0x$1 0x$2 0x$3 0x$4"), " ")
ccd := Format("0x{:02X}{:02X}{:02X}{:02X}", Match.1, Max(Match.2-0x03,0), Max(Match.3-0x10,0), Max(Match.4+0x20,0))
Match := StrSplit(RegExReplace(ccd, "^0x(..)(..)(..)(..)$", "0x$1 0x$2 0x$3 0x$4"), " ")
cc := Format("0x{:02X}{:02X}{:02X}{:02X}", Match.1, Max(Match.2-0x05,0), Max(Match.3-0x5A,0), Max(Match.4-0x70,0))
;----------------------------------------------------------------
Brush := Gdip_CreateLineBrushFromRect( 0 , 0 , 100 , 100 , ccd , cc , 2 , 1 )
Pen := Gdip_CreatePenFromBrush( Brush , 1 )
Gdip_DeleteBrush( Brush )
Gdip_DrawRectangle( G , Pen , 50 , 13 , 100 , 24 )
Gdip_DeletePen( Pen )
Brush := Gdip_BrushCreateSolid( "0xFF"LineColor )
Gdip_TextToGraphics( G , "SeizeControl" , "s11 Center vCenter Bold c" Brush " x50 y7" , "Segoe UI" , 100 , 40 )
Gdip_DeleteBrush( Brush )
;SeizeControl Text
/*
Brush := Gdip_BrushCreateSolid( "0xFF"LineColor )
Gdip_TextToGraphics( G , "________________________________________________________________________________________________________________________________________________________________________________________________" , "s10 vCenter Bold c" Brush " x163 y1" , "Segoe UI" , 415 , 40 )
Gdip_DeleteBrush( Brush )
*/
Pen := Gdip_CreatePen( "0xFF"LineColor , 2 )
Gdip_DrawLine( G , Pen , 165 , 20 , 570 , 20 )
Gdip_DeletePen( Pen )
Pen := Gdip_CreatePen( "0xFF"LineColor , 2 )
Gdip_DrawLine( G , Pen , 165 , 30 , 570 , 30 )
Gdip_DeletePen( Pen )
;TopGuiLine
Brush := Gdip_BrushCreateSolid( "0xFF"LineColor )
Gdip_TextToGraphics( G , "Version "version, "s10 Center vCenter Bold c" Brush " x541 y6" , "Segoe UI" , 150 , 40 )
Gdip_DeleteBrush( Brush )
;Version top right
Brush := Gdip_CreateLineBrushFromRect( 0 , 0 , 740 , 427 , "0xFF" LineColor , "0xFF000000" , 1 , 1 )
Gdip_FillRoundedRectangle( G , Brush , 5 , 55 , 730 , 246 , 15 )
Gdip_DeleteBrush( Brush )
Brush := Gdip_BrushCreateSolid( "0xFF"BackgroundColor )
Gdip_FillRoundedRectangle( G , Brush , 6 , 56 , 728 , 244 , 15 )
Gdip_DeleteBrush( Brush )
Gdip_DeletePen( Pen )
;above is big main box
Gdip_DeleteGraphics( G )
return pBitmap
}
Create_SubBottom_Window(){
SBWy := 350-SBWh ;Gui y value
New Custom_Window( x:= 0 , y = SBWy , w:= 740 , h = SBWh , Name:= "3" , Options:= "-Caption -DPIScale +Parent1" , Title:= "" , Background_Bitmap:= SubBottom_Window() )
HB_Button.Push(New Buttons_1(x:=23, y:=(310-SBWy), w:=108, h:=29, window:="3", Label:="Setting_Window", Text:="Settings", y_Offset:=0 ))
HB_Button.Push(New Buttons_1(x+=w+0, y, w, h, window:="3", Label:="Control_Window", Text:="Controls", y_Offset:=0))
HB_Button.Push(New Buttons_1(x:=263, y:=(310-SBWy), w:=108, h:=29, window:="3", Label:="Help_Window", Text:="Help", y_Offset:=0 ))
HB_Button.Push(New Buttons_1(x+=w+0, y, w, h, window:="3", Label:="About_Window", Text:="About", y_Offset:=0))
HB_Button.Push(New Buttons_1(x:=503, y:=(310-SBWy), w:=108, h:=29, window:="3", Label:="Reserved_Window", Text:="Reserved", y_Offset:=0 ))
HB_Button.Push(New Buttons_1(x+=w+0, y, w, h, window:="3", Label:="Reserved_Window", Text:="Reserved", y_Offset:=0 ))
Gui,3:Color,% BackgroundColor
Gui,3:Show,% "w740 " "h" SBWh " y" SBWy "x0"
}
SubBottom_Window(){
pBitmap:=Gdip_CreateBitmap( 740 , 350 )
G := Gdip_GraphicsFromImage( pBitmap )
Gdip_SetSmoothingMode( G , 2 )
Brush := Gdip_BrushCreateSolid("0xFF"BackgroundColor )
Gdip_FillRectangle( G , Brush , -2 , (-STWh-2) , 746 , 350 )
Gdip_DeleteBrush( Brush )
;...
Brush := Gdip_CreateLineBrushFromRect( 0 , (-SBWy) , 740 , 427 , "0xFF" LineColor , "0xFF000000" , 1 , 1 )
Gdip_FillRoundedRectangle( G , Brush , 5 , (-SBWy+55) , 730 , 246 , 15 )
Gdip_DeleteBrush( Brush )
Brush := Gdip_BrushCreateSolid( "0xFF"BackgroundColor )
Gdip_FillRoundedRectangle( G , Brush , 6 , (-SBWy+56) , 728 , 244 , 15 )
Gdip_DeleteBrush( Brush )
Gdip_DeletePen( Pen )
;Above is big main box
Brush := Gdip_CreateLineBrush( 74 , 307 , 99 , 337 , "0xFF" LineColor , "0xFF000000" , 1 )
Gdip_FillRoundedRectangle( G , Brush , 15 , (304-SBWy) , 230 , 40 , 15 ) ;y-1
Gdip_DeleteBrush( Brush )
Brush := Gdip_BrushCreateSolid( "0xFF"BackgroundColor )
Gdip_FillRoundedRectangle( G , Brush , 16 , (305-SBWy) , 228 , 38 , 15 )
Gdip_DeleteBrush( Brush )
;Bottom box 1
Brush := Gdip_CreateLineBrush( 419 , 310 , 370 , 329 , "0xFF" LineColor , "0xFF000000" , 1 ) ;+3
Gdip_FillRoundedRectangle( G , Brush , 255 , (304-SBWy) , 230 , 40 , 15 ) ;y-1
Gdip_DeleteBrush( Brush )
Brush := Gdip_BrushCreateSolid( "0xFF"BackgroundColor )
Gdip_FillRoundedRectangle( G , Brush , 256 , (305-SBWy) , 228 , 38 , 15 )
Gdip_DeleteBrush( Brush )
;Bottom box 2
Brush := Gdip_CreateLineBrush( 544 , 311 , 557 , 333 , "0xFF" LineColor , "0xFF000000" , 1 ) ;+1
Gdip_FillRoundedRectangle( G , Brush , 495 , (304-SBWy) , 230 , 40 , 15 ) ;y-1
Gdip_DeleteBrush( Brush )
Brush := Gdip_BrushCreateSolid( "0xFF"BackgroundColor )
Gdip_FillRoundedRectangle( G , Brush , 496 , (305-SBWy) , 228 , 38 , 15 )
Gdip_DeleteBrush( Brush )
;Bottom box 3
;Above is 3 small boxes
Gdip_DeleteGraphics( G )
return pBitmap
return pBitmap
}
Create_SubLeft_Window(){
SLRWh := 350-STWh-SBWh
New Custom_Window( x:= 0 , y:= 0 , w:= 740 , h:= 50 , Name:= "4" , Options:= "-Caption -DPIScale +Parent1" , Title:= "" , Background_Bitmap:= SubLeft_Window() )
Gui,4:Color,% BackgroundColor
Gui,4:Show,% "w" SLWw " h" SLRWh " y" STWh "x0"
}
SubLeft_Window(){
pBitmap:=Gdip_CreateBitmap( 740 , 350 )
G := Gdip_GraphicsFromImage( pBitmap )
Gdip_SetSmoothingMode( G , 2 )
Brush := Gdip_BrushCreateSolid( "0xFF"BackgroundColor )
Gdip_FillRectangle( G , Brush , -2 , (-STWh-2) , 746 , 350 )
Gdip_DeleteBrush( Brush )
;...
Brush := Gdip_CreateLineBrushFromRect( 0 , (-STWh) , 740 , 427 , "0xFF" LineColor , "0xFF000000" , 1 , 1 )
Gdip_FillRoundedRectangle( G , Brush , 5 , (-STWh+55) , 730 , 246 , 15 )
Gdip_DeleteBrush( Brush )
Brush := Gdip_BrushCreateSolid( "0xFF"BackgroundColor )
Gdip_FillRoundedRectangle( G , Brush , 6 , (-STWh+56) , 728 , 244 , 15 )
Gdip_DeleteBrush( Brush )
;Above is big main box
Gdip_DeletePen( Pen )
Gdip_DeleteGraphics( G )
return pBitmap
return pBitmap
}
Create_SubRight_Window(){
SLRWh := 350-STWh-SBWh
SRWx :=740-SRWw
New Custom_Window( x:= 0 , y:= 0 , w:= 740 , h:= 50 , Name:= "5" , Options:= "-Caption -DPIScale +Parent1" , Title:= "" , Background_Bitmap:= SubRight_Window() )
Gui,5:Color,% BackgroundColor
Gui,5:Show,% "w" SRWw " h" SLRWh " y" STWh " x" SRWx
}
SubRight_Window(){
pBitmap:=Gdip_CreateBitmap( 740 , 350 )
G := Gdip_GraphicsFromImage( pBitmap )
Gdip_SetSmoothingMode( G , 2 )
Brush := Gdip_BrushCreateSolid("0xFF"BackgroundColor )
Gdip_FillRectangle( G , Brush , (-SRWx-2) , (-STWh-2) , 746 , 350 )
Gdip_DeleteBrush( Brush )
;...
Brush := Gdip_CreateLineBrushFromRect( (-SRWx) , (-STWh) , 740 , 427 , "0xFF" LineColor , "0xFF000000" , 1 , 1 )
Gdip_FillRoundedRectangle( G , Brush , (-SRWx+5) , (-STWh+55) , 730 , 246 , 15 )
Gdip_DeleteBrush( Brush )
Brush := Gdip_BrushCreateSolid( "0xFF"BackgroundColor)
Gdip_FillRoundedRectangle( G , Brush , (-SRWx+6) , (-STWh+56) , 728 , 244 , 15 )
Gdip_DeleteBrush( Brush )
;Above is big main box
Gdip_DeletePen( Pen )
Gdip_DeleteGraphics( G )
return pBitmap
return pBitmap
}
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ Main Sections of the Gui \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;//////////////////////////////////////////////////////////////// Control /////////////////////////////////////////////////////////////////
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Create_SubControl_Window(){
New Custom_Window( x:= 0 , y:= 0 , w:= 740 , h:= 50 , Name:= "SubControl" , Options:= "-Caption -DPIScale +Parent1" , Title:= "" , Background_Bitmap:= SubControl_Window() )
if (CTab = "1")
New Vertical_Dark5_Tabs(x:=10, y:=27, window:="SubControl", label:="ControlTabSelect",Number_Of_tab:=4, Selected_Tab:=1, TabText1:="Window-Tools", TabText2:="Screen-Clipper", TabText3:="Color-Picker", TabText4:="Epic-Pen", TabText5:="", TabText6:="")
if (CTab = "2")
New Vertical_Dark5_Tabs(x:=10, y:=27, window:="SubControl", label:="ControlTabSelect",Number_Of_tab:=4, Selected_Tab:=2, TabText1:="Window-Tools", TabText2:="Screen-Clipper", TabText3:="Color-Picker", TabText4:="Epic-Pen", TabText5:="", TabText6:="")
if (CTab = "3")
New Vertical_Dark5_Tabs(x:=10, y:=27, window:="SubControl", label:="ControlTabSelect",Number_Of_tab:=4, Selected_Tab:=3, TabText1:="Window-Tools", TabText2:="Screen-Clipper", TabText3:="Color-Picker", TabText4:="Epic-Pen", TabText5:="", TabText6:="")
if (CTab = "4")
New Vertical_Dark5_Tabs(x:=10, y:=27, window:="SubControl", label:="ControlTabSelect",Number_Of_tab:=4, Selected_Tab:=4, TabText1:="Window-Tools", TabText2:="Screen-Clipper", TabText3:="Color-Picker", TabText4:="Epic-Pen", TabText5:="", TabText6:="")
Gui,SubControl:Color,% BackgroundColor
Gui,SubControl:Show,% "w" SSCWw " h" SLRWh " y" STWh " x" SLWw
}
SubControl_Window(){
}
Create_Control1_Window(){
New Custom_Window( x:= 0 , y:= 0 , w:= 200 , h:= 200 , Name:= "6" , Options:= "-Caption -DPIScale +Parent1" , Title:= "" , Background_Bitmap:= Control1_Window() )
Gui,6:Color,cFFFFFF,FFFFFF
Gui,6:Font,% "c" TextColor " s9 " "Bold " "underline",% TextFont
Gui,6: Add, Text, x0 y0 w200 Center, Fast Window Switch
Gui,6:Font,% "c" TextColor " s9" "norm",% ToggleFont
Gui,6: Add, Text, x0 y20 Section, Hotkey 1:
if (SHotKeyOnOff1 = "Off"){
SetHotkey11("6", "55", "19", "SHotkey1", SHotkey1, "SetHotKey1", "SHotKeyOnOff1", "SwitchWinSlot1", "0")
}else if (SHotKeyOnOff1 = "On"){
SetHotkey11("6", "55", "19", "SHotkey1", SHotkey1, "SetHotKey1", "SHotKeyOnOff1", "SwitchWinSlot1", "1")
}
Gui,6: Add, Text, x0 y50 Section, Slot 1:
Gui,6: Add, Edit, x40 y48 w135 R1 vS1 Disabled Center, %WinTitle1%
HB_Button.Push(New Buttons_1(x:=180, y:=45, w:=30, h:=30, window:="6", Label:="GetWindowID", Text:="+", y_Offset:=0 ))
DRAW_OUTLINE( 6, 0, 80, 220, 5, LineColor, LineColor ,5 )
Gui,6: Add, Text, x0 y95 Section, Hotkey 2:
if (SHotKeyOnOff2 = "Off"){
SetHotkey11("6", "55", "94", "SHotkey2", SHotkey2, "SetHotKey2", "SHotKeyOnOff2", "SwitchWinSlot2", "0")
}else if (SHotKeyOnOff2 = "On"){
SetHotkey11("6", "55", "94", "SHotkey2", SHotkey2, "SetHotKey2", "SHotKeyOnOff2", "SwitchWinSlot2", "1")
}
Gui,6: Add, Text, x0 y125 Section, Slot 2:
Gui,6: Add, Edit, x40 y123 w135 R1 vS2 Disabled Center, %WinTitle2%
HB_Button.Push(New Buttons_1(x:=180, y:=120, w:=30, h:=30, window:="6", Label:="GetWindowID2", Text:="+", y_Offset:=0 ))
DRAW_OUTLINE( 6, 0, 155, 220, 5, LineColor, LineColor ,5 )
Gui,6: Add, Text, x0 y170 Section, Hotkey 3:
if (SHotKeyOnOff3 = "Off"){
SetHotkey11("6", "55", "169", "SHotkey3", SHotkey3, "SetHotKey3", "SHotKeyOnOff3", "SwitchWinSlot3", "0")
}else if (SHotKeyOnOff3 = "On"){
SetHotkey11("6", "55", "169", "SHotkey3", SHotkey3, "SetHotKey3", "SHotKeyOnOff3", "SwitchWinSlot3", "1")
}
Gui,6: Add, Text, x0 y200 Section, Slot 3:
Gui,6: Add, Edit, x40 y198 w135 R1 vS3 Disabled Center, %WinTitle3%
HB_Button.Push(New Buttons_1(x:=180, y:=195, w:=30, h:=30, window:="6", Label:="GetWindowID3", Text:="+", y_Offset:=0))
;////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Gui,6:Font,% "c" TextColor " s9" "Bold " "Underline",% TextFont
Gui,6: Add, Text, x270 y0 w210 Center, Set Window Transparency
Gui,6:Font,% "c" TextColor " s9" "norm",% TextFont
if (SwitchTabsDefaultHotkey = "Off"){
New Toggle_Switch_1(x:=270,y:=15,w:=160,Text1:="Default Hotkey Disabled",Text2:="Default Hotkey Enabled", Window:="6", State:=0, Label:="SwitchTabsDefaultHotkey")
}else if (SwitchTabsDefaultHotkey = "On"){
New Toggle_Switch_1(x:=270,y:=15,w:=160,Text1:="Default Hotkey Disabled",Text2:="Default Hotkey Enabled", Window:="6", State:=1, Label:="SwitchTabsDefaultHotkey")
}
Gui,6:Font,% "c" TextColor " s9" "Bold",% TextFont
Gui,6: Add, Text, x270 y35 Section, Custom Hotkeys:
Gui,6:Font,% "c" TextColor " s9" "norm",% TextFont
Gui,6: Add, Text, x270 y50 Section, Increase opacity:
if (SetWinTransparencyUpHotkeyOnOff = "Off"){
SetHotkey11("6", "370", "49", "SetWinTransparencyUpHotkey", SetWinTransparencyUpHotkey, "SetHotkeySetWinTransparencyUp", "SetWinTransparencyUpHotkeyOnOff", "SetWinTransparencyUp", "0")
}else if (SetWinTransparencyUpHotkeyOnOff = "On"){
SetHotkey11("6", "370", "49", "SetWinTransparencyUpHotkey", SetWinTransparencyUpHotkey, "SetHotkeySetWinTransparencyUp", "SetWinTransparencyUpHotkeyOnOff", "SetWinTransparencyUp", "1")
}
Gui,6: Add, Text, x270 y75 Section, Decrease opacity:
if (SetWinTransparencyDownHotkeyOnOff = "Off"){
SetHotkey11("6", "370", "74", "SetWinTransparencyDownHotkey", SetWinTransparencyDownHotkey, "SetHotkeySetWinTransparencyDown", "SetWinTransparencyDownHotkeyOnOff", "SetWinTransparencyDown", "0")
}else if (SetWinTransparencyDownHotkeyOnOff = "On"){
SetHotkey11("6", "370", "74", "SetWinTransparencyDownHotkey", SetWinTransparencyDownHotkey, "SetHotkeySetWinTransparencyDown", "SetWinTransparencyDownHotkeyOnOff", "SetWinTransparencyDown", "1")
}
Gui,6: Add, Text, x270 y105,Intervals:
Gui,6: Add, Edit,% " x270 y120 w60 vSetWinTransparencyScalingValue ReadOnly Center R1 c"EditBoxColor, %SetWinTransparencyScalingValue%
HB_Button.Push(New Buttons_1(x:=335, y:=117, w:=30, h:=30, window:="6", Label:="SetWinTransparencyScalingValue", Text:="Set", y_Offset:=0 ))
Gui,6: Add, Text, x385 y105,Min-Opacity:
Gui,6: Add, Edit,% " x385 y120 w60 vSetWinTransparencyMinimumOpacity ReadOnly Center R1 c"EditBoxColor, %SetWinTransparencyMinimumOpacity%
HB_Button.Push(New Buttons_1(x:=450, y:=117, w:=30, h:=30, window:="6", Label:="SetWinTransparencyMinimumOpacity", Text:="Set", y_Offset:=0 ))
;////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Gui,6:Font,% "c" TextColor " s9" "Bold " "Underline",% TextFont
Gui,6: Add, Text, x270 y175 w210 Center, Toggle AlwaysOnTop
Gui,6:Font,% "c" TextColor " s9" "norm",% TextFont
HB_Button.Push(New Buttons_1(x:=270, y:=195, w:=50, h:=30, window:="6", Label:="SetWindowAlwaysOnTop", Text:="Toggle", y_Offset:=0))
Gui,6: Add, Text, x320 y202 Section, Window to be AlwaysOnTop
Gui,6:Color,% BackgroundColor,% BackgroundColor
Gui,6:Show,% "x" SCWx " y" SCWy " w" SCWw " h" SCWh
}
Control1_Window(){
}
Create_Control2_Window(){
New Custom_Window( x:= 0 , y:= 0 , w:= 200 , h:= 200 , Name:= "C2" , Options:= "-Caption -DPIScale +Parent1" , Title:= "" , Background_Bitmap:= Control2_Window() )
Gui,C2:Font,% "c" TextColor " s9" "norm",% ToggleFont
HB_Button.Push(New Buttons_1(x:=0, y:=0, w:=60, h:=30, window:="C2", Label:="New_Screen_Clip2", Text:="New Clip", y_Offset:=0 ))
Gui,C2: Add, Text, x70 y7 Section, Add Hotkey:
if (SHotKeyOnOff1 = "Off"){
SetHotkey11("C2", "140", "6", "ScreenClipHotkey1", ScreenClipHotkey1, "SetHotkeyScreenClip1", "ScreenClipHotKeyOnOff", "New_Screen_Clip1", "0")
}else if (SHotKeyOnOff1 = "On"){
SetHotkey11("C2", "140", "6", "ScreenClipHotkey1", ScreenClipHotkey1, "SetHotkeyScreenClip1", "ScreenClipHotKeyOnOff", "New_Screen_Clip1", "1")
}
Gui,C2: Add, Text, x0 y35 w200, Save location:
Gui,C2: Add, Edit,% "x0 y50 w200 vScreenShotFilePath ReadOnly Center R1 c"EditBoxColor, % ScreenShotFilePath
HB_Button.Push(New Buttons_1(x:=205, y:=47, w:=30, h:=30, window:="C2", Label:="SetScreenShotFilePath", Text:="Set", y_Offset:=0 ))
if (EnableScreenClipHotkey = "Off"){
New Toggle_Switch_1(x:=0,y:=75,w:=160,Text1:="Default Hotkey Disabled",Text2:="Default Hotkey Enabled", Window:="C2", State:=0, Label:="EnableScreenClipHotkey")
}else if (EnableScreenClipHotkey = "On"){
New Toggle_Switch_1(x:=0,y:=75,w:=160,Text1:="Default Hotkey Disabled",Text2:="Default Hotkey Enabled", Window:="C2", State:=1, Label:="EnableScreenClipHotkey")
}
if (EnableScreenClipSave2Clipboard = "Off"){
New Toggle_Switch_1(x:=0,y:=95,w:=170,Text1:="Copy to Clipboard",Text2:="Copy to Clipboard", Window:="C2", State:=0, Label:="EnableScreenClipSave2Clipboard")
}else if (EnableScreenClipSave2Clipboard = "On"){
New Toggle_Switch_1(x:=0,y:=95,w:=170,Text1:="Copy to Clipboard",Text2:="Copy to Clipboard", Window:="C2", State:=1, Label:="EnableScreenClipSave2Clipboard")
}
if (EnableScreenClipSave2Folder = "Off"){
New Toggle_Switch_1(x:=0,y:=115,w:=160,Text1:="Save to Folder",Text2:="Save to Folder", Window:="C2", State:=0, Label:="EnableScreenClipSave2Folder")
}else if (EnableScreenClipSave2Folder = "On"){
New Toggle_Switch_1(x:=0,y:=115,w:=160,Text1:="Save to Folder",Text2:="Save to Folder", Window:="C2", State:=1, Label:="EnableScreenClipSave2Folder")
}
if (EnableScreenClipOverwrite = "Off"){
New Toggle_Switch_1(x:=0,y:=135,w:=130,Text1:="Overwrite",Text2:="Overwrite", Window:="C2", State:=0, Label:="EnableScreenClipOverwrite")
}else if (EnableScreenClipOverwrite = "On"){
New Toggle_Switch_1(x:=0,y:=135,w:=130,text1:="Overwrite",Text2:="Overwrite", Window:="C2", State:=1, Label:="EnableScreenClipOverwrite")
}
if (EnableScreenClipGui_Hide = "Off"){
New Toggle_Switch_1(x:=0,y:=155,w:=170,Text1:="Hide GUI",Text2:="Hide GUI", Window:="C2", State:=0, Label:="EnableScreenClipGui_Hide")
}else if (EnableScreenClipShowCloseButton = "On"){
New Toggle_Switch_1(x:=0,y:=155,w:=170,Text1:="Hide GUI",Text2:="Hide GUI", Window:="C2", State:=1, Label:="EnableScreenClipGui_Hide")
}
if (EnableScreenClipShowCloseButton = "Off"){
New Toggle_Switch_1(x:=160,y:=75,w:=170,Text1:="Show Close Button",Text2:="Show Close Button", Window:="C2", State:=0, Label:="EnableScreenClipShowCloseButton")
}else if (EnableScreenClipShowCloseButton = "On"){
New Toggle_Switch_1(x:=160,y:=75,w:=180,Text1:="Show Close Button",Text2:="Show Close Button", Window:="C2", State:=1, Label:="EnableScreenClipShowCloseButton")
}
if (EnableScreenClipShow_Picture = "Off"){
New Toggle_Switch_1(x:=160,y:=95,w:=170,Text1:="Show Clipped Image",Text2:="Show Clipped Image", Window:="C2", State:=0, Label:="EnableScreenClipShow_Picture")
}else if (EnableScreenClipShow_Picture = "On"){
New Toggle_Switch_1(x:=160,y:=95,w:=170,Text1:="Show Clipped Image",Text2:="Show Clipped Image", Window:="C2", State:=1, Label:="EnableScreenClipShow_Picture")
}
if (EnableScreenClipGui_AlwaysOnTop = "Off"){
New Toggle_Switch_1(x:=160,y:=115,w:=190,Text1:="Clipped Image +AlwaysOnTop",Text2:="Clipped Image +AlwaysOnTop", Window:="C2", State:=0, Label:="EnableScreenClipGui_AlwaysOnTop")
}else if (EnableScreenClipGui_AlwaysOnTop = "On"){
New Toggle_Switch_1(x:=160,y:=115,w:=190,Text1:="Clipped Image +AlwaysOnTop",Text2:="Clipped Image +AlwaysOnTop", Window:="C2", State:=1, Label:="EnableScreenClipGui_AlwaysOnTop")
}
if (EnableScreenClipGui_ToolWindow = "Off"){
New Toggle_Switch_1(x:=160,y:=135,w:=180,Text1:="Clipped Image +ToolWindow",Text2:="Clipped Image +ToolWindow", Window:="C2", State:=0, Label:="EnableScreenClipGui_ToolWindow")
}else if (EnableScreenClipGui_ToolWindow = "On"){
New Toggle_Switch_1(x:=160,y:=135,w:=180,Text1:="Clipped Image +ToolWindow",Text2:="Clipped Image +ToolWindow", Window:="C2", State:=1, Label:="EnableScreenClipGui_ToolWindow")
}
Gui,C2:Color,% BackgroundColor,% BackgroundColor
Gui,C2:Show,% "x" SCWx " y" SCWy " w" SCWw " h" SCWh
}
Control2_Window(){
}
Create_Control3_Window(){
New Custom_Window( x:= 0 , y:= 0 , w:= 200 , h:= 200 , Name:= "C3" , Options:= "-Caption -DPIScale +Parent1" , Title:= "" , Background_Bitmap:= Control3_Window() )
Gui,C3:Font,% "c" TextColor " s9" "norm",% ToggleFont
Gui,C3:Add,Progress,x5 y0 w140 h90 Background222222
DRAW_OUTLINE("C3", 5 , 0 ,140 , 90 , "444444" , "black" ),DRAW_OUTLINE("C3", 6 , 1 ,138 , 88 , "333333" , "111111" )
Gui,C3:Add,Progress,x15 y10 w120 h70 BackgroundBlack c%ColorPickerRGBCOLORBLOCK% vColorPickerRGBCOLORBLOCK, 100
HB_Button.Push(New Buttons_1(x:=2, y:=95, w:=80, h:=30, window:="C3", Label:="Get_Pixel_Color", Text:="GRAB COLOR", y_Offset:=0 ))
HB_Button.Push(New Buttons_1(x:=82, y:=95, w:=65, h:=30, window:="C3", Label:="ColorPickerCLIPRGB", Text:="CLIP RGB", y_Offset:=0 ))
HB_Button.Push(New Buttons_1(x:=82, y:=125, w:=65, h:=30, window:="C3", Label:="ColorPickerCLIPHEX", Text:="CLIP HEX", y_Offset:=0 ))
Gui,C3:Add,Text,x168 y30 w20 h175 vColorPickerREDTRIGGER gColorPickerADJUST_SLIDER
Gui,C3:Add,Text,x211 y30 w20 h175 vColorPickerGREENTRIGGER gColorPickerADJUST_SLIDER
Gui,C3:Add,Text,x254 y30 w20 h175 vColorPickerBLUETRIGGER gColorPickerADJUST_SLIDER
Gui,C3:Add,Progress,x150 y0 w145 h235 Background111111
DRAW_OUTLINE("C3", 150 , 0 ,145 , 235 , "444444" , "black" ),DRAW_OUTLINE("C3", 151 , 1 ,143 , 233 , "333333" , "111111" )
Gui,C3:Font,cffffff s10 w600 , Segoe UI
Gui,C3:Add,Edit,x163 y5 w30 h20 Center -E0x200 ReadOnly vColorPickerREDHEXVALUE ,% ColorPickerREDHEXVALUE
Gui,C3:Add,Edit,x206 y5 w30 h20 Center -E0x200 ReadOnly vColorPickerGREENHEXVALUE ,% ColorPickerGREENHEXVALUE
Gui,C3:Add,Edit,x249 y5 w30 h20 Center -E0x200 ReadOnly vColorPickerBLUEHEXVALUE ,% ColorPickerBLUEHEXVALUE
Gui,C3:Add,Progress,x168 y30 w20 h175 Background330000 caa2222 Range0-255 Vertical vColorPickerREDSLIDERVALUE,% ColorPickerREDSLIDERVALUE
Gui,C3:Add,Progress,x211 y30 w20 h175 Background003300 c22aa22 Range0-255 Vertical vColorPickerGREENSLIDERVALUE,% ColorPickerGREENSLIDERVALUE
Gui,C3:Add,Progress,x254 y30 w20 h175 Background000033 c2222aa Range0-255 Vertical vColorPickerBLUESLIDERVALUE,% ColorPickerBLUESLIDERVALUE
Gui,C3:Add,Edit,x163 y210 w30 h20 Center -E0x200 ReadOnly vColorPickerREDDECVALUE ,% ColorPickerREDDECVALUE
Gui,C3:Add,Edit,x206 y210 w30 h20 Center -E0x200 ReadOnly vColorPickerGREENDECVALUE ,% ColorPickerGREENDECVALUE
Gui,C3:Add,Edit,x249 y210 w30 h20 Center -E0x200 ReadOnly vColorPickerBLUEDECVALUE ,% ColorPickerBLUEDECVALUE
Gui,C3:Add,Progress,x300 y50 w25 h140 Background111111
Gui,C3:Add,Progress,x525 y50 w25 h140 Background111111
Gui,C3:Add,Progress,x300 y190 w250 h10 Background111111
DRAW_OUTLINE("C3", 300 , 0 ,250 , 200 , "444444" , "black" ), DRAW_OUTLINE("C3", 301 , 1 ,248 , 198 , "333333" , "111111" )
Gui,C3:Font,cdddddd s10 ,Segoe Ui
Gui,C3:Add,Text,cRed x315 y5 w65 h18 BackgroundTrans Center ,RED
Gui,C3:Add,Text,cGreen x390 y5 w65 h18 BackgroundTrans Center ,GREEN
Gui,C3:Add,Text,c0055ff x465 y5 w65 h18 BackgroundTrans Center ,BLUE
Gui,C3:Add,Edit,x315 y25 w30 h18 -e0x200 Center Number Limit3 vColorPickerREDMIN1 gSUBMIT_C3 , % ColorPickerREDMIN1
Gui,C3:Add,Edit,x350 y25 w30 h18 -e0x200 Center Number Limit3 vColorPickerREDMAX1 gSUBMIT_C3 , % ColorPickerREDMAX1
Gui,C3:Add,Edit,x390 y25 w30 h18 -e0x200 Center Number Limit3 vColorPickerGREENMIN1 gSUBMIT_C3 , % ColorPickerGREENMIN1
Gui,C3:Add,Edit,x425 y25 w30 h18 -e0x200 Center Number Limit3 vColorPickerGREENMAX1 gSUBMIT_C3 , % ColorPickerGREENMAX1
Gui,C3:Add,Edit,x465 y25 w30 h18 -e0x200 Center Number Limit3 vColorPickerBLUEMIN1 gSUBMIT_C3 , % ColorPickerBLUEMIN1
Gui,C3:Add,Edit,x505 y25 w30 h18 -e0x200 Center Number Limit3 vColorPickerBLUEMAX1 gSUBMIT_C3 , % ColorPickerBLUEMAX1
HB_Button.Push(New Buttons_1(x:=380, y:=200, w:=90, h:=30, window:="C3", Label:="ColorPickerRANDOMSETREFRESH", Text:="GENERATE", y_Offset:=0 ))
Create_Control3a_Window()
Gui,C3:Color,% BackgroundColor,% BackgroundColor
Gui,C3:Show,% "x" SCWx " y" SCWy " w" SCWw " h" SCWh
}
SUBMIT_C3(){
Gui,C3:Submit,NoHide
}
Control3_Window(){
;Bitmap Created Using: HB Bitmap Maker
pBitmap:=Gdip_CreateBitmap( 560 , 50 )
G := Gdip_GraphicsFromImage( pBitmap )
Gdip_SetSmoothingMode( G , 4 )
Brush := Gdip_BrushCreateSolid( "0xFF111111" )
Gdip_FillRectangle( G , Brush , 300 , 0 , 249 , 50 )
Gdip_DeleteBrush( Brush )
Gdip_DeleteGraphics( G )
return pBitmap
}
Create_Control3a_Window(){
Gui,C3a:Destroy
Gui,C3a: +ParentC3 -Caption -DPISCALE
y:=0,tw:=20,th:=tw
Loop, 7 {
x:=0
Loop, 10 {
RandomColor:=Random_Colour(ColorPickerREDMIN1,ColorPickerREDMAX1,ColorPickerGREENMIN1,ColorPickerGREENMAX1,ColorPickerBLUEMIN1,ColorPickerBLUEMAX1)
Gui,C3a: Add,Progress,x%x% y%y% w%tw% h%th% Background%RandomColor%
x+=tw
}
y+=th
}
Gui,C3a: Show,x325 y50 w200 h140
}
Create_Control4_Window(){
New Custom_Window( x:= 0 , y:= 0 , w:= 200 , h:= 200 , Name:= "C4" , Options:= "-Caption -DPIScale +Parent1" , Title:= "" , Background_Bitmap:= Control4_Window() )
Gui,C4:Font,% "c" TextColor " s9" "norm",% TextFont
Gui,C4: Add, Text, x70 y7 Section, It's still being developed. Some reason the code wont work, very annoying.
Gui,C4:Color,% BackgroundColor,% BackgroundColor
Gui,C4:Show,% "x" SCWx " y" SCWy " w" SCWw " h" SCWh
}
Control4_Window(){
}
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;///////////////////////////////////////////////////////////////// Setting /////////////////////////////////////////////////////////////////
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Create_SubSetting_Window(){
New Custom_Window( x:= 0 , y:= 0 , w:= 740 , h:= 50 , Name:= "SubSetting" , Options:= "-Caption -DPIScale +Parent1" , Title:= "" , Background_Bitmap:= SubSetting_Window() )
if (STab = "1")
New Vertical_Dark5_Tabs(x:=10, y:=27, window:="SubSetting", label:="SettingTabSelect",Number_Of_tab:=3, Selected_Tab:=1, TabText1:="Appearance", TabText2:="Window", TabText3:="Hotkeys", TabText4:="Reserved", TabText5:="Reserved", TabText6:="")
if (STab = "2")
New Vertical_Dark5_Tabs(x:=10, y:=27, window:="SubSetting", label:="SettingTabSelect",Number_Of_tab:=3, Selected_Tab:=2, TabText1:="Appearance", TabText2:="Window", TabText3:="Hotkeys", TabText4:="Reserved", TabText5:="Reserved", TabText6:="")
if (STab = "3")
New Vertical_Dark5_Tabs(x:=10, y:=27, window:="SubSetting", label:="SettingTabSelect",Number_Of_tab:=3, Selected_Tab:=3, TabText1:="Appearance", TabText2:="Window", TabText3:="Hotkeys", TabText4:="Reserved", TabText5:="Reserved", TabText6:="")
Gui,SubSetting:Color,% BackgroundColor
Gui,SubSetting:Show,% "w" SSCWw " h" SLRWh " y" STWh " x" SLWw
}