facebook

Solution to add keyboard shortcuts where MyEclipse has none.

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #281918 Reply

    mxnmatch
    Member

    I’ve used MyEclipse for years and have always hated the terrible keyboard support. However, I recently stumbled onto a way to fix this (at least in Windows). See:
    http://www.autohotkey.com/
    It’s a macro system that works across applications. I’m using it to start my webapp server, stop it, and close a console. I’ll add more shortcuts as I remember other places where it is lacking.

    The only problem with this is that it’s brittle. If anything gets moved around then the mouse clicks won’t work. But, this works for me sufficiently well that I’m happier than I was.

    Maybe someday MyEclipse will add keyboard shortcuts for things that people click a million times a day. But, until then, here are the scripts I created for this tool. If anyone knows of an equivalent tool in Linux then I’d appreciate knowing about it.

    These all go into a file I called eclipseMacros.ahk. You run it and it stays resident. To make it work on your system you’ll need to figure out the appropriate coordinates for the mouse clicks where the buttons are on your system.

    ;
    ; Debug Jetty
    ;

    ;ctrl-alt-1
    ^!1::
    SetTitleMatchMode,RegEx
    WinActivate,.*MyEclipse Enterprise Workbench
    MouseGetPos,xpos,ypos,,1

    ;click Debug As menu
    Click 46,89
    ;click 1st item in dropdown
    MouseMove,46,112,50
    Click 46,112

    ;return to where we were
    WinActivate,.*MyEclipse Enterprise Workbench
    MouseMove,%xpos%,%ypos%
    return

    ;
    ; Run Jetty
    ;

    ;ctrl-alt-2
    ^!2::
    SetTitleMatchMode,RegEx
    WinActivate,.*MyEclipse Enterprise Workbench
    MouseGetPos,xpos,ypos,,1

    ;click Run As menu
    Click 82,89
    ;click 1st item in dropdown
    MouseMove,82,112,50
    Click 82,112

    ;return to where we were
    WinActivate,.*MyEclipse Enterprise Workbench
    MouseMove,%xpos%,%ypos%
    return

    ;
    ; Terminate console
    ;

    ;ctrl-alt-3
    ^!3::
    SetTitleMatchMode,RegEx
    WinActivate,.*MyEclipse Enterprise Workbench
    MouseGetPos,xpos,ypos,winId,1

    ;click red Terminate button
    Click 2540,36

    ;return to where we were
    WinActivate,.*MyEclipse Enterprise Workbench
    MouseMove,%xpos%,%ypos%
    return

    ;
    ; Close console
    ;

    ;ctrl-alt-4
    ^!4::
    SetTitleMatchMode,RegEx
    WinActivate,.*MyEclipse Enterprise Workbench
    MouseGetPos,xpos,ypos,,1

    ;click X to close console
    Click 2564,36

    ;return to where we were
    WinActivate,.*MyEclipse Enterprise Workbench
    MouseMove,%xpos%,%ypos%
    return

    #281927 Reply

    Loyal Water
    Member

    Thank you for taking time out to post this solution.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Solution to add keyboard shortcuts where MyEclipse has none.

You must be logged in to post in the forum log in