Mitch
Mitch

Reputation: 1644

How to make eclipse allow autohotkey shortcuts to work?

Since eclipse doesn't have functionality to easily switch which split-screen editor you're using I tried writing an Autohotkey script to just click on the upper corner of the halves.

The AHK script works great... in any application except Eclipse. It seems that eclipse binds the shortcut and won't let go of it. I have removed all instances of ctrlup/down from the general --> keys in eclipse preferences.

Using:

How can I make eclipse relinquish control of this shortcut?

The test script in question (I'm testing with just up, will add down once this works):

^Up::
Click 901, 81

Upvotes: 0

Views: 1284

Answers (2)

Mitch
Mitch

Reputation: 1644

Found the solution:

I was running eclipse as administrator. Compiling the script to a standalone executable and running that as an administrator solved the issue.

Upvotes: 3

vasili111
vasili111

Reputation: 6940

Try this code:

Loop
{
        if (GetKeyState("CTRL"))
        {
                if (GetKeyState("UP"))
                {
                        Click 901, 81
                }
        }
}

Upvotes: 0

Related Questions