Jump to content
Sign in to follow this  
Luigi

Print (QUALQUER COISA! ou quase)

Recommended Posts

Bom dia,

Compartilho uma pequena função que auxilia muito o debug...

Ao invés de usar o ConsoleWrite, use o Print.

Versão melhorada:

https://github.com/chechelaky/AutoIt/blob/master/Print/Print.au3

 

Local $arr[][4] = [ _
        ["0a", "0b", "0c", "0d"], _
        ["1a", "1b", "1c", "1d"], _
        ["2a", "2b", "2c", "2d"], _
        ["3a", "3b", "3c", "3d"], _
        ["4a", "4b", "4c", "4d"], _
        ["5a", "5b", "5c", "5d"], _
        ["6a", "6b", "6c", "6d"], _
        ["7a", "7b", "7c", "7d"], _
        ["8a", "8b", "8c", "8d"], _
        ["9a", "9b", "9c", "9d"], _
        ["10a", "10b", "10c", "10d"], _
        ["11a", "11b", "11c", "11d"] _
        ]
        
Saída:
--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop
   +--0+--1+--2+--3+
 0 | 0a| 0b| 0c| 0d|
 1 | 1a| 1b| 1c| 1d|
 2 | 2a| 2b| 2c| 2d|
 3 | 3a| 3b| 3c| 3d|
 4 | 4a| 4b| 4c| 4d|
 5 | 5a| 5b| 5c| 5d|
 6 | 6a| 6b| 6c| 6d|
 7 | 7a| 7b| 7c| 7d|
 8 | 8a| 8b| 8c| 8d|
 9 | 9a| 9b| 9c| 9d|
10 |10a|10b|10c|10d|
11 |11a|11b|11c|11d|
   +---+---+---+---+
+>14:09:07 AutoIt3.exe ended.rc:0

 

Local $arr[] = ["um", "dois", 3, 4, 5, 6, 7, 8, 9, 10, 22]

Saída:
--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop
   +----+
 0 |  um|
 1 |dois|
 2 |   3|
 3 |   4|
 4 |   5|
 5 |   6|
 6 |   7|
 7 |   8|
 8 |   9|
 9 |  10|
10 |  22|
   +----+
+>14:15:59 AutoIt3.exe ended.rc:0

 

  • Thanks 2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×