Opt("TrayMenuMode",0) ;0=append, 1=no default menu, 2=no automatic check, 4=menuitemID not return Opt("TrayOnEventMode",0) ;0=disable, 1=enable Opt("WinDetectHiddenText", 0) ;0=don't detect, 1=do detect Opt("WinSearchChildren", 1) ;0=no, 1=search children also Opt("WinTextMatchMode", 1) ;1=complete, 2=quick Opt("WinTitleMatchMode", 1) ;1=start, 2=subStr, 3=exact, 4=advanced, -1 to - 4=Nocase Opt("WinWaitDelay", 250) ;250 milliseconds Function Reference PixelGetColor trả lại giá trị màu tại điểm ảnh. PixelGetColor ( x , y [, hwnd] ) Parameters x tọa đọ X y tọa độ Y hwnd handle tới GUI muốn kiểm tra, nếu ko có thì GUI hiện tại Return Value Success: trả lại số hex (0x ) Failure: Returns -1 nếu tọa độ sai. Remarks Earlier versions of AutoIt (prior to v3.0.102) used the BGR format for defining color - newer versions use RGB by default but this can be changed using the ColorMode option. Related ColorMode (Option), PixelSearch, PixelCoordMode (Option), MouseGetPos Example $var = PixelGetColor( 10 , 100 ) MsgBox(0,"The decmial color is", $var) MsgBox(0,"The hex color is", Hex($var, 6)) Function Reference PixelSearch tìm kiếm điểm ảnh trên phân vùng chỉ định. PixelSearch ( left, top, right, bottom, color [, shade-variation [, step [, hwnd]]] ) Parameters left x1 top y1 right x2 bottom y2 colour giá trị màu muốn tìm shade- variation độ chính xác [0 255] mặc định là 0 step bước nhảy mặc định là 1 hwnd handle tới GUI muốn kiểm tra, nếu ko có thì GUI hiện tại Return Value Success: trả lại mảng 2 phần tử, $array[0]= tọa độ x, $array[1]= tọa độ y Failure: Sets @error to 1 nếu ko tìm thấy Remarks The search is performed left-to-right, top-to-bottom and the first match is returned. Earlier versions of AutoIt (prior to v3.0.102) used the BGR format for defining color - newer versions use RGB by default but this can be changed using the ColorMode option. Remember, a typical display at 1024 x 768 has 786432 pixels. Although PixelSearch is optimized, narrowing the search area helps speed up the result. Related ColorMode (Option), PixelChecksum, PixelGetColor, PixelCoordMode (Option) Example ; Find a pure red pixel in the range 0,0-20,300 $coord = PixelSearch( 0, 0, 20, 300, 0xFF0000 ) If Not @error Then MsgBox(0, "X and Y are:", $coord[0] & "," & $coord[1]) EndIf ; Find a pure red pixel or a red pixel within 10 shades variations of pure red $coord = PixelSearch( 0, 0, 20, 300, 0xFF0000, 10 ) If Not @error Then MsgBox(0, "X and Y are:", $coord[0] & "," & $coord[1]) EndIf Function Reference SoundPlay chayj một file nhạc SoundPlay ( "filename" [, wait] ) Parameters filename đường dẫn (hỗ trợ file WAV và MP3) wait chir định script có dừng lại cho đến khi bài hát kết thúc hay ko 1 = có 0 = ko (mặc định) Return Value luôn trả lại 1 Remarks Terminating the script will stop the sound (if it is still playing). Calling SoundPlay("") can be used to stop a currently playing sound. This has the side effect of also closing the open handle. If you need to delete a sound file which you have played in the script, you should call SoundPlay("") first to ensure the handle is closed. Related SoundSetWaveVolume Example SoundPlay(@WindowsDir & "\media\tada.wav",1) Function Reference SoundSetWaveVolume thiết đặt âm lượng của hệ thống SoundSetWaveVolume ( percent ) Parameters percent số phần trăm [0 100] Return Value Success: Returns 1. Failure: Returns 0 và sets @error to 1 nếu pecent ko đúng. Remarks This controls the Wave volume, not the master volume control. Also, a value of Zero does not set mute status. On Windows Vista, there is no system-wide wave volume. This function only changes the wave volume for the script. It can not be used to change the wave volume of other programs. Related . Success: trả lại số hex (0x ) Failure: Returns -1 nếu tọa độ sai. Remarks Earlier versions of AutoIt (prior to v3.0.102) used the BGR format for defining color - newer versions use RGB by default. performed left-to-right, top-to-bottom and the first match is returned. Earlier versions of AutoIt (prior to v3.0.102) used the BGR format for defining color - newer versions use RGB by default. at 1024 x 768 has 786432 pixels. Although PixelSearch is optimized, narrowing the search area helps speed up the result. Related ColorMode (Option), PixelChecksum, PixelGetColor, PixelCoordMode