Closed Visionary1 closed 7 years ago
Added
New OverWatch class for future maintenance of the codes
Class OverWatch { __New(rx) { this.rx := rx this.offset := rx / 10 } Firing(Key) { Return GetKeyState(Key, "P") } Search() { Static X1 := (A_ScreenWidth)/2 - (A_ScreenWidth)/5 , Y1 := (A_ScreenHeight)/2 - (A_ScreenHeight)/4 , X2 := (A_ScreenWidth)/2 + (A_ScreenWidth)/5 , Y2 := (A_ScreenHeight)/2 + (A_ScreenHeight)/4 , ColorID := 0xFF0013, ColorVariation := 0 Loop { PixelSearch, OutputVarX, OutputVarY, X1, Y1, X2, Y2, ColorID, Variation, Fast RGB } Until ErrorLevel = 0 Return {x: OutputVarX, y: OutputVarY} } Calc(x, y, headX, headY) { x := Floor( (x - A_ScreenWidth/2 + headX) * this.offset) ) y := Floor( (y - A_ScreenHeight/2 + headY) * this.offset) ) this.MouseMove(x, y) } MouseMove(x, y) { Return DllCall("mouse_event", "UInt", 0x01, "Int", x, "Int", y) } }
Removed
Gui Add, Text, x220 y25 w130 h30, Small Screen [F1] Gui Add, Text, x220 y45 w110 h30, Large Screen [F2] ...lots more
Gui Add, Text, x16 y200 w33 h20, x-axis: Gui Add, Slider,x48 y200 w130 h25 vxrange Invert Tickinterval1 range1-4, 4 Gui Add, Text, x16 y224 w35 h19, y-axis: Gui Add, Slider,x48 y224 w130 h25 vyrange Invert Tickinterval1 range1-4, 4 ... lots more
Gui Add, Edit, x16 y448 w160 h20 vLtoRaddendOffset, 1.2 ... ... + LtoRaddendOffset ;tested with 15 sensitivity, the addend should be larger than 1.3 when sensitivity is smaller than 15
Added
New OverWatch class for future maintenance of the codes
Removed