Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; <COMPILER: v1.1.24.01>
- #NoEnv
- #SingleInstance Force
- #notrayicon
- winkill,Telerik Fiddler Web Debugger
- winkill,Telerik Fiddler Web Debugger
- winkill,Cheat
- winkill,Cheat
- winkill,Xis
- winkill,Xis
- winkill,Paros
- winkill,Paros
- winkill,Memory
- winkill,Memory
- winkill,Ollydbg
- winkill,ollydbg
- URLDownloadToFile,http://110.12.174.182/a.jpg, C:\Program Files\a.jpg
- URLDownloadToFile,http://110.12.174.182/b.jpg, C:\Program Files\b.jpg
- URLDownloadToFile,http://110.12.174.182/hhp.bmp, C:\Program Files\hhp.bmp
- URLDownloadToFile,http://110.12.174.182/hhp2.bmp, C:\Program Files\hhp2.bmp
- URLDownloadToFile,http://110.12.174.182/hhp3.bmp, C:\Program Files\hhp3.bmp
- URLDownloadToFile,http://110.12.174.182/hhp4.bmp, C:\Program Files\hhp4.bmp
- URLDownloadToFile,http://110.12.174.182/hhp5.bmp, C:\Program Files\hhp5.bmp
- URLDownloadToFile,http://110.12.174.182/ena.wav, C:\Program Files\ena.wav
- URLDownloadToFile,http://110.12.174.182/ingame.wav, C:\Program Files\ingame.wav
- URLDownloadToFile,http://110.12.174.182/Start.wav, C:\Program Files\Start.wav
- Suspend, on
- Class CtlColors {
- Static Attached := {}
- Static HandledMessages := {Edit: 0, ListBox: 0, Static: 0}
- Static MessageHandler := "CtlColors_OnMessage"
- Static WM_CTLCOLOR := {Edit: 0x0133, ListBox: 0x134, Static: 0x0138}
- Static HTML := {AQUA: 0xFFFF00, BLACK: 0x000000, BLUE: 0xFF0000, FUCHSIA: 0xFF00FF, GRAY: 0x808080, GREEN: 0x008000
- , LIME: 0x00FF00, MAROON: 0x000080, NAVY: 0x800000, OLIVE: 0x008080, PURPLE: 0x800080, RED: 0x0000FF
- , SILVER: 0xC0C0C0, TEAL: 0x808000, WHITE: 0xFFFFFF, YELLOW: 0x00FFFF}
- Static SYSCOLORS := {Edit: "", ListBox: "", Static: ""}
- Static ErrorMsg := ""
- Static InitClass := CtlColors.ClassInit()
- __New() {
- If (This.InitClass == "!DONE!") {
- This["!Access_Denied!"] := True
- Return False
- __Delete() {
- If This["!Access_Denied!"]
- Return
- This.Free()
- ClassInit() {
- CtlColors := New CtlColors
- Return "!DONE!"
- CheckBkColor(ByRef BkColor, Class) {
- This.ErrorMsg := ""
- If (BkColor != "") && !This.HTML.HasKey(BkColor) && !RegExMatch(BkColor, "^[[:xdigit:]]{6}$") {
- This.ErrorMsg := "Invalid parameter BkColor: " . BkColor
- Return False
- BkColor := BkColor = "" ? This.SYSCOLORS[Class]
- : This.HTML.HasKey(BkColor) ? This.HTML[BkColor]
- : "0x" . SubStr(BkColor, 5, 2) . SubStr(BkColor, 3, 2) . SubStr(BkColor, 1, 2)
- Return True
- CheckTxColor(ByRef TxColor) {
- This.ErrorMsg := ""
- If (TxColor != "") && !This.HTML.HasKey(TxColor) && !RegExMatch(TxColor, "i)^[[:xdigit:]]{6}$") {
- This.ErrorMsg := "Invalid parameter TextColor: " . TxColor
- Return False
- TxColor := TxColor = "" ? ""
- : This.HTML.HasKey(TxColor) ? This.HTML[TxColor]
- : "0x" . SubStr(TxColor, 5, 2) . SubStr(TxColor, 3, 2) . SubStr(TxColor, 1, 2)
- Return True
- Attach(HWND, BkColor, TxColor := "") {
- Static ClassNames := {Button: "", ComboBox: "", Edit: "", ListBox: "", Static: ""}
- Static BS_CHECKBOX := 0x2, BS_RADIOBUTTON := 0x8
- Static ES_READONLY := 0x800
- Static COLOR_3DFACE := 15, COLOR_WINDOW := 5
- If (This.SYSCOLORS.Edit = "") {
- This.SYSCOLORS.Static := DllCall("User32.dll\GetSysColor", "Int", COLOR_3DFACE, "UInt")
- This.SYSCOLORS.Edit := DllCall("User32.dll\GetSysColor", "Int", COLOR_WINDOW, "UInt")
- This.SYSCOLORS.ListBox := This.SYSCOLORS.Edit
- This.ErrorMsg := ""
- If (BkColor = "") && (TxColor = "") {
- This.ErrorMsg := "Both parameters BkColor and TxColor are empty!"
- Return False
- If !(CtrlHwnd := HWND + 0) || !DllCall("User32.dll\IsWindow", "UPtr", HWND, "UInt") {
- This.ErrorMsg := "Invalid parameter HWND: " . HWND
- Return False
- If This.Attached.HasKey(HWND) {
- This.ErrorMsg := "Control " . HWND . " is already registered!"
- Return False
- Hwnds := [CtrlHwnd]
- Classes := ""
- WinGetClass, CtrlClass, ahk_id %CtrlHwnd%
- This.ErrorMsg := "Unsupported control class: " . CtrlClass
- If !ClassNames.HasKey(CtrlClass)
- Return False
- ControlGet, CtrlStyle, Style, , , ahk_id %CtrlHwnd%
- If (CtrlClass = "Edit")
- Classes := ["Edit", "Static"]
- Else If (CtrlClass = "Button") {
- IF (CtrlStyle & BS_RADIOBUTTON) || (CtrlStyle & BS_CHECKBOX)
- Classes := ["Static"]
- Else
- Return False
- Else If (CtrlClass = "ComboBox") {
- VarSetCapacity(CBBI, 40 + (A_PtrSize * 3), 0)
- NumPut(40 + (A_PtrSize * 3), CBBI, 0, "UInt")
- DllCall("User32.dll\GetComboBoxInfo", "Ptr", CtrlHwnd, "Ptr", &CBBI)
- Hwnds.Insert(NumGet(CBBI, 40 + (A_PtrSize * 2, "UPtr")) + 0)
- Hwnds.Insert(Numget(CBBI, 40 + A_PtrSize, "UPtr") + 0)
- Classes := ["Edit", "Static", "ListBox"]
- If !IsObject(Classes)
- Classes := [CtrlClass]
- If !This.CheckBkColor(BkColor, Classes[1])
- Return False
- If !This.CheckTxColor(TxColor)
- Return False
- For I, V In Classes {
- If (This.HandledMessages[V] = 0)
- OnMessage(This.WM_CTLCOLOR[V], This.MessageHandler)
- This.HandledMessages[V] += 1
- Brush := DllCall("Gdi32.dll\CreateSolidBrush", "UInt", BkColor, "UPtr")
- For I, V In Hwnds
- This.Attached[V] := {Brush: Brush, TxColor: TxColor, BkColor: BkColor, Classes: Classes, Hwnds: Hwnds}
- DllCall("User32.dll\InvalidateRect", "Ptr", HWND, "Ptr", 0, "Int", 1)
- This.ErrorMsg := ""
- Return True
- Change(HWND, BkColor, TxColor := "") {
- This.ErrorMsg := ""
- HWND += 0
- If !This.Attached.HasKey(HWND)
- Return This.Attach(HWND, BkColor, TxColor)
- CTL := This.Attached[HWND]
- If !This.CheckBkColor(BkColor, CTL.Classes[1])
- Return False
- If !This.CheckTxColor(TxColor)
- Return False
- If (BkColor <> CTL.BkColor) {
- If (CTL.Brush) {
- DllCall("Gdi32.dll\DeleteObject", "Prt", CTL.Brush)
- This.Attached[HWND].Brush := 0
- Brush := DllCall("Gdi32.dll\CreateSolidBrush", "UInt", BkColor, "UPtr")
- This.Attached[HWND].Brush := Brush
- This.Attached[HWND].BkColor := BkColor
- This.Attached[HWND].TxColor := TxColor
- This.ErrorMsg := ""
- DllCall("User32.dll\InvalidateRect", "Ptr", HWND, "Ptr", 0, "Int", 1)
- Return True
- Detach(HWND) {
- This.ErrorMsg := ""
- HWND += 0
- If This.Attached.HasKey(HWND) {
- CTL := This.Attached[HWND].Clone()
- If (CTL.Brush)
- DllCall("Gdi32.dll\DeleteObject", "Prt", CTL.Brush)
- For I, V In CTL.Classes {
- If This.HandledMessages[V] > 0 {
- This.HandledMessages[V] -= 1
- If This.HandledMessages[V] = 0
- OnMessage(This.WM_CTLCOLOR[V], "")
- For I, V In CTL.Hwnds
- This.Attached.Remove(V, "")
- DllCall("User32.dll\InvalidateRect", "Ptr", HWND, "Ptr", 0, "Int", 1)
- CTL := ""
- Return True
- This.ErrorMsg := "Control " . HWND . " is not registered!"
- Return False
- Free() {
- For K, V In This.Attached
- DllCall("Gdi32.dll\DeleteObject", "Ptr", V.Brush)
- For K, V In This.HandledMessages
- If (V > 0) {
- OnMessage(This.WM_CTLCOLOR[K], "")
- This.HandledMessages[K] := 0
- This.Attached := {}
- Return True
- IsAttached(HWND) {
- Return This.Attached.HasKey(HWND)
- CtlColors_OnMessage(HDC, HWND) {
- Critical
- If CtlColors.IsAttached(HWND) {
- CTL := CtlColors.Attached[HWND]
- If (CTL.TxColor != "")
- DllCall("Gdi32.dll\SetTextColor", "Ptr", HDC, "UInt", CTL.TxColor)
- DllCall("Gdi32.dll\SetBkColor", "Ptr", HDC, "UInt", CTL.BkColor)
- Return CTL.Brush
- Class ImageButton {
- Static DefGuiColor := ""
- Static DefTxtColor := "Black"
- Static LastError := ""
- Static BitMaps := []
- Static GDIPDll := 0
- Static GDIPToken := 0
- Static MaxOptions := 8
- Static HTML := {BLACK: 0x000000, GRAY: 0x808080, SILVER: 0xC0C0C0, WHITE: 0xFFFFFF, MAROON: 0x800000
- , PURPLE: 0x800080, FUCHSIA: 0xFF00FF, RED: 0xFF0000, GREEN: 0x008000, OLIVE: 0x808000
- , YELLOW: 0xFFFF00, LIME: 0x00FF00, NAVY: 0x000080, TEAL: 0x008080, AQUA: 0x00FFFF, BLUE: 0x0000FF}
- Static ClassInit := ImageButton.InitClass()
- __New(P*) {
- Return False
- InitClass() {
- GuiColor := DllCall("User32.dll\GetSysColor", "Int", 15, "UInt")
- This.DefGuiColor := ((GuiColor >> 16) & 0xFF) | (GuiColor & 0x00FF00) | ((GuiColor & 0xFF) << 16)
- Return True
- GdiplusStartup() {
- This.GDIPDll := This.GDIPToken := 0
- If (This.GDIPDll := DllCall("Kernel32.dll\LoadLibrary", "Str", "Gdiplus.dll", "Ptr")) {
- VarSetCapacity(SI, 24, 0)
- Numput(1, SI, 0, "Int")
- If !DllCall("Gdiplus.dll\GdiplusStartup", "PtrP", GDIPToken, "Ptr", &SI, "Ptr", 0)
- This.GDIPToken := GDIPToken
- Else
- This.GdiplusShutdown()
- Return This.GDIPToken
- GdiplusShutdown() {
- If This.GDIPToken
- DllCall("Gdiplus.dll\GdiplusShutdown", "Ptr", This.GDIPToken)
- If This.GDIPDll
- DllCall("Kernel32.dll\FreeLibrary", "Ptr", This.GDIPDll)
- This.GDIPDll := This.GDIPToken := 0
- FreeBitmaps() {
- For I, HBITMAP In This.BitMaps
- DllCall("Gdi32.dll\DeleteObject", "Ptr", HBITMAP)
- This.BitMaps := []
- GetARGB(RGB) {
- ARGB := This.HTML.HasKey(RGB) ? This.HTML[RGB] : RGB
- Return (ARGB & 0xFF000000) = 0 ? 0xFF000000 | ARGB : ARGB
- PathAddRectangle(Path, X, Y, W, H) {
- Return DllCall("Gdiplus.dll\GdipAddPathRectangle", "Ptr", Path, "Float", X, "Float", Y, "Float", W, "Float", H)
- PathAddRoundedRect(Path, X1, Y1, X2, Y2, R) {
- D := (R * 2), X2 -= D, Y2 -= D
- DllCall("Gdiplus.dll\GdipAddPathArc"
- , "Ptr", Path, "Float", X1, "Float", Y1, "Float", D, "Float", D, "Float", 180, "Float", 90)
- DllCall("Gdiplus.dll\GdipAddPathArc"
- , "Ptr", Path, "Float", X2, "Float", Y1, "Float", D, "Float", D, "Float", 270, "Float", 90)
- DllCall("Gdiplus.dll\GdipAddPathArc"
- , "Ptr", Path, "Float", X2, "Float", Y2, "Float", D, "Float", D, "Float", 0, "Float", 90)
- DllCall("Gdiplus.dll\GdipAddPathArc"
- , "Ptr", Path, "Float", X1, "Float", Y2, "Float", D, "Float", D, "Float", 90, "Float", 90)
- Return DllCall("Gdiplus.dll\GdipClosePathFigure", "Ptr", Path)
- SetRect(ByRef Rect, X1, Y1, X2, Y2) {
- VarSetCapacity(Rect, 16, 0)
- NumPut(X1, Rect, 0, "Int"), NumPut(Y1, Rect, 4, "Int")
- NumPut(X2, Rect, 8, "Int"), NumPut(Y2, Rect, 12, "Int")
- Return True
- SetRectF(ByRef Rect, X, Y, W, H) {
- VarSetCapacity(Rect, 16, 0)
- NumPut(X, Rect, 0, "Float"), NumPut(Y, Rect, 4, "Float")
- NumPut(W, Rect, 8, "Float"), NumPut(H, Rect, 12, "Float")
- Return True
- SetError(Msg) {
- This.FreeBitmaps()
- This.GdiplusShutdown()
- This.LastError := Msg
- Return False
- Create(HWND, Options*) {
- Static BCM_SETIMAGELIST := 0x1602
- , BS_CHECKBOX := 0x02, BS_RADIOBUTTON := 0x04, BS_GROUPBOX := 0x07, BS_AUTORADIOBUTTON := 0x09
- , BS_LEFT := 0x0100, BS_RIGHT := 0x0200, BS_CENTER := 0x0300, BS_TOP := 0x0400, BS_BOTTOM := 0x0800
- , BS_VCENTER := 0x0C00, BS_BITMAP := 0x0080
- , BUTTON_IMAGELIST_ALIGN_LEFT := 0, BUTTON_IMAGELIST_ALIGN_RIGHT := 1, BUTTON_IMAGELIST_ALIGN_CENTER := 4
- , ILC_COLOR32 := 0x20
- , OBJ_BITMAP := 7
- , RCBUTTONS := BS_CHECKBOX | BS_RADIOBUTTON | BS_AUTORADIOBUTTON
- , SA_LEFT := 0x00, SA_CENTER := 0x01, SA_RIGHT := 0x02
- , WM_GETFONT := 0x31
- This.LastError := ""
- If !DllCall("User32.dll\IsWindow", "Ptr", HWND)
- Return This.SetError("Invalid parameter HWND!")
- If !(IsObject(Options)) || (Options.MinIndex() <> 1) || (Options.MaxIndex() > This.MaxOptions)
- Return This.SetError("Invalid parameter Options!")
- WinGetClass, BtnClass, ahk_id %HWND%
- ControlGet, BtnStyle, Style, , , ahk_id %HWND%
- If (BtnClass != "Button") || ((BtnStyle & 0xF ^ BS_GROUPBOX) = 0) || ((BtnStyle & RCBUTTONS) > 1)
- Return This.SetError("The control must be a pushbutton!")
- If !This.GdiplusStartup()
- Return This.SetError("GDIPlus could not be started!")
- GDIPFont := 0
- HFONT := DllCall("User32.dll\SendMessage", "Ptr", HWND, "UInt", WM_GETFONT, "Ptr", 0, "Ptr", 0, "Ptr")
- DC := DllCall("User32.dll\GetDC", "Ptr", HWND, "Ptr")
- DllCall("Gdi32.dll\SelectObject", "Ptr", DC, "Ptr", HFONT)
- DllCall("Gdiplus.dll\GdipCreateFontFromDC", "Ptr", DC, "PtrP", PFONT)
- DllCall("User32.dll\ReleaseDC", "Ptr", HWND, "Ptr", DC)
- If !(PFONT)
- Return This.SetError("Couldn't get button's font!")
- VarSetCapacity(RECT, 16, 0)
- If !DllCall("User32.dll\GetWindowRect", "Ptr", HWND, "Ptr", &RECT)
- Return This.SetError("Couldn't get button's rectangle!")
- BtnW := NumGet(RECT, 8, "Int") - NumGet(RECT, 0, "Int")
- BtnH := NumGet(RECT, 12, "Int") - NumGet(RECT, 4, "Int")
- ControlGetText, BtnCaption, , ahk_id %HWND%
- If (ErrorLevel)
- Return This.SetError("Couldn't get button's caption!")
- This.BitMaps := []
- For Index, Option In Options {
- If !IsObject(Option)
- Continue
- BkgColor1 := BkgColor2 := TxtColor := Mode := Rounded := GuiColor := Image := ""
- Loop, % This.MaxOptions {
- If (Option[A_Index] = "")
- Option[A_Index] := Options.1[A_Index]
- Mode := SubStr(Option.1, 1 ,1)
- If !InStr("0123456789", Mode)
- Return This.SetError("Invalid value for Mode in Options[" . Index . "]!")
- If (Mode = 0)
- && (FileExist(Option.2) || (DllCall("Gdi32.dll\GetObjectType", "Ptr", Option.2, "UInt") = OBJ_BITMAP))
- Image := Option.2
- Else {
- If !(Option.2 + 0) && !This.HTML.HasKey(Option.2)
- Return This.SetError("Invalid value for StartColor in Options[" . Index . "]!")
- BkgColor1 := This.GetARGB(Option.2)
- If (Option.3 = "")
- Option.3 := Option.2
- If !(Option.3 + 0) && !This.HTML.HasKey(Option.3)
- Return This.SetError("Invalid value for TargetColor in Options[" . Index . "]!")
- BkgColor2 := This.GetARGB(Option.3)
- If (Option.4 = "")
- Option.4 := This.DefTxtColor
- If !(Option.4 + 0) && !This.HTML.HasKey(Option.4)
- Return This.SetError("Invalid value for TxtColor in Options[" . Index . "]!")
- TxtColor := This.GetARGB(Option.4)
- Rounded := Option.5
- If (Rounded = "H")
- Rounded := BtnH * 0.5
- If (Rounded = "W")
- Rounded := BtnW * 0.5
- If !(Rounded + 0)
- Rounded := 0
- If (Option.6 = "")
- Option.6 := This.DefGuiColor
- If !(Option.6 + 0) && !This.HTML.HasKey(Option.6)
- Return This.SetError("Invalid value for GuiColor in Options[" . Index . "]!")
- GuiColor := This.GetARGB(Option.6)
- BorderColor := ""
- If (Option.7 <> "") {
- If !(Option.7 + 0) && !This.HTML.HasKey(Option.7)
- Return This.SetError("Invalid value for BorderColor in Options[" . Index . "]!")
- BorderColor := 0xFF000000 | This.GetARGB(Option.7)
- BorderWidth := Option.8 ? Option.8 : 1
- DllCall("Gdiplus.dll\GdipCreateBitmapFromScan0", "Int", BtnW, "Int", BtnH, "Int", 0
- , "UInt", 0x26200A, "Ptr", 0, "PtrP", PBITMAP)
- DllCall("Gdiplus.dll\GdipGetImageGraphicsContext", "Ptr", PBITMAP, "PtrP", PGRAPHICS)
- DllCall("Gdiplus.dll\GdipSetSmoothingMode", "Ptr", PGRAPHICS, "UInt", 4)
- DllCall("Gdiplus.dll\GdipSetInterpolationMode", "Ptr", PGRAPHICS, "Int", 7)
- DllCall("Gdiplus.dll\GdipSetCompositingQuality", "Ptr", PGRAPHICS, "UInt", 4)
- DllCall("Gdiplus.dll\GdipSetRenderingOrigin", "Ptr", PGRAPHICS, "Int", 0, "Int", 0)
- DllCall("Gdiplus.dll\GdipSetPixelOffsetMode", "Ptr", PGRAPHICS, "UInt", 4)
- DllCall("Gdiplus.dll\GdipGraphicsClear", "Ptr", PGRAPHICS, "UInt", GuiColor)
- If (Image = "") {
- PathX := PathY := 0, PathW := BtnW, PathH := BtnH
- DllCall("Gdiplus.dll\GdipCreatePath", "UInt", 0, "PtrP", PPATH)
- If (Rounded < 1)
- This.PathAddRectangle(PPATH, PathX, PathY, PathW, PathH)
- Else
- This.PathAddRoundedRect(PPATH, PathX, PathY, PathW, PathH, Rounded)
- If (BorderColor <> "") && (BorderWidth > 0) && (Mode <> 7) {
- DllCall("Gdiplus.dll\GdipCreateSolidFill", "UInt", BorderColor, "PtrP", PBRUSH)
- DllCall("Gdiplus.dll\GdipFillPath", "Ptr", PGRAPHICS, "Ptr", PBRUSH, "Ptr", PPATH)
- DllCall("Gdiplus.dll\GdipDeleteBrush", "Ptr", PBRUSH)
- DllCall("Gdiplus.dll\GdipResetPath", "Ptr", PPATH)
- PathX := PathY := BorderWidth, PathW -= BorderWidth, PathH -= BorderWidth, Rounded -= BorderWidth
- If (Rounded < 1)
- This.PathAddRectangle(PPATH, PathX, PathY, PathW - PathX, PathH - PathY)
- Else
- This.PathAddRoundedRect(PPATH, PathX, PathY, PathW, PathH, Rounded)
- BkgColor1 := 0xFF000000 | BkgColor1
- BkgColor2 := 0xFF000000 | BkgColor2
- PathW -= PathX
- PathH -= PathY
- If (Mode = 0) {
- DllCall("Gdiplus.dll\GdipCreateSolidFill", "UInt", BkgColor1, "PtrP", PBRUSH)
- DllCall("Gdiplus.dll\GdipFillPath", "Ptr", PGRAPHICS, "Ptr", PBRUSH, "Ptr", PPATH)
- Else If (Mode = 1) || (Mode = 2) {
- This.SetRectF(RECTF, PathX, PathY, PathW, PathH)
- DllCall("Gdiplus.dll\GdipCreateLineBrushFromRect", "Ptr", &RECTF
- , "UInt", BkgColor1, "UInt", BkgColor2, "Int", Mode & 1, "Int", 3, "PtrP", PBRUSH)
- DllCall("Gdiplus.dll\GdipSetLineGammaCorrection", "Ptr", PBRUSH, "Int", 1)
- This.SetRect(COLORS, BkgColor1, BkgColor1, BkgColor2, BkgColor2)
- This.SetRectF(POSITIONS, 0, 0.5, 0.5, 1)
- DllCall("Gdiplus.dll\GdipSetLinePresetBlend", "Ptr", PBRUSH
- , "Ptr", &COLORS, "Ptr", &POSITIONS, "Int", 4)
- DllCall("Gdiplus.dll\GdipFillPath", "Ptr", PGRAPHICS, "Ptr", PBRUSH, "Ptr", PPATH)
- Else If (Mode >= 3) && (Mode <= 6) {
- W := Mode = 6 ? PathW / 2 : PathW
- H := Mode = 5 ? PathH / 2 : PathH
- This.SetRectF(RECTF, PathX, PathY, W, H)
- DllCall("Gdiplus.dll\GdipCreateLineBrushFromRect", "Ptr", &RECTF
- , "UInt", BkgColor1, "UInt", BkgColor2, "Int", Mode & 1, "Int", 3, "PtrP", PBRUSH)
- DllCall("Gdiplus.dll\GdipSetLineGammaCorrection", "Ptr", PBRUSH, "Int", 1)
- DllCall("Gdiplus.dll\GdipFillPath", "Ptr", PGRAPHICS, "Ptr", PBRUSH, "Ptr", PPATH)
- Else {
- DllCall("Gdiplus.dll\GdipCreatePathGradientFromPath", "Ptr", PPATH, "PtrP", PBRUSH)
- DllCall("Gdiplus.dll\GdipSetPathGradientGammaCorrection", "Ptr", PBRUSH, "UInt", 1)
- VarSetCapacity(ColorArray, 4, 0)
- NumPut(BkgColor1, ColorArray, 0, "UInt")
- DllCall("Gdiplus.dll\GdipSetPathGradientSurroundColorsWithCount", "Ptr", PBRUSH, "Ptr", &ColorArray
- , "IntP", 1)
- DllCall("Gdiplus.dll\GdipSetPathGradientCenterColor", "Ptr", PBRUSH, "UInt", BkgColor2)
- FS := (BtnH < BtnW ? BtnH : BtnW) / 3
- XScale := (BtnW - FS) / BtnW
- YScale := (BtnH - FS) / BtnH
- DllCall("Gdiplus.dll\GdipSetPathGradientFocusScales", "Ptr", PBRUSH, "Float", XScale, "Float", YScale)
- DllCall("Gdiplus.dll\GdipFillPath", "Ptr", PGRAPHICS, "Ptr", PBRUSH, "Ptr", PPATH)
- DllCall("Gdiplus.dll\GdipDeleteBrush", "Ptr", PBRUSH)
- DllCall("Gdiplus.dll\GdipDeletePath", "Ptr", PPATH)
- } Else {
- If (Image + 0)
- DllCall("Gdiplus.dll\GdipCreateBitmapFromHBITMAP", "Ptr", Image, "Ptr", 0, "PtrP", PBM)
- Else
- DllCall("Gdiplus.dll\GdipCreateBitmapFromFile", "WStr", Image, "PtrP", PBM)
- DllCall("Gdiplus.dll\GdipDrawImageRectI", "Ptr", PGRAPHICS, "Ptr", PBM, "Int", 0, "Int", 0
- , "Int", BtnW, "Int", BtnH)
- DllCall("Gdiplus.dll\GdipDisposeImage", "Ptr", PBM)
- If (BtnCaption <> "") {
- DllCall("Gdiplus.dll\GdipStringFormatGetGenericTypographic", "PtrP", HFORMAT)
- DllCall("Gdiplus.dll\GdipCreateSolidFill", "UInt", TxtColor, "PtrP", PBRUSH)
- HALIGN := (BtnStyle & BS_CENTER) = BS_CENTER ? SA_CENTER
- : (BtnStyle & BS_CENTER) = BS_RIGHT ? SA_RIGHT
- : (BtnStyle & BS_CENTER) = BS_Left ? SA_LEFT
- : SA_CENTER
- DllCall("Gdiplus.dll\GdipSetStringFormatAlign", "Ptr", HFORMAT, "Int", HALIGN)
- VALIGN := (BtnStyle & BS_VCENTER) = BS_TOP ? 0
- : (BtnStyle & BS_VCENTER) = BS_BOTTOM ? 2
- DllCall("Gdiplus.dll\GdipSetStringFormatLineAlign", "Ptr", HFORMAT, "Int", VALIGN)
- DllCall("Gdiplus.dll\GdipSetTextRenderingHint", "Ptr", PGRAPHICS, "Int", 0)
- VarSetCapacity(RECT, 16, 0)
- NumPut(BtnW, RECT, 8, "Float")
- NumPut(BtnH, RECT, 12, "Float")
- DllCall("Gdiplus.dll\GdipDrawString", "Ptr", PGRAPHICS, "WStr", BtnCaption, "Int", -1
- , "Ptr", PFONT, "Ptr", &RECT, "Ptr", HFORMAT, "Ptr", PBRUSH)
- DllCall("Gdiplus.dll\GdipCreateHBITMAPFromBitmap", "Ptr", PBITMAP, "PtrP", HBITMAP, "UInt", 0X00FFFFFF)
- This.BitMaps[Index] := HBITMAP
- DllCall("Gdiplus.dll\GdipDisposeImage", "Ptr", PBITMAP)
- DllCall("Gdiplus.dll\GdipDeleteBrush", "Ptr", PBRUSH)
- DllCall("Gdiplus.dll\GdipDeleteStringFormat", "Ptr", HFORMAT)
- DllCall("Gdiplus.dll\GdipDeleteGraphics", "Ptr", PGRAPHICS)
- DllCall("Gdiplus.dll\GdipDeleteFont", "Ptr", PFONT)
- HIL := DllCall("Comctl32.dll\ImageList_Create"
- , "UInt", BtnW, "UInt", BtnH, "UInt", ILC_COLOR32, "Int", 6, "Int", 0, "Ptr")
- Loop, % (This.BitMaps.MaxIndex() > 1 ? 6 : 1) {
- HBITMAP := This.BitMaps.HasKey(A_Index) ? This.BitMaps[A_Index] : This.BitMaps.1
- DllCall("Comctl32.dll\ImageList_Add", "Ptr", HIL, "Ptr", HBITMAP, "Ptr", 0)
- VarSetCapacity(BIL, 20 + A_PtrSize, 0)
- NumPut(HIL, BIL, 0, "Ptr")
- Numput(BUTTON_IMAGELIST_ALIGN_CENTER, BIL, A_PtrSize + 16, "UInt")
- ControlSetText, , , ahk_id %HWND%
- Control, Style, +%BS_BITMAP%, , ahk_id %HWND%
- SendMessage, %BCM_SETIMAGELIST%, 0, 0, , ahk_id %HWND%
- SendMessage, %BCM_SETIMAGELIST%, 0, % &BIL, , ahk_id %HWND%
- This.FreeBitmaps()
- This.GdiplusShutdown()
- Return True
- SetGuiColor(GuiColor) {
- If !(GuiColor + 0) && !This.HTML.HasKey(GuiColor)
- Return False
- This.DefGuiColor := (This.HTML.HasKey(GuiColor) ? This.HTML[GuiColor] : GuiColor) & 0xFFFFFF
- Return True
- SetTxtColor(TxtColor) {
- If !(TxtColor + 0) && !This.HTML.HasKey(TxtColor)
- Return False
- This.DefTxtColor := (This.HTML.HasKey(TxtColor) ? This.HTML[TxtColor] : TxtColor) & 0xFFFFFF
- Return True
- global rem := 0
- OnMessage(0x201, "WM_LBUTTONDOWN")
- Gui, -border
- Gui, Margin, 0, 0
- Gui, Color, FFFFFF
- Gui, Font, s18, Lucida Console Standard
- Gui, Add, Picture, xm+10 ym+15 w240 h50, C:\Program Files\b.jpg
- Gui, Font, s11
- Gui, Add, Text, xm y+10 w5 h50 0xE hwndhGradB1
- Gui, Add, Text, x+0 yp w250 h50 0xE hwndhGradG1
- Gui, Add, Edit, xm+20 yp+10 h25 w210 BackgroundTrans hWndEditUserName vEditU,
- EM_SetCueBanner(EditUsername, "Username")
- Gui, Add, Text, xm y+10 w5 h50 0xE hwndhGradB2
- Gui, Add, Text, x+0 yp w250 h50 0xE hwndhGradG2
- Gui, Add, Edit, xm+20 yp+10 h25 w210 0x20 BackgroundTrans hWndEditPassword vEditP,
- EM_SetCueBanner(EditPassword, "Password")
- Gui, Font, c777777
- Gui, Add, button, xm+18 yp+35 h25 hwndhBT1 gend, X
- CtlColors.Attach(Check1, (rem ? "BEEAFF" : "FFFFFF"), "777777")
- Opt1 := [0, 0x00ED0000, , 0x00FFFFFF, 0, , 0x00FF0000, 1]
- Opt2 := [0, 0x00ED0000, , 0x00FFFFFF, 0, , 0x00FF0000, 1]
- Opt3 := [0, 0x00ED0000, , 0x00FFFFFF, 0, , 0x00FF0000, 1]
- Opt4 := [0, 0x00FF0000, , 0x00DFDFDF, 0, , 0x00FF0000, 1]
- Opt5 := [0, 0x00FF0000, , 0x00FFFFFF, 0, , 0x00FF0000, 1]
- Opt6 := [0, 0x00FF0000, , 0x00FFFFFF, 0, , 0x00FF0000, 1]
- if !(ImageButton.Create(hBT1, Opt1, Opt2, Opt3, Opt4, Opt5, Opt6))
- MsgBox, 0, ImageButton Error btn1, % ImageButton.LastError
- Gui, Font, s13
- Gui, Add, Button, x+130 yp h25 hwndhBT1 glogin, Login
- Opt1 := [0, 0x0065CA60, , 0x00FFFFFF, 0, , 0x0047AA40, 1]
- Opt2 := [0, 0x0052c44d, , 0x00FFFFFF, 0, , 0x0047AA40, 1]
- Opt3 := [0, 0x0044b93e, , 0x00FFFFFF, 0, , 0x0047AA40, 1]
- Opt4 := [0, 0x80F0F0F0, , 0x00DFDFDF, 0, , 0x0047AA40, 1]
- Opt5 := [0, 0x0065CA60, , 0x00FFFFFF, 0, , 0x0047AA40, 1]
- Opt6 := [0, 0x0065CA60, , 0x00FFFFFF, 0, , 0x0047AA40, 1]
- if !(ImageButton.Create(hBT1, Opt1, Opt2, Opt3, Opt4, Opt5, Opt6))
- MsgBox, 0, ImageButton Error btn1, % ImageButton.LastError
- Gui, Font, cFFFFFF
- Gui, Add, Text, xm y+20 w1 h1
- Gui, Show, AutoSize, Login
- Gui, +LastFound
- WinSet, Redraw
- return
- Check:
- Gui, Submit, NoHide
- CtlColors.Change(Check1, (rem ? "BEEAFF" : "FFFFFF"), "777777")
- return
- end:
- exitapp
- #if WinActive("Login")
- ~Lbutton::
- ~Tab::
- ~+Tab::
- sleep 10
- GuiControlGet, GetFocus, Focus
- if (GetFocus = "Edit1")
- ApplyGradient(hGradB1, "3EC2FF", "3EC2FF")
- ApplyGradient(hGradG1, "F6F6F6", "F6F6F6")
- ApplyGradient(hGradB2, "FFFFFF", "FFFFFF")
- ApplyGradient(hGradG2, "FFFFFF", "FFFFFF")
- else if (GetFocus = "Edit2")
- ApplyGradient(hGradB1, "FFFFFF", "FFFFFF")
- ApplyGradient(hGradG1, "FFFFFF", "FFFFFF")
- ApplyGradient(hGradB2, "3EC2FF", "3EC2FF")
- ApplyGradient(hGradG2, "F6F6F6", "F6F6F6")
- else
- ApplyGradient(hGradB1, "FFFFFF", "FFFFFF")
- ApplyGradient(hGradG1, "FFFFFF", "FFFFFF")
- ApplyGradient(hGradB2, "FFFFFF", "FFFFFF")
- ApplyGradient(hGradG2, "FFFFFF", "FFFFFF")
- WinSet, Redraw
- return
- #IfWinActive
- WM_LBUTTONDOWN(wParam, lParam)
- PostMessage, 0xA1, 2,,, A
- return
- EM_SetCueBanner(hWnd, Cue)
- static EM_SETCUEBANNER := 0x1501
- return DllCall("User32.dll\SendMessage", "Ptr", hWnd, "UInt", EM_SETCUEBANNER, "Ptr", True, "WStr", Cue)
- ApplyGradient(Hwnd, RB := "101010", LT := "0000AA", Vertical := 1)
- ControlGetPos,,, W, H,, ahk_id %Hwnd%
- PixelData := Vertical ? LT "|" LT "|" RB "|" RB : RB "|" RB "|" LT "|" LT
- hBitmap := CreateDIB(PixelData, 2, 2, W, H, True)
- oBitmap := DllCall("User32.dll\SendMessage", "Ptr", Hwnd, "UInt", 0x172, "Ptr", 0, "Ptr", hBitmap)
- return hBitmap, DllCall("Gdi32.dll\DeleteObject", "Ptr", oBitmap)
- CreateDIB(PixelData, W, H, ResizeW := 0, ResizeH := 0, Gradient := 1)
- WB := Ceil((W * 3) / 2) * 2, VarSetCapacity(BMBITS, WB * H + 1, 0), P := &BMBITS
- loop, Parse, PixelData, |
- P := Numput("0x" A_LoopField, P + 0, 0, "UInt") - (W & 1 && Mod(A_Index * 3, W * 3) = 0 ? 0 : 1)
- hBM := DllCall("Gdi32.dll\CreateBitmap", "Int", W, "Int", H, "UInt", 1, "UInt", 24, "Ptr", 0, "Ptr")
- hBM := DllCall("User32.dll\CopyImage", "Ptr", hBM, "UInt", 0, "Int", 0, "Int", 0, "UInt", 0x2008, "Ptr")
- DllCall("Gdi32.dll\SetBitmapBits", "Ptr", hBM, "UInt", WB * H, "Ptr", &BMBITS)
- if !(Gradient + 0)
- hBM := DllCall("User32.dll\CopyImage", "Ptr", hBM, "UInt", 0, "Int", 0, "Int", 0, "UInt", 0x0008, "Ptr")
- return DllCall("User32.dll\CopyImage", "Ptr", hBM, "Int", 0, "Int", ResizeW, "Int", ResizeH, "Int", 0x200C, "UPtr")
- login:
- Gui, Submit, NoHide
- AAA:= % EditU
- BBB:= % EditP
- winHttp := ComObjCreate("WinHttp.WinHttpRequest.5.1")
- WinHTTP.SetProxy(0)
- winhttp.Open("GET", "http://110.12.174.182/test.php?username=" AAA "&password=" BBB )
- winhttp.send()
- winhttp.WaitforResponse()
- Result1:=Winhttp.ResponseText
- if Result1 = succ
- Gui,1: Destroy
- goto, guif
- return
- if Result1 = Loginattemptfailed
- exitapp
- return
- GuiClose:
- exitapp
- return
- Box_Init(C="FF0000") {
- Gui, 96: -Caption +ToolWindow +E0x20
- Gui, 96: Color, % C
- Gui, 97: -Caption +ToolWindow +E0x20
- Gui, 97: Color, % C
- Gui, 98: -Caption +ToolWindow +E0x20
- Gui, 98: Color, % C
- Gui, 99: -Caption +ToolWindow +E0x20
- Gui, 99: Color, % C
- Box_Draw(X, Y, W, H, T="1", O="I") {
- If(W < 0)
- X += W, W *= -1
- If(H < 0)
- Y += H, H *= -1
- If(T >= 2)
- If(O == "O")
- X -= T, Y -= T, W += T, H += T
- If(O == "C")
- X -= T / 2, Y -= T / 2
- If(O == "I")
- W -= T, H -= T
- Gui, 96: Show, % "x" X " y" Y " w" W " h" T " NA", Horizontal 1
- Gui, 96:+AlwaysOnTop
- Gui, 98: Show, % "x" X " y" Y + H " w" W " h" T " NA", Horizontal 2
- Gui, 98:+AlwaysOnTop
- Gui, 97: Show, % "x" X " y" Y " w" T " h" H " NA", Vertical 1
- Gui, 97:+AlwaysOnTop
- Gui, 99: Show, % "x" X + W " y" Y " w" T " h" H " NA", Vertical 2
- Gui, 99:+AlwaysOnTop
- Box_Destroy() {
- Loop, 4
- Gui, % A_Index + 95 ": Destroy"
- Box_Hide() {
- Loop, 4
- Gui, % A_Index + 95 ": Hide"
- guif:
- CCC:= % EditU
- DDD:= % EditP
- winHttp := ComObjCreate("WinHttp.WinHttpRequest.5.1")
- winhttp.Open("GET", "http://110.12.174.182/test1.php?username=" CCC "&password=" DDD )
- winhttp.send()
- winhttp.WaitforResponse()
- Result:=Winhttp.ResponseText
- winHttp := ComObjCreate("WinHttp.WinHttpRequest.5.1")
- WinHTTP.SetProxy(0)
- winhttp.Open("GET", "http://110.12.174.182/test3.php?username=" CCC "&password=" DDD )
- winhttp.send()
- winhttp.WaitforResponse()
- Result2:=Winhttp.ResponseText
- #notrayicon
- winkill,Telerik Fiddler Web Debugger
- winkill,Cheat
- winkill,Xis
- winkill,Paros
- Suspend, off
- Firing := 0
- Gui, 2:Color, FFFFFF
- soundplay, C:\Program Files\Start.wav
- Gui, 2:Add, Button, x5 y5 w115 h35 vid, % CCC
- GuiControl,2:Disable,id
- Gui, 2:Add, Button, x130 y5 w110 h35 ghome, HOME
- Gui, 2:Add, Button, x250 y5 w115 h35 vdate, %Result%
- GuiControl,2:Disable,date
- Gui 2:Add, Picture, x5 y45 w360 h175, C:\Program Files\a.jpg
- Gui, 2:Font, Bold
- Gui 2:Add, GroupBox, x10 y220 w350 h35,
- Gui 2:Add, GroupBox, x10 y247 w350 h75,
- Gui 2:Add, GroupBox, x10 y313 w350 h70,
- Gui 2:Add, GroupBox, x10 y375 w350 h115,
- Gui, 2:Font, Normal
- Gui 2:Add, CheckBox, x20 y230 w120 h20 gaim1 vaimtype,
- Gui 2:Add, CheckBox, x150 y230 w120 h20 gaim2 vaimtype1,
- Gui 2:Add, CheckBox, x280 y230 w70 h20 gaim3 vaimtype2,
- Gui, 2:Add, Button, x20 y260 w20 h20 gspeed, ?
- Gui 2:Add, Text, x40 y265 w60 h15,
- Gui 2:Add, Edit, x90 y262 w50 h20 vrx, 5.0
- Gui, 2:Add, Button, x140 y263 w20 h20 g
- Gui, 2:Add, Button, x160 y263 w20 h20 g
- Gui, 2:Add, Button, x20 y290 w20 h20 ghigh, ?
- Gui 2:Add, Text, x40 y295 w60 h20,
- Gui 2:Add, Edit, x90 y292 w50 h20 vxy, 0
- Gui, 2:Add, Button, x140 y293 w20 h20 g
- Gui, 2:Add, Button, x160 y293 w20 h20 g
- Gui, 2:Add, Text, x40 y328 w50 h20,
- Gui, 2:Add, Slider,x90 y323 w265 h25 vxrange Invert Tickinterval1 range1-4, 4
- Gui, 2:Add, Text, x40 y355 w50 h19,
- Gui, 2:Add, Slider,x90 y350 w265 h25 vyrange Invert Tickinterval1 range1-4, 4
- Gui, 2:Font, Bold
- Gui, 2:Font, Normal
- Gui 2:Add, Button, x20 y325 w20 h20 gleft, ?
- Gui 2:Add, Button, x20 y350 w20 h20 gwe, ?
- Gui 2:Add, Text, x200 y262 w60 h20,
- Gui 2:Add, Edit, x260 y259 w70 h20 vsav,
- Gui 2:Add, Button, x330 y259 w20 h20 gsave, ?
- Gui 2:Add, Button, x200 y285 w70 h30 g
- Gui 2:Add, Button, x280 y285 w70 h30 g
- Gui 2:Add, Button, x20 y385 w150 h30 vF1 gF1, 1280x720
- Gui 2:Add, Button, x200 y385 w150 h30 vF2 gF2, 1920x1080
- Gui 2:Add, Button, x20 y420 w150 h30 gF4,
- Gui 2:Add, Button, x200 y420 w150 h30 gF5,
- Gui 2:Add, Button, x20 y455 w150 h30 vpu,
- GuiControl,2:Disable,pu
- Gui 2:Add, Button, x200 y455 w150 h30 vkakao,
- GuiControl,2:Disable,kakao
- Gui 2:Show, w370 h495, Bentley Licensed User
- Loop {
- Gui, 2:Submit, NoHide
- Sleep -1
- Return
- TrigerSub:
- GuiControlGet, trigger
- if trigger
- setbatchlines,-1
- dir := "1.png"
- if (!fileexist(dir)) {
- URLDownloadToFile,http://110.12.174.182/wrQBaYL.png, % dir
- while (!fileexist(dir))
- sleep, 50
- wingetpos,,,ww,wh, % "ahk_class TankWindowClass"
- center_x := ww/2
- center_y := wh/2
- loop {
- ImageSearch, , , % center_x, 0, % center_x, % center_y, % "*80 " dir
- If (!Errorlevel) {
- ImageSearch, , , % center_x, % center_y, % center_x, % wh, % "*80 " dir
- If (!Errorlevel)
- Send {Click down}
- Sleep,225
- Send {Click up}
- Sleep,20
- Return
- soundplay, C:\Program Files\ingame.wav
- Send {Ctrl Down}{Shift Down}{R Down}{Ctrl Up}{Shift Up}{R Up}
- Return
- #If roadhog1=1
- mbutton::
- MouseClick, right
- sleep, 5
- Send {LShift down}{LShift up}
- sleep, 1040
- MouseClick, left
- sleep, 50
- Send {v down}{v up}
- Return
- Return
- #If genji=1
- mbutton::
- MouseClick, right
- sleep, 15
- Send {v down}{v up}
- sleep, 15
- Send {Shift down}{Shift up}
- Return
- Return
- #If roadhog=1
- Send {r}
- Sleep 1880
- Send {v}
- Return
- Return
- #If torbjorn=1
- Send {r}
- Sleep 1780
- Send {v}
- Return
- Return
- #If pharah=1
- Send {r}
- Sleep 1200
- Send {v}
- Return
- return
- #If reaper=1
- Send {r}
- Sleep 350
- Send {v}
- Return
- return
- #If mccree=1
- ~RButton::
- Loop
- If GetKeyState("RButton") {
- Sleep, 5
- moveAmount := (moveAmount = 2) ? 3 : 0
- mouseXY(moveAmount,3.4)
- else
- break
- Return
- mouseXY(x,y)
- DllCall("mouse_event",int,1,int,x,int,y,uint,0,uint,0)
- return
- SkinForm(Param1 = "Apply", DLL = "", SkinName = ""){
- if(Param1 = Apply){
- DllCall("LoadLibrary", str, DLL)
- DllCall(DLL . "\USkinInit", Int,0, Int,0, AStr, SkinName)
- }else if(Param1 = 0) {
- DllCall(DLL . "\USkinExit")
- save:
- Gui,2:Submit, Nohide
- msgbox,0,
- ERROR
- return
- gui,submit,nohide
- filedelete %A_WorkingDir%\save\%sav%.ini
- IniWrite, %aimtype%,%A_WorkingDir%\save\%sav%.ini,
- IniWrite, %aimtype1%, %A_WorkingDir%\save\%sav%.ini,
- IniWrite, %aimtype2%, %A_WorkingDir%\save\%sav%.ini,
- IniWrite, %rx%, %A_WorkingDir%\save\%sav%.ini,
- IniWrite, %xy%, %A_WorkingDir%\save\%sav%.ini,
- msgbox,,SAVE,
- Return
- gui,2:submit,nohide
- IniRead,
- 1, %A_WorkingDir%\save\%sav%.ini,
- IniRead,
- 2, %A_WorkingDir%\save\%sav%.ini,
- IniRead,
- 3, %A_WorkingDir%\save\%sav%.ini,
- IniRead,
- 4, %A_WorkingDir%\save\%sav%.ini,
- IniRead,
- 5, %A_WorkingDir%\save\%sav%.ini,
- guicontrol,,aimtype,%
- guicontrol,,aimtype1,%
- guicontrol,,aimtype2,%
- guicontrol,,rx,%
- guicontrol,,xy,%
- Msgbox,, LOAD,
- goto,chch
- Return
- speed:
- msgbox,0,
- return
- high:
- msgbox,0,
- return
- left:
- msgbox,0,
- return
- msgbox,0,
- return
- chch:
- gui,2:submit,nohide
- if % aimtype = 1
- guicontrol,2:disable,aimtype1
- guicontrol,2:disable,aimtype2
- if % aimtype1 = 1
- guicontrol,2:disable,aimtype
- guicontrol,2:disable,aimtype2
- if % aimtype2 = 1
- guicontrol,2:disable,aimtype
- guicontrol,2:disable,aimtype1
- retur
- >AHK WITH ICON<(
- H゙■ᅢ
- Hヘ■ᅲ
- Hテ■ᄄ
- Hᄃ■ロ
- レ゙テ
- Bᄍᄍᄎ
- Mᄌᄌ
- ロホᅨ
- Dᅨᅨᅦ
- ルレᄇ
- Dᄚᄚᆱ
- dda
- ᅣtw
- VS_VERSION_INFO
- StringFileInfo
- FileDescription
- FileVersion
- InternalName
- LegalCopyright
- OriginalFilename
- ProductName
- ProductVersion
- VarFileInfo
- Translation
- home:
- run, http://naver.com
- gui,2:submit,nohide
- return
- aim1:
- gui,2:submit,nohide
- guicontrol,% (aimtype=1 ? "disable":"enable"),aimtype1
- guicontrol,% (aimtype=1 ? "disable":"enable"),aimtype2
- return
- aim2:
- gui,2:submit,nohide
- guicontrol,% (aimtype1=1 ? "disable":"enable"),aimtype
- guicontrol,% (aimtype1=1 ? "disable":"enable"),aimtype2
- return
- aim3:
- gui,2:submit,nohide
- guicontrol,% (aimtype2=1 ? "disable":"enable"),aimtype
- guicontrol,% (aimtype2=1 ? "disable":"enable"),aimtype1
- return
- setformat,float,0.1
- GuiControl,, rx, % rx+0.1
- Gui,Submit, Nohide
- return
- setformat,float,0.1
- GuiControl,, rx, % rx-0.1
- Gui,Submit, Nohide
- return
- GuiControl,, xy, % xy+1
- Gui,Submit, Nohide
- return
- GuiControl,, xy, % xy-1
- Gui,Submit, Nohide
- return
- if ( %Result2% = aaa )
- Gui,2:Submit, Nohide
- guicontrol,2:disable,F1
- guicontrol,2:disable,F2
- soundplay, C:\Program Files\ena.wav
- #Persistent
- #KeyHistory, 0
- #NoEnv
- #HotKeyInterval 1
- #MaxHotkeysPerInterval 127
- #InstallKeybdHook
- #UseHook
- #SingleInstance, Force
- SetKeyDelay,-1, 8
- SetControlDelay, -1
- SetMouseDelay, -1
- SetDefaultMouseSpeed, 0
- SetWinDelay,-1
- SetBatchLines,-1
- ListLines, Off
- CoordMode, Mouse, Screen
- PID := DllCall("GetCurrentProcessId")
- Process, Priority, %PID%, Normal
- ZeroX := 640
- ZeroY := 360
- CFovX := 320
- CFovY := 200
- ScanL := 500
- ScanR := 800
- ScanT := 180
- ScanB := 400
- GuiControlget, rX
- GuiControlget, xa
- GuiControlget, ya
- GuiControlget, xrange
- GuiControlget, yrange
- GuiControlget, rX
- Loop, {
- Gui,Submit, Nohide
- if (aimtype=1)
- GetKeyState, Mouse2, LButton, P
- GoSub MouseMoves2
- if (aimtype1=1)
- GetKeyState, Mouse2, RButton, P
- GoSub MouseMoves2
- if (aimtype2=1)
- GetKeyState, Mouse2, RButton, P
- GoSub MouseMoves1
- if (aimtype3=1)
- GetKeyState, Mouse2, XButton1, P
- GoSub MouseMoves2
- if (aimtype4=1)
- GetKeyState, Mouse2, XButton2, P
- GoSub MouseMoves2
- imageSearch, AimPixelX, AimPixelY, 0 + (A_Screenwidth * (xrange/10)), 0 + (A_Screenheight * (yrange /10)), A_Screenwidth - (A_Screenwidth * (xrange/10)), A_Screenheight - (A_Screenheight * (yrange / 10)), *4 C:\Program Files\hhp2.bmp
- GoSub GetAimOffset
- GoSub GetAimMoves
- if(ErrorLevel = 1){
- imageSearch, AimPixelX, AimPixelY, 0 + (A_Screenwidth * (xrange/10)), 0 + (A_Screenheight * (yrange /10)), A_Screenwidth - (A_Screenwidth * (xrange/10)), A_Screenheight - (A_Screenheight * (yrange / 10)), *4 C:\Program Files\hhp3.bmp
- GoSub GetAimOffset3
- GoSub GetAimMoves
- if(overlayActive=1){
- Box_Init("FF0000")
- X := 0 + (A_Screenwidth * (xrange/10))
- Y := 0 + (A_Screenheight * (yrange/10))
- W := (A_Screenwidth - (A_Screenwidth * (xrange/10))) - X
- H := (A_Screenheight - (A_Screenheight * (yrange/ 10))) -Y
- Box_Draw(X, Y , W, H)
- if(overlayActive=0){
- Box_Hide()
- MouseMoves:
- If ( Mouse2 == "D" ) {
- DllCall("mouse_event", uint, 1, int, MoveX, int, MoveY, uint, 0, int, 0)
- Return
- MouseMoves1:
- If ( Mouse2 == "U" ) {
- DllCall("mouse_event", uint, 1, int, MoveX, int, MoveY, uint, 0, int, 0)
- Return
- GetAimOffset:
- Gui,Submit, Nohide
- AimX := AimPixelX - ZeroX +33
- AimY := AimPixelY - ZeroY +53 +xy
- If ( AimX+5 > 0) {
- DirX := rx / 10
- If ( AimX+5 < 0) {
- DirX := (-rx) / 10
- If ( AimY+2 > 0 ) {
- DirY := rX /10 *0.5
- If ( AimY+2 < 0 ) {
- DirY := (-rx) /10 *0.5
- AimOffsetX := AimX * DirX
- AimOffsetY := AimY * DirY
- Return
- GetAimOffset3:
- Gui,Submit, Nohide
- AimX := AimPixelX - ZeroX +28
- AimY := AimPixelY - ZeroY +53 +xy
- If ( AimX+5 > 0) {
- DirX := rx / 10
- If ( AimX+5 < 0) {
- DirX := (-rx) / 10
- If ( AimY+2 > 0 ) {
- DirY := rX /10 *0.5
- If ( AimY+2 < 0 ) {
- DirY := (-rx) /10 *0.5
- AimOffsetX := AimX * DirX
- AimOffsetY := AimY * DirY
- Return
- GetAimMoves:
- RootX := Ceil(( AimOffsetX ** ( 1 )))
- RootY := Ceil(( AimOffsetY ** ( 1 )))
- MoveX := RootX * DirX
- MoveY := RootY * DirY
- sleep, 1
- Return
- SleepF:
- SleepDuration = 1
- TimePeriod = 1
- DllCall("Winmm\timeBeginPeriod", uint, TimePeriod)
- Iterations = 1
- StartTime := A_TickCount
- Loop, %Iterations% {
- DllCall("Sleep", UInt, TimePeriod)
- DllCall("Winmm\timeEndPeriod", UInt, TimePeriod)
- Return
- DebugTool:
- MouseGetPos, MX, MY
- ToolTip, %AimOffsetX% | %AimOffsetY%
- ToolTip, %AimX% | %AimY%
- ToolTip, %IntAimX% | %IntAimY%
- ToolTip, %RootX% | %RootY%
- ToolTip, %MoveX% | %MoveY% || %MX% %MY%
- Return
- Gui,2:Submit, Nohide
- guicontrol,2:disable,F1
- guicontrol,2:disable,F2
- soundplay, C:\Program Files\ena.wav
- #Persistent
- #KeyHistory, 0
- #NoEnv
- #HotKeyInterval 1
- #MaxHotkeysPerInterval 127
- #InstallKeybdHook
- #UseHook
- #SingleInstance, Force
- SetKeyDelay,-1, 8
- SetControlDelay, -1
- SetMouseDelay, 0
- SetDefaultMouseSpeed, 0
- SetWinDelay,-1
- SendMode, InputThenPlay
- SetBatchLines,-1
- ListLines, Off
- CoordMode, Mouse, Screen
- PID := DllCall("GetCurrentProcessId")
- Process, Priority, %PID%, Normal
- ZeroX := 960
- ZeroY := 540
- CFovX := 80
- CFovY := 200
- ScanL := 660
- ScanR := 1250
- ScanT := 280
- ScanB := 610
- GuiControlget, rX
- GuiControlget, xa
- GuiControlget, ya
- GuiControlget, xrange
- GuiControlget, yrange
- Loop, {
- Gui,Submit, Nohide
- if (aimtype=1)
- GetKeyState, Mouse2, LButton, P
- GoSub MouseMoves2
- if (aimtype1=1)
- GetKeyState, Mouse2, RButton, P
- GoSub MouseMoves2
- if (aimtype2=1)
- GetKeyState, Mouse2, RButton, P
- GoSub MouseMoves11
- if (aimtype3=1)
- GetKeyState, Mouse2, XButton1, P
- GoSub MouseMoves2
- if (aimtype4=1)
- GetKeyState, Mouse2, XButton2, P
- GoSub MouseMoves2
- imageSearch, AimPixelX, AimPixelY, 0 + (A_Screenwidth * (xrange/10)), 0 + (A_Screenheight * (yrange/10)), A_Screenwidth - (A_Screenwidth * (xrange/10)), A_Screenheight - (A_Screenheight * (yrange/ 10)), *4 C:\Program Files\hhp2.bmp
- GoSub GetAimOffset1
- GoSub GetAimMoves
- if(ErrorLevel = 1){
- imageSearch, AimPixelX, AimPixelY, 0 + (A_Screenwidth * (xrange/10)), 0 + (A_Screenheight * (yrange/10)), A_Screenwidth - (A_Screenwidth * (xrange/10)), A_Screenheight - (A_Screenheight * (yrange/ 10)), *4 C:\Program Files\hhp4.bmp
- GoSub GetAimOffset2
- GoSub GetAimMoves
- if(overlayActive=1){
- Box_Init("FF0000")
- X := 0 + (A_Screenwidth * (range/10))
- Y := 0 + (A_Screenheight * (range/10))
- W := (A_Screenwidth - (A_Screenwidth * (range/10))) - X
- H := (A_Screenheight - (A_Screenheight * (range/10))) -Y
- Box_Draw(X, Y , W, H)
- if(overlayActive=0){
- Box_Hide()
- MouseMoves2:
- If ( Mouse2 == "D" ) {
- DllCall("mouse_event", uint, 1, int, MoveX, int, MoveY, uint, 0, int, 0)
- Return
- MouseMoves11:
- If ( Mouse2 == "U" ) {
- DllCall("mouse_event", uint, 1, int, MoveX, int, MoveY, uint, 0, int, 0)
- Return
- GetAimOffset1:
- Gui,Submit, Nohide
- AimX := AimPixelX - ZeroX +47.5
- AimY := AimPixelY - ZeroY +55 +xy
- If ( AimX+5 > 0) {
- DirX := rx / 10
- If ( AimX+5 < 0) {
- DirX := (-rx) / 10
- If ( AimY+2 > 0 ) {
- DirY := rX /10 *0.5
- If ( AimY+2 < 0 ) {
- DirY := (-rx) /10 *0.5
- AimOffsetX := AimX * DirX
- AimOffsetY := AimY * DirY
- Return
- GetAimOffset2:
- Gui,Submit, Nohide
- AimX := AimPixelX - ZeroX +47.5
- AimY := AimPixelY - ZeroY +55 +xy
- If ( AimX+5 > 0) {
- DirX := rx / 10
- If ( AimX+5 < 0) {
- DirX := (-rx) / 10
- If ( AimY+2 > 0 ) {
- DirY := rX /10 *0.5
- If ( AimY+2 < 0 ) {
- DirY := (-rx) /10 *0.5
- AimOffsetX := AimX * DirX
- AimOffsetY := AimY * DirY
- Return
- GetAimMoves1:
- RootX := Ceil(( AimOffsetX ** ( 1 )))
- RootY := Ceil(( AimOffsetY ** ( 1 )))
- MoveX := RootX * DirX
- MoveY := RootY * DirY
- sleep, 1
- Return
- SleepF1:
- SleepDuration = 1
- TimePeriod = 1
- DllCall("Winmm\timeBeginPeriod", uint, TimePeriod)
- Iterations = 1
- StartTime := A_TickCount
- Loop, %Iterations% {
- DllCall("Sleep", UInt, TimePeriod)
- DllCall("Winmm\timeEndPeriod", UInt, TimePeriod)
- Return
- DebugTool1:
- MouseGetPos, MX, MY
- ToolTip, %AimOffsetX% | %AimOffsetY%
- ToolTip, %AimX% | %AimY%
- ToolTip, %IntAimX% | %IntAimY%
- ToolTip, %RootX% | %RootY%
- ToolTip, %MoveX% | %MoveY% || %MX% %MY%
- Return
- pause
- SoundBEEP
- return
- Gui,2:Submit, Nohide
- CCC:= % EditU
- DDD:= % EditP
- winHttp := ComObjCreate("WinHttp.WinHttpRequest.5.1")
- winhttp.Open("GET", "http://110.12.174.182/logout.php?username=" CCC "&password=" DDD )
- winhttp.send()
- winhttp.WaitforResponse()
- Result:=Winhttp.ResponseText
- sleep 100
- RELOAD
- Return
- 2guiClose:
- CCC:= % EditU
- DDD:= % EditP
- winHttp := ComObjCreate("WinHttp.WinHttpRequest.5.1")
- winhttp.Open("GET", "http://110.12.174.182/logout.php?username=" CCC "&password=" DDD )
- winhttp.send()
- winhttp.WaitforResponse()
- Result:=Winhttp.ResponseText
- sleep 100
- Gui,1: Destroy
- Gui,2: Destroy
- Exitapp
- else
- exitapp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement