I need to do some debugging in a backup script I have here; it has two functionalities: copies files to the backup location and "FileAppends" the result — success or failure — to a log file.
The backup part is working, I checked the files, but the logging isn't; it logs only some of the backed-up items, even if they're all properly backed-up.
Anyway, I said this was about debugging, right? So I need to take advantage of the `ListVars` command. Thing is, the only thing I can have is displaying that dull window with difficult legibility, which has to be checked manually every step:
Instead, I'd like to have the contents of that window be output to another variable, or directly onto a .txt/.log file so I can check the sequence afterwards. The test script I used was this:
Code: Select all
SetTitleMatchMode, 2
#SingleInstance force
#NoEnv
First_var := "I wanna see the 1st variable."
Second_Var := "I wanna see the 2nd variable"
Gui, Font, s16, Consolas
Gui, Add, Edit, x10 y10 w680 h330, %First_Var%`n%Second_Var%
Gui, Show, x130 y90 h350 w700, Variable contents:
ListVars
The values of the "first" and "second" variables are prettily displayed on the generated GUI, but I'm actually interested in the last window — the ListVars (first image), which will pop up after the GUI, but almost at the same time.
So, how can I go about it?