forked from J2TEAM/AutoIt-ConsoleWriteEx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_Example.au3
34 lines (26 loc) · 840 Bytes
/
_Example.au3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.14.2
Author: Juno_okyo
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
; Script Start - Add your code below here
#NoTrayIcon
#include 'ConsoleWriteEx.au3'
Example()
Example2()
Func Example()
_ConsoleWriteLn('Hello World') ; Default
_ConsoleWrite('Info type', $CONSOLE_INFO)
_ConsoleWrite('Warning type', $CONSOLE_WARNING)
_ConsoleWrite('Danger type', $CONSOLE_DANGER)
_ConsoleWrite('Error type', $CONSOLE_ERROR)
_ConsoleWrite('Success type', $CONSOLE_SUCCESS)
EndFunc ;==>Example
Func Example2() ; Multi-line demo
Local $msg = ''
For $i = 1 to 5
$msg &= 'This is line: ' & $i & @CRLF
Next
_ConsoleWrite($msg, $CONSOLE_INFO)
EndFunc