TAILIEUCHUNG - AutoI Technology Curriculum Book part 21

Tham khảo tài liệu 'autoi technology curriculum book part 21', 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ả | mem MemGetStats MsgBox 0 Total physical RAM KB mem 1 Function Reference ConsoleRead Read from the STDIN stream of the AutoIt script process. ConsoleRead peek false binary false Parameters peek If true the function does not remove the read characters from the stream. binary If true the function reads the data as binary instead of text default is text . Return Value Success Returns the data read. @extended contains the number of bytes read. Failure Sets @error to non-zero if EOF is reached STDIN is not connected for the process or other error. Remarks ConsoleRead reads from the console standard input stream of the AutoIt script process which is normally used by console applications to read input from a parent process. ConsoleRead does not block it will return immediately. In order to get all data it must be called in a loop. Peeking on the stream does not remove the data from the buffer however it does return the available data as normal. By default data is returned in text format. By using the binary option the data will be returned in binary format. Related ConsoleWrite ConsoleWriteError Run Example Compile this script to . Open a command prompt to the directory where resides. Type the following on the command line echo Hello When invoked in a console window the above command echos the text Hello but instead of dispalying it the tells the console to pipe it to the STDIN stream of the process. If Not @Compiled Then MsgBox 0 This script must be compiled in order to properly demonstrate it s functionality. Exit -1 EndIf Local data While True data ConsoleRead If @error Then ExitLoop Sleep 25 WEnd MsgBox 0 Received @CRLF @CRLF data Function Reference ConsoleWrite Writes data to the STDOUT stream. Some text editors can read this stream as can other programs which may be expecting data on this stream. ConsoleWrite data Parameters data The data you wish to output. This may either be text or binary. Return .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.