We’re rewarding the question askers & reputations are being recalculated! Read more.
3 added 1723 characters in body
source | link

ok alt+o -> create macro -> assign key (i assign 'z') alt+e -> d -> page downmacro to reduce keystrokes to one charecter -> alt + hyphen to stop recording

alt+o -> create macro -> assign key (i assign 'z')     
alt+e -> d -> page down -> alt + hyphen to stop recording

just keep z pressed till all is dumped :)

just keep z pressed till all is dumpedcompile the code below and dump N number of panes to previously opened log file :(alt+v->L->alt+f10->browse->ok) using the above mentioned macro 'z'

#include <stdio.h>
#include <windows.h>
#pragma comment(lib , "user32.lib")
unsigned long numtopaste = 1;
BOOL CALLBACK EnumWindowsProc( HWND hWnd, LPARAM lParam )  {
    UNREFERENCED_PARAMETER(lParam);
    PCHAR Temp = (PCHAR) calloc(64,sizeof(char));
    if (Temp != NULL)    {
        GetClassName(hWnd, Temp, 64);
        if ( strcmp ( Temp , "ConsoleWindowClass" ) == 0 ) {
            PCHAR Wind = (PCHAR) calloc(64,sizeof(char));
            if (Wind != NULL) {
                GetWindowText(hWnd,Wind,64);
                if ((strstr(Wind,"TD32.EXE")) != NULL) {
                    printf("found TD32.EXE ConsoleWindowClass\nHandle = %p\n"
                        "Command Line =%s\n pasting %c Number of Times %d \n", 
                        hWnd, Wind,'z',numtopaste ); 
     // blogs.msdn.com/b/bill copy to clipboard 'z' and paste to Console
                    for(ULONG i = 1; i < numtopaste ; i++) {
                        SendMessage(hWnd, WM_COMMAND, 0xfff1, 0);
                    }
                }
                free(Wind);
            }
        }
        free(Temp);
    }
    return TRUE;
}
int main(int argc , char * argv[]) {
    if(argc !=2) { printf ("usage %s NUM",argv[0]); return 0;}
    numtopaste = strtoul(argv[1],NULL,10);
    EnumWindows(EnumWindowsProc,NULL);
    return 0;
}

ok alt+o -> create macro -> assign key (i assign 'z') alt+e -> d -> page down -> alt + hyphen to stop recording

just keep z pressed till all is dumped :)

macro to reduce keystrokes to one charecter

alt+o -> create macro -> assign key (i assign 'z')     
alt+e -> d -> page down -> alt + hyphen to stop recording

just keep z pressed till all is dumped :)

compile the code below and dump N number of panes to previously opened log file (alt+v->L->alt+f10->browse->ok) using the above mentioned macro 'z'

#include <stdio.h>
#include <windows.h>
#pragma comment(lib , "user32.lib")
unsigned long numtopaste = 1;
BOOL CALLBACK EnumWindowsProc( HWND hWnd, LPARAM lParam )  {
    UNREFERENCED_PARAMETER(lParam);
    PCHAR Temp = (PCHAR) calloc(64,sizeof(char));
    if (Temp != NULL)    {
        GetClassName(hWnd, Temp, 64);
        if ( strcmp ( Temp , "ConsoleWindowClass" ) == 0 ) {
            PCHAR Wind = (PCHAR) calloc(64,sizeof(char));
            if (Wind != NULL) {
                GetWindowText(hWnd,Wind,64);
                if ((strstr(Wind,"TD32.EXE")) != NULL) {
                    printf("found TD32.EXE ConsoleWindowClass\nHandle = %p\n"
                        "Command Line =%s\n pasting %c Number of Times %d \n", 
                        hWnd, Wind,'z',numtopaste ); 
     // blogs.msdn.com/b/bill copy to clipboard 'z' and paste to Console
                    for(ULONG i = 1; i < numtopaste ; i++) {
                        SendMessage(hWnd, WM_COMMAND, 0xfff1, 0);
                    }
                }
                free(Wind);
            }
        }
        free(Temp);
    }
    return TRUE;
}
int main(int argc , char * argv[]) {
    if(argc !=2) { printf ("usage %s NUM",argv[0]); return 0;}
    numtopaste = strtoul(argv[1],NULL,10);
    EnumWindows(EnumWindowsProc,NULL);
    return 0;
}
2 added 160 characters in body
source | link

td.exe that's way back don't have it handy to do a trial
answer pertains to td32 but i remember similar option available in td too
i see a log of an old lode runner game LR.com in the folder with pane dumps

alt+v->l->alt+f10-> open log file default is <prog_name>.log->ok
enable logging yes 
dump the pane to log file using
alt+e->d->page down
iirc td macros can record macros to repeat keystrokes or 
autoit can be used to script findwindow() sendmessage()
  1. alt+v opens view menu
  2. l opens log window
  3. alt+f10 opens speed menu in log window
  4. browse or accept default log file name
  5. alt+ e opens edit menu
  6. d dumps cpu pane to log file
  7. pagedown to view and dump the next page

logging td32 cpu pane

ok alt+o -> create macro -> assign key (i assign 'z') alt+e -> d -> page down -> alt + hyphen to stop recording

just keep z pressed till all is dumped :)

td.exe that's way back don't have it handy to do a trial
answer pertains to td32 but i remember similar option available in td too
i see a log of an old lode runner game LR.com in the folder with pane dumps

alt+v->l->alt+f10-> open log file default is <prog_name>.log->ok
enable logging yes 
dump the pane to log file using
alt+e->d->page down
iirc td macros can record macros to repeat keystrokes or 
autoit can be used to script findwindow() sendmessage()
  1. alt+v opens view menu
  2. l opens log window
  3. alt+f10 opens speed menu in log window
  4. browse or accept default log file name
  5. alt+ e opens edit menu
  6. d dumps cpu pane to log file
  7. pagedown to view and dump the next page

logging td32 cpu pane

td.exe that's way back don't have it handy to do a trial
answer pertains to td32 but i remember similar option available in td too
i see a log of an old lode runner game LR.com in the folder with pane dumps

alt+v->l->alt+f10-> open log file default is <prog_name>.log->ok
enable logging yes 
dump the pane to log file using
alt+e->d->page down
iirc td macros can record macros to repeat keystrokes or 
autoit can be used to script findwindow() sendmessage()
  1. alt+v opens view menu
  2. l opens log window
  3. alt+f10 opens speed menu in log window
  4. browse or accept default log file name
  5. alt+ e opens edit menu
  6. d dumps cpu pane to log file
  7. pagedown to view and dump the next page

logging td32 cpu pane

ok alt+o -> create macro -> assign key (i assign 'z') alt+e -> d -> page down -> alt + hyphen to stop recording

just keep z pressed till all is dumped :)

1
source | link

td.exe that's way back don't have it handy to do a trial
answer pertains to td32 but i remember similar option available in td too
i see a log of an old lode runner game LR.com in the folder with pane dumps

alt+v->l->alt+f10-> open log file default is <prog_name>.log->ok
enable logging yes 
dump the pane to log file using
alt+e->d->page down
iirc td macros can record macros to repeat keystrokes or 
autoit can be used to script findwindow() sendmessage()
  1. alt+v opens view menu
  2. l opens log window
  3. alt+f10 opens speed menu in log window
  4. browse or accept default log file name
  5. alt+ e opens edit menu
  6. d dumps cpu pane to log file
  7. pagedown to view and dump the next page

logging td32 cpu pane