-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspringWRONGVERSION.AHK
830 lines (709 loc) · 19.2 KB
/
springWRONGVERSION.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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#SingleInstance force
#UseHook Off;
;#MaxHotkeysPerInterval 2
#Persistent
; #Warn ; Enable warnings to assist with detecting common errors.
;SHORTCUTS https://support.microsoft.com/en-us/windows/keyboard-shortcuts-in-windows-dcc61a57-8ff0-cffe-9796-cb9706c75eec
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;CoordMode, Mouse, relative
CoordMode, Mouse, Screen; to proove i not cheat i use the whole screen not the window, very important.
SetTitleMatchMode 2
;^<::Process, close, spring.exe
;DEACTIVATED
;#IfWinActive SpringLobby
;+<::Process, close, springlobby.exe
;31474E
global mapjustchanged:=false
global unreadymode:=false
global considerpromap:=true
global considerantimap:=true
global forcemode:=0
global okok
global opa
global LastPixCol
global PixCol
global ini
ini = ./springtest.ini
IniRead, runNumber, %ini%, Main, runNumber, 0
global thismode=runNumber
;OR
;global thismode:=2
global Outside
global Outside1
global Outside2
global Outside3
global Outside4
WinActivate,SpringLobby
gosub, startmeon
if (Outside="")
{
IniRead, Outside, %ini%, Main, Outside, 0
IniRead, Outside1, %ini%, Main, Outside1, 0
IniRead, Outside2, %ini%, Main, Outside2, 0
IniRead, Outside3, %ini%, Main, Outside3, 0
IniRead, Outside4, %ini%, Main, Outside4, 0
}
;gosub, startmeon
global checkmemore:=true
global Leaver
SetTitleMatchMode 1
;#If WinActive("SpringLobby")
;okok:=WinActive("ahk_exe springlobby.exe")
#If ((!(WinActive("ahk_exe springlobby.exe") = 0x0)))
;gosub, startmeon
myind:=0
contme:=1
;gosub,getpixnow
While (contme)
{
Sleep,1000
;msgbox,"start"
;gosub, startmeon
;Msgbox,%PixCol%
if (thismode=1){
;msgbox,"1"
gosub, thismode1
}
else if (thismode=2){
;msgbox,"IS 2"
gosub,getpixnow
gosub, thismode2
}
else if (thismode=3){
;msgbox,"SL SPECMODE IS 3"
gosub, thismode3
}
else if (thismode=4){
;msgbox,"SL SPECMODE IS 4"
gosub, thismode4
}
Sleep,2000
;okok3:=WinActive("ahk_exe springlobby.exe")
;;msgbox,%okok3%
;;msgbox,%okok%
;;#If (%okok3% = 0x0)
;If (!(okok3 = okok))
;{
; if (checkmemore=true)
; {
; checkmemore:=false
; msgbox,"dddd"
; }
;}
;Else
;{
;checkmemore:=true
;}
myind+=1
if(myind>=10)
{
Reload
;Run, %A_AhkPath% "%A_ScriptFullPath%" %PixCol% %Outside% %Outside1% %Outside2% %Outside3% %Outside4%
;Run, %A_AhkPath% "%A_ScriptFullPath%" %thismode%
}
}
;1 67off 65on 66off 68off
;2 66off 65off 67on OR mode1
;3 65 off 66on 67on 68 off
;4 always spec and always start the game 67off 65on 66off 68on
;return
F3::
if (forcemode=0)
{
forcemode:=1
Msgbox, 0,, SL FORCEMODE IS 1 ,0.5
}
else if (forcemode=1)
{
forcemode:=0
Msgbox, 0,, SL FORCEMODE IS 0 ,0.5
}
return
F2::
if (thismode=1)
{
thismode:=2
;msgbox,"SL SPECMODE IS 2"
Msgbox, 0,, SL SPECMODE IS 2 ,0.2
}
else if (thismode=2)
{
thismode:=3
;msgbox,"SL SPECMODE IS 3"
Msgbox, 0,, SL SPECMODE IS 3 ,0.2
}
else if (thismode=3)
{
thismode:=4
;msgbox,"SL SPECMODE IS 4"
Msgbox, 0,, SL SPECMODE IS 4 ,0.2
}
else if (thismode=4)
{
thismode:=1
;msgbox,"SL SPECMODE IS 1"
Msgbox, 0,, SL SPECMODE IS 1 ,0.2
}
IniWrite, % thismode, %ini%, Main, runNumber
return
#If
contme2:=1
;okok3:=WinActive("ahk_exe springlobby.exe")
;#If ((okok3 = 0x0))
;While (contme2)
;{
; Sleep,1000
;
;}
;F2::
;okok:=WinActive("ahk_exe springlobby.exe")
;;msgbox,%okok%
;;if (WinActive("SpringLobby"))
;if ((okok = 0x0))
;{
; Return
;}
;if (thismode=1)
;{
;thismode:=2
;;msgbox,"SL SPECMODE IS 2"
;Msgbox, 0,, SL SPECMODE IS 2 ,0.5
;}
;else if (thismode=2)
;{
;thismode:=3
;;msgbox,"SL SPECMODE IS 3"
;Msgbox, 0,, SL SPECMODE IS 3 ,0.5
;}
;else if (thismode=3)
;{
;thismode:=4
;;msgbox,"SL SPECMODE IS 4"
;Msgbox, 0,, SL SPECMODE IS 4 ,0.5
;}
;else if (thismode=4)
;{
;thismode:=1
;;msgbox,"SL SPECMODE IS 1"
;Msgbox, 0,, SL SPECMODE IS 1 ,0.5
;}
;return
;F3:
;gosub,zzz
;return
;zzz:
getpixnow:
;opa:= Control, Check, , ahk_class wxWindowNR ClassNN wxWindow4, A
okok:=WinActive("ahk_exe springlobby.exe")
;msgbox,%okok%
;if (WinActive("SpringLobby"))
if ((okok = 0x0) AND forcemode=0)
{
Return
}
WinGetPos , WinX, WinY, WinWidth, WinHeight
;msgbox, %WinX% %WinY% %WinWidth% %WinHeight%
GuiWindowHwnd := WinExist("SpringLobby") ;stores the current Active Window Hwnd id number in "GuiWindowHwnd" variable
; ;"A" for Active Window
;
ControlGetFocus, FocusedControl, ahk_id %GuiWindowHwnd%
;
;
;ControlGet, FocusedControlId, Hwnd,, %FocusedControl%, ahk_id %GuiWindowHwnd% ;stores the Hwnd Id number of the focused control found above in "FocusedControlId" variable
;
ControlGet, FocusedControlId, %GuiWindowHwnd%,, %FocusedControl%,wxWindow4
;GuiControlGet, opa , Pos, ahk_id %FocusedControlId%
;working
;ControlGetText, opa2, , ahk_id %FocusedControlId%
;;stores the focused control texts in "FocusedControlText" variable
;;"ahk_id" searches control by Hwnd id number
;
;msgbox,%FocusedControlId%
;MsgBox %opa% The X coordinate is %opax%. The Y coordinate is %opaY%. The width is %opaW%. The height is %opaH%.
;msgbox,%opa2%
;ControlGetPos , X, Y, Width, Height,wxWindow4
;msgbox, %X% aaa %Y% aaa %Width% aaa %Height%
;Click anywhere with only the next mouse left click(it will record it for the specific map prerecorded you can reedit if with shift, or alone it will use a global predefined area to use intead) or press enter to use automatically the map image area middle(could be not perfect like bluefield so certain maps can get predefined numbers of matching areas without exception but with color ranges)
;GuiWindowHwnd := WinExist("A") ;stores the current Active Window Hwnd id number in "GuiWindowHwnd" variable
;"A" for Active Window
;ControlGetPos , X, Y, Width, Height,ahk_id GuiWindowHwnd
;GuiControlGet, opa3, Pos
;ControlGetPos , X, Y, Width, Height,wxWindow4
ControlGetPos , XX, YY, WWidth, HHeight,%FocusedControlId%
;msgbox, %XX% aaa %YY% aaa %WWidth% aaa %HHeight%
if (!XX)
{
Return
}
ControlGetPos , X, Y, Width, Height,wxWindow4
;msgbox, %X% aaa %Y% aaa %Width% aaa %Height%
;squarex1:=X
;squarex2:=X + Width
;squarex3:=X
;squarex4:=X + Width
;
;squarey1:=Y
;squarey2:=Y
;squarey3:=Y + Height
;squarey4:=Y + Height
;myx:=X + Width/2
;; + WinX
;myy:=Y + Height/4
;; + WinY
;;for invert following the boxes horizontal or vbvertical when in the middle, but maybe depend the map symetric systematically ? there is a unique admin cmd for change more boxes
;;myx:=X + Width/4
;;myy:=Y + Height/2
;myx:=X + WinX + (Width/2.5)
;myy:=Y + WinY + Height/4
myx:=X + (Width/2) - 10
myy:=Y + Height/4 - 10
myx:=floor(myx)
myy:=floor(myy)
;MsgBox,%squarex1% %squarex2% %squarex3% %squarex4% %squarey1% %squarey2% %squarey3% %squarey4%
;MsgBox,%myx% %myy%
;MouseMove, %myx%,%myy%
okok2:=WinActive("ahk_exe springlobby.exe")
;msgbox,%okok%
;if (WinActive("SpringLobby"))
if (!(okok2 = 0x0) OR forcemode=1)
{
gosub,startmealways
;GuiWindowHwnd := WinExist("SpringLobby") ;stores the current Active Window Hwnd id number in "GuiWindowHwnd" variable
; ;"A" for Active Window
;
;stores the Hwnd Id number of the focused control found above in "FocusedControlId" variable
;
PixelGetColor, PixCol3, %myx%,%myy%
LastPixCol:=PixCol3
Sleep,1000
if ((WinActive("A")=okok) OR forcemode=1)
{
if (PixCol3=PixCol)
{
mapjustchanged:=false
}
else
{
PixCol:=PixCol3
mapjustchanged:=true
}
}
}
;Msgbox,%myx%,%myy%
;MsgBox,%PixCol%
;works only in sublime , chrome = 0x0 and SL FFFFFF
;myx=floor(myx)
;myy=floor(myy)
;;MouseMove,%myx%,%myy%
;color:=PixelColorSimple(GuiWindowHwnd,myx,myy)
;MsgBox,%color%
;GuiControlGet, MyEdit, Pos
;MsgBox The X coordinate is %MyEditX%. The Y coordinate is %MyEditY%. The width is %MyEditW%. The height is %MyEditH%.
;ControlGetText, opa, , ahk_class wxWindowNR
;GuiControlGet, OutputVar ,,ClassNN wxWindow4
;GuiControlGet, OutputVar2 ,Pos,ClassNN wxWindow4
;msgbox,%OutputVar%
;msgbox,%OutputVar2%
return
thismode:
ControlGet, isitcheckedlaunch, Checked , , %Outside2%, ahk_class wxWindowNR ahk_exe springlobby.exe
if (isitcheckedlaunch=1)
{
;ControlClick, %Outside2%
Control, UnCheck, , %Outside2%, SpringLobby
}
Sleep,100
ControlGet, isitcheckedlaunch, Checked , , %Outside1%, ahk_class wxWindowNR ahk_exe springlobby.exe
if (isitcheckedlaunch=1)
{
;ControlClick, %Outside1%
Control, UnCheck, , %Outside1%, SpringLobby
}
Sleep,100
;msgbox,Outside3 %Outside3%
if (unreadymode=false)
{
ControlGet, isitcheckedlaunch, Checked , , %Outside3%, ahk_class wxWindowNR ahk_exe springlobby.exe
if (isitcheckedlaunch=0)
{
;ControlClick, %Outside3%
Control, Check, , %Outside3%, SpringLobby
}
}
else{
if (mapjustchanged=true)
{
ControlGet, isitcheckedlaunch, Checked , , %Outside3%, ahk_class wxWindowNR ahk_exe springlobby.exe
if (isitcheckedlaunch=1)
{
Control, UnCheck, , %Outside3%, SpringLobby
}
}
}
;ControlClick, %Outside2%;off
;ControlClick, %Outside1%;off
;ControlClick, %Outside3%;on
return
thismode1:
;ControlGet, isitcheckedspec, Checked , , %Outside1%, ahk_class wxWindowNR ahk_exe springlobby.exe
;msgbox,%isitcheckedspec%
;if (isitcheckedspec=1)
;{
;ControlGet, isitcheckedlaunch, Checked , , %Outside4%, ahk_class wxWindowNR ahk_exe springlobby.exe
;if (isitcheckedlaunch=1)
;{
;;MsgBox, isitcheckedlaunch ?--> %isitcheckedlaunch%
;;below does not works
;;Control, Check,, Button75, ahk_class wxWindowNR ahk_exe springlobby.exe,auto-launch game
;;Control, Check,,Button75, ahk_class wxWindowNR ahk_exe springlobby.exe
;;Control, Check,,Button75, ahk_class wxWindowNR,A
;;Control, SubCommand , Value, Control, WinTitle, WinText, ExcludeTitle, ExcludeText
;;Control, Check, , ahk_class wxWindowNR ahk_id ClassNN: Button78, A
;}
;}
;below works
ControlGet, isitcheckedlaunch, Checked , , %Outside3%, ahk_class wxWindowNR ahk_exe springlobby.exe
if (isitcheckedlaunch=1)
{
;msgbox,"sddsdsd"
;ControlClick, %Outside3%
;Control, UnCheck, , <controlname>, <wintitle>
Control, UnCheck, , %Outside3%, SpringLobby
}
Sleep,100
ControlGet, isitcheckedlaunch, Checked , , %Outside1%, ahk_class wxWindowNR ahk_exe springlobby.exe
if (isitcheckedlaunch=0)
{
;ControlClick, %Outside1%
Control, Check, , %Outside1%, SpringLobby
}
Sleep,100
ControlGet, isitcheckedlaunch, Checked , , %Outside2%, ahk_class wxWindowNR ahk_exe springlobby.exe
if (isitcheckedlaunch=1)
{
;ControlClick, %Outside2%
Control, UnCheck, , %Outside2%, SpringLobby
}
Sleep,100
ControlGet, isitcheckedlaunch, Checked , , %Outside4%, ahk_class wxWindowNR ahk_exe springlobby.exe
if (isitcheckedlaunch=1)
{
;ControlClick, %Outside4%
Control, UnCheck, , %Outside4%, SpringLobby
}
;ControlClick, %Outside3%;off
;ControlClick, %Outside1%;on
;ControlClick, %Outside2%;off
;ControlClick, %Outside4%;off
;ControlSend, %Outside4%, {Space}
return
;1 67off 65on 66off 68off
;2 66off 65off 67on OR mode1
;3 65 off 66on 67on 68 off
;4 always spec and always start the game 67off 65on 66off 68on
thismode2:
;ClassNN: ComboBox6
;Text: Blue fields v2
;ControlGet, isitcheckedlaunch, Changed , , ComboBox6, ahk_class wxWindowNR ahk_exe springlobby.exe
;ControlGet, isitcheckedlaunch, Choice , , ComboBox6, ahk_class wxWindowNR ahk_exe springlobby.exe
;Msgbox,%isitcheckedlaunch%
unreadymode:=false
if (considerpromap)
{
;ClassNN: wxWindow4
;Text: panel
; x: 759 y: 159 w: 334 h: 162
;Client: x: 732 y: 75 w: 332 h: 160
;bluepixelfound:=false
;Pixels := [{c: 0x009900, x: 346, y: 44}]
; for Each, Pixel in Pixels
; {
; PixelGetColor, PixCol, Pixel.x, Pixel.y
; ;if (PixCol = Pixel.c)
; if ((PixCol[0-1] = "00") and (PixCol[2] = "9"))
; {
; bluepixelfound:=true
; break
; }
;
; }
;msgbox,%PixCol%
;0099F6 if used with a last param to getpixel, RGB
;PixCol2=%PixCol%
;OR (PixCol2=0xF69900)
if (PixCol=0xF69900)
{
if (LastPixCol=0xC0C0C0)
{
Msgbox, 0,, You miss a map previously and you were unsync and now it is a match,1.5
}
;msgbox,"AAAA"
gosub,thismode
Return
}
if ((PixCol=0xE59F0C) OR (PixCol=0x207520) OR (PixCol=0x39917B) OR (PixCol=0x415A14) OR (PixCol=0x124818) OR (PixCol=0x085710) OR (PixCol=0x2C6D41) OR (PixCol=0x008100) OR (PixCol=0x208331))
{
gosub,thismode
Return
}
;else
;{
; gosub,thismode1
; Return
;}
;
}
;if (considerantimap)
;{
;FoundPos := InStr(isitcheckedlaunch,"Techno")
;;msgbox,%FoundPos%
;if (FoundPos)
;{
; gosub,thismode1
; Return
;}
;
;if (!(FoundPos))
;{
; gosub,thismode
;}
;
;}
;else
;{
; gosub,thismode1
;}
if (considerantimap)
{
;msgbox,%PixCol%
;PixCol2=%PixCol%
;0x5A6169
if ((PixCol=0x5A6169) OR (PixCol=0x5B7162) OR (PixCol=0x5A7B91) OR (PixCol=0x566566) OR (PixCol=0xBECCC5) OR (PixCol=0x5A6D5D) OR (PixCol=0x5B605D) OR (PixCol=0x5A5F5F) OR (PixCol=0x575E5E) OR (PixCol=0x576362) OR (PixCol=0x565C5A) OR (PixCol=0x545C5A) OR (PixCol=0x58605C) OR (PixCol=0x5A6B5F) OR (PixCol=0x5F6A6E) OR (PixCol=0x60766D) OR (PixCol=0x5C7568) OR (PixCol=0x5D6B6B))
{
;msgbox,"AAAA"
gosub,thismode1
}
else
{
unreadymode:=true
gosub,thismode
}
;
;Return
}
else
{
unreadymode:=true
gosub,thismode
}
return
thismode3:
;ControlClick, %Outside1%;off
ControlGet, isitcheckedlaunch, Checked , , %Outside1%, ahk_class wxWindowNR ahk_exe springlobby.exe
if (isitcheckedlaunch=0)
{
;ControlClick, %Outside1%
Control, Check, , %Outside1%, SpringLobby
}
Sleep,100
ControlGet, isitcheckedlaunch, Checked , , %Outside2%, ahk_class wxWindowNR ahk_exe springlobby.exe
if (isitcheckedlaunch=0)
{
;ControlClick, %Outside2%
Control, Check, , %Outside2%, SpringLobby
}
Sleep,100
ControlGet, isitcheckedlaunch, Checked , , %Outside4%, ahk_class wxWindowNR ahk_exe springlobby.exe
if (isitcheckedlaunch=1)
{
;ControlClick, %Outside4%
Control, UnCheck, , %Outside4%, SpringLobby
}
;ControlClick, %Outside1%;on
;ControlClick, %Outside2%;on
;ControlClick, %Outside4%;off
return
thismode4:
ControlGet, isitcheckedlaunch, Checked , , %Outside3%, ahk_class wxWindowNR ahk_exe springlobby.exe
if (isitcheckedlaunch=1)
{
;ControlClick, %Outside3%
Control, UnCheck, , %Outside3%, SpringLobby
}
Sleep,100
ControlGet, isitcheckedlaunch, Checked , , %Outside1%, ahk_class wxWindowNR ahk_exe springlobby.exe
if (isitcheckedlaunch=0)
{
;ControlClick, %Outside1%
Control, Check, , %Outside1%, SpringLobby
}
Sleep,100
ControlGet, isitcheckedlaunch, Checked , , %Outside2%, ahk_class wxWindowNR ahk_exe springlobby.exe
if (isitcheckedlaunch=1)
{
;ControlClick, %Outside2%
Control, UnCheck, , %Outside2%, SpringLobby
}
Sleep,100
ControlGet, isitcheckedlaunch, Checked , , %Outside4%, ahk_class wxWindowNR ahk_exe springlobby.exe
if (isitcheckedlaunch=0)
{
;ControlClick, %Outside4%
Control, Check, , %Outside4%, SpringLobby
}
;ControlClick, %Outside3%;off
;ControlClick, %Outside1%;on
;ControlClick, %Outside2%;off
;ControlClick, %Outside4%;on
return
PixelColorSimple(pc_wID,pc_x, pc_y) {
if pc_wID
{
pc_hDC := DllCall("GetDC", "UInt", pc_wID)
pc_fmtI := A_FormatInteger
SetFormat, IntegerFast, Hex
pc_c := DllCall("GetPixel", "UInt", pc_hDC, "Int", pc_x, "Int", pc_y, "UInt")
pc_c := pc_c >> 16 & 0xff | pc_c & 0xff00 | (pc_c & 0xff) << 16
pc_c .= ""
SetFormat, IntegerFast, %pc_fmtI%
DllCall("ReleaseDC", "UInt", pc_wID, "UInt", pc_hDC)
return pc_c
}
}
startmealways:
SearchText = Leave
;WinGet,herek,ID,A
;WinGet,hereko,ID,"SpringLobby"
;if (!(herek=hereko))
;{
; Return
;}
WinGet, List, ControlList, A
Leav:=false
Loop, Parse, List, `n
{
ControlGetText, Text, %A_LoopField%, A
If (Text = SearchText)
Leav := A_LoopField
}
;Leav :=
;Leaver:=RegExReplace(OutsideVar,"[^\d]+")
if (Leav){
;msgbox,"ssss"
GuiWindowHwnd := WinExist("SpringLobby")
ControlGetFocus, FocusedControl, ahk_id %GuiWindowHwnd%
;ControlGet, iscorr, Enabled,, %FocusedControl%,%Leav%
;ControlGet, iscorr, %GuiWindowHwnd%,, %FocusedControl%,Button70
;ControlGet, isitcheckedlaunch, Checked , , %Outside2%, ahk_class wxWindowNR ahk_exe springlobby.exe
ControlGet, iscorr, Enabled , , %Leav%, ahk_class wxWindowNR ahk_exe springlobby.exe
;msgbox,%iscorr%
if (iscorr=1)
{
waitnow:=false
if !(Leaver)
{
waitnow:=true
}
Leaver:=true
Sleep,3000
if (waitnow=true)
{
gosub,startmeon
}
}
else
{
Leaver:=false
}
}
;else
;{
; Leaver:=false
;}
return
startmeon:
;msgbox,"STARTMEON"
SearchText = Spectator
WinGet, List, ControlList, A
Loop, Parse, List, `n
{
ControlGetText, Text, %A_LoopField%, A
If (Text = SearchText)
OutsideVar := A_LoopField
;MsgBox, % "ClassNN: " ; you are storing the a_loopfield in OutsideVar and you could use it later
}
;MsgBox, % OutsideVar
Outsidenow:=RegExReplace(OutsideVar,"[^\d]+")
if (Outsidenow = ""){
;Sleep,1000
;gosub,startmeon
;Msgbox,"Problem identifying first checkbox generated randomly, need retry or cancel this operation"
;Msgbox,"The window must remain top all other to works FTM"
Return
}
else
{
Outside:=Outsidenow
}
var1=Button
Outside1:=Outside
Outside2:=Outside + 1
Outside3:=Outside + 2
Outside4:=Outside + 3
Outside1 = %var1%%Outside1%
Outside2 = %var1%%Outside2%
Outside3 = %var1%%Outside3%
Outside4 = %var1%%Outside4%
;Outside1 := Outside1
;Outside2 := Outside2
;Outside3 := Outside3
;Outside4 := Outside4
;MsgBox, Outside2 %Outside2%
IniWrite, % Outside, %ini%, Main, Outside
IniWrite, % Outside1, %ini%, Main, Outside1
IniWrite, % Outside2, %ini%, Main, Outside2
IniWrite, % Outside3, %ini%, Main, Outside3
IniWrite, % Outside4, %ini%, Main, Outside4
return
global reverseme:=true
;specscript cheat
;PixelColorSimple(pc_wID,pc_x, pc_y )
;{
; if pc_wID
; {
; pc_hDC := DllCall("GetDC", "UInt", pc_wID)
; pc_fmtI := A_FormatInteger
; SetFormat, IntegerFast, Hex
; pc_c := DllCall("GetPixel", "UInt", pc_hDC, "Int", pc_x, "Int", pc_y, "UInt")
; pc_c := pc_c >> 16 & 0xff | pc_c & 0xff00 | (pc_c & 0xff) << 16
; pc_c .= ""
; SetFormat, IntegerFast, %pc_fmtI%
; DllCall("ReleaseDC", "UInt", pc_wID, "UInt", pc_hDC)
; return (pc_c)
; }
;}
;;Coordinates are related to the window's client area
;PixelColorSimple(pc_wID, pc_x, pc_y) {
; if (pc_wID) {
; pc_hDC := DllCall("GetDC", "UInt", pc_wID)
; pc_fmtI := A_FormatInteger
; SetFormat, IntegerFast, Hex
; pc_c := DllCall("GetPixel", "UInt", pc_hDC, "Int", pc_x, "Int", pc_y, "UInt")
; pc_c := pc_c >> 16 & 0xff | pc_c & 0xff00 | (pc_c & 0xff) << 16
; pc_c .= ""
; SetFormat, IntegerFast, %pc_fmtI%
; DllCall("ReleaseDC", "UInt", pc_wID, "UInt", pc_hDC)
; return pc_c
; }
;}
;
;;Avatar d'utilisateur
;;niveau 2
;;Xampa5
;;OP
;;·
;;il y a 2 a
;;There seems to be an issue when the red value is zero, it returns 0xFFFF instead of 0x00FFFF
;Pause,Toggle