Testing Lab
Analyzing: best afk script ever for srs
39
Lines
--
Functions
--
Security
--
Performance
--
Quality
--
Issues
Source Code
39 lines
1
; ---------------------------------------------------------
2
; Auto?clicker – Refresh + Blue?item selector
3
; Press F1 to enable / disable
4
; ---------------------------------------------------------
5
#Persistent
6
SetBatchLines, -1
7
CoordMode, Pixel, Screen ; work in screen coordinates
8
CoordMode, Mouse, Screen
9
10
; ---------- USER SETTINGS ----------
11
refreshX := 500 ; X?position of the Refresh button
12
refreshY := 30 ; Y?position of the Refresh button
13
; Blue colour range (you can widen the tolerance if needed)
14
blueMin := 0x0000FF ; pure blue
15
tolerance := 10 ; colour?match tolerance
16
; -----------------------------------
17
18
toggle := true ; start enabled
19
SetTimer, ClickRoutine, 100 ; run every 100?ms
20
21
F1:: ; *** F1 = on/off switch ***
22
toggle := !toggle
23
ToolTip % toggle ? "Auto?Clicker ON" : "Auto?Clicker OFF"
24
SetTimer, ClickRoutine, % toggle ? 100 : "Off"
25
Sleep, 1000
26
ToolTip
27
return
28
29
ClickRoutine:
30
; 1?? Click the Refresh button
31
Click, %refreshX%, %refreshY%
32
Sleep, 200 ; give the UI a moment to update
33
34
; 2?? Find the first pixel that matches our blue range
35
PixelSearch, bx, by, 0, 0, A_ScreenWidth, A_ScreenHeight
36
, blueMin, tolerance, Fast RGB
37
if (ErrorLevel = 0) ; found a blue pixel
38
Click, %bx%, %by% ; click that spot
39
return
Ready to Analyze
Click "Run Analysis" to scan the script for issues
Security Analysis
Run analysis to see security details
Performance Analysis
Run analysis to see performance metrics
Code Quality
Run analysis to see quality metrics
Code Metrics
Run analysis to see detailed metrics
Dependencies
Run analysis to detect dependencies
Console Output
Analysis logs will appear here
Running comprehensive analysis...
Copied!