Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5620
    Yutaka Emura
    Keymaster

    The Next Group command was missed feature on and before Version 7. While this command should be included in future versions of EmEditor, use this macro before it is included in the EmEditor core.


    bFirst = true;
    wnds = new Enumerator( shell.windows );
    for( ; !wnds .atEnd(); wnds.moveNext() ){
    wnd = wnds.item();
    if( wnd && wnd.className == "EmEditorMainFrame3" ){
    if( !bFirst ){
    wnd.SetForeground();
    break;
    }
    bFirst = false;
    }
    }

    #5623
    Yutaka Emura
    Keymaster

    If you have more than two groups, you might need this macro to jump to another group.


    wnds = shell.windows;
    nMax = wnds.Count;
    for( i = nMax; i > 0; i-- ){
    wnd = wnds.Item( i );
    if( wnd && wnd.className == "EmEditorMainFrame3" ){
    wnd.SetForeground();
    break;
    }
    }

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Macro Samples’ is closed to new topics and replies.