Tham khảo tài liệu 'giáo trình how to use autoit a professional manner part 68', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | EndSwitch WEnd EndFunc Example Function Reference GUIDelete xóa GUI và mọi control trên GUI. GUIDelete winhandle Parameters winhandle Windows handle đc trả lại bởi GUICreate mặc định là GUI vừa được dùng . Return Value Success Returns 1. Failure Returns 0. Remarks None. Related GUICreate Example include Opt MustDeclareVars 1 Example Func Example Local msg GUICreate My GUI will create a dialog box that when displayed is centered GUISetState will display an empty dialog box Run the GUI until the dialog is closed While 1 msg GUIGetMsg If msg GUI_EVENT_CLOSE Then ExitLoop WEnd GUIDelete will return 1 EndFunc Example Function Reference AutoItSetOption Changes the operation of various AutoIt functions parameters. AutoItSetOption option param Parameters option The option to change. See Remarks. param optional The value to assign to the option. The type and meaning vary by option. See remarks below. If the param is not provided then the function just returns the value already assigned to the option. The keyword Default can be used for the parameter to reset the option to its default value. Return Value Returns the value of the previous setting for the option. Remarks You may use Opt as an alternative to AutoItSetOption . Autolt will halt with an error message if the requested option is unknown. Options are as follows Option Param CaretCoordMode Sets the way coords are used in the caret functions either absolute coords or coords relative to the current active window 0 relative coords to the active window 1 absolute screen coordinates default 2 relative coords to the client area of the active window ExpandEnvStrings Changes how literal strings and symbols are interpreted. By default strings are treated literally this option allows you to use environment variables inside strings . The temp directory is temp . 1 expand environment variables similar to Autolt v2 0 do not expand environment variables default Without this option the usual way would be The .