#NoEnv
SetBatchLines -1
CoordMode, Mouse, Screen
; Set the size and color of the crosshair
CrosshairSize := 20
CrosshairColor := "FF0000" ; Red color
; Calculate the center coordinates of the screen
ScreenWidth := A_ScreenWidth
ScreenHeight := A_ScreenHeight
CenterX := ScreenWidth // 2
CenterY := ScreenHeight // 2
; Create a GUI window to display the crosshair
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow +E0x80000
Gui, Color, %CrosshairColor%
Gui, +hwndhGui
WinSet, TransColor, %CrosshairColor%
WinSet, Region, 0-0 %ScreenWidth%-0 %ScreenWidth%-%ScreenHeight% 0-%ScreenHeight% %CrosshairSize%-%CenterY% %ScreenWidth%-%CenterY% %CenterX%-%CrosshairSize% %CenterX%-%ScreenHeight% %CenterX%-%CenterY% %CenterX%-%ScreenHeight% %CenterX%-%CenterY% %CrosshairSize%-%CenterY% 0-%CenterY% 0-0
WinSet, ExStyle, 0x20 ; WS_EX_TRANSPARENT
WinSet, AlwaysOnTop, On
Gui, Show, x0 y0 w%ScreenWidth% h%ScreenHeight%, Crosshair
; Rotate the crosshair horizontally
RotationSpeed := 5 ; Adjust the rotation speed as desired
Loop
{
Angle := A_Index * RotationSpeed
GuiControl, Move, Crosshair, %CenterX%-%CenterY% RotateCenter R%Angle%
Sleep, 10
}
; Exit the script when the GUI window is closed
GuiClose:
ExitApp
кто запустит тот поймёт)
хы