e.g. Changes this:
-=-=-=-=-=-=-=-=-=-
[pilot info]
side=0
allegiance=3
[country.1]
rank=0
num_medals=0
[campaign.0]
campaign_name=War In The Pacific - USN
next_mission=hn1b_usn
-=-=-=-=-=-=-=-=-=-
...to this:
-=-=-=-=-=-=-=-=-=-
[pilot info]
side=0
allegiance=3
[country.1]
rank=0
num_medals=0
[campaign.0]
campaign_name=War In The Pacific - USN
next_mission=hn1b_usn
-=-=-=-=-=-=-=-=-=-
After loading a Combat Flight Simulator 2 campaign "Pilot.log" file into Windows Notepad, press CONTROL+ALT+F to format the pilot log file to be more readable.
Press CONTROL+BREAK (or right-click the utility's icon in the Windows taskbar, and then click "Exit") to terminate the utility after formatting is complete. Note: A Windows Notepad message box will start flashing in the middle of the screen when formatting is complete. Then, save the file, and then exit Windows Notepad.
Lastly, note that this utility will ALSO function for Combat Flight Simulator 2's "Events.log" files, which are generated after each mission.
Side Note: It's probably NOT a good idea to press the "CONTROL+ALT+F" formatting hotkey while the AutoHotkey macro utility is running UNLESS the Windows Notepad window is ALSO running and in the foreground/focus.
There shouldn't be any ill effects, but THIS is what the AutoHotkey macro utility is actually doing when pressing "CONTROL+ALT+F" (which can be seen in the AutoHotkey source code "Format Pilot Log.ahk" file):
-=-=-=-=-=-=-=-=-=-
Press "CONTROL+F" ("Find" in Windows Notepad)
Press "[" (type in the "[" character in the Windows Notepad find box)
Press "ENTER" ("Find Next" in Windows Notepad)
Press "ESCAPE" (close the "Find" box in Windows Notepad)
Press "HOME" (moves the cursor to the beginning of the first "[" character that is found within the file in Windows Notepad)
-=-=-=-=-=-=-=-=-=-
Then, the following is looped (until "CONTROL+BREAK" is pressed):
-=-=-=-=-=-=-=-=-=-
Press "F3" ("Find Next" in Windows Notepad)
Press "F3" ("Find Next" in Windows Notepad, advances to the next "[" character within the file)
Press "HOME" (moves the cursor to the beginning of the "[" character in Windows Notepad)
Press "ENTER" (types a carriage return in the file in Windows Notepad, moving the previously found "[" character down one line)
-=-=-=-=-=-=-=-=-=-
The key presses directly above loop over and over until "CONTROL+BREAK" is pressed.
After all of the "[" characters are found ("Find Next" in Windows Notepad), Windows Notepad will start quickly flashing a "Cannot Find" notification message box in the middle of the screen until "CONTROL+BREAK" is pressed (which terminates the AutoHotkey macro utility).
Anyhow, I'm not quite sure what would happen if the "CONTROL+ALT+F" Autohotkey macro utility hotkey was pressed with only your Windows desktop (or another program) was in focus LOL. I guess it depends on what the Windows desktop (or another program) uses for the key presses/hotkeys for "CONTROL+F", "[", "ENTER", "F3", "ESCAPE", and "HOME" (if you know what I mean).
Nevertheless, this AutoHotkey macro utility makes it A LOT easier to format your "Pilot.log" and "Event.log" files (which can contain HUNDREDS of lines) to be more readable, all without the tedious manual typing in Windows Notepad.