ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

SOLVED: Chorded shortcuts for RSI prevention

(1/2) > >>

phiu:
Hi everybody,

I have been a more or less avid AHK user for some time now.
I have been using it mainly to alleviate my RSI (mapping Alt-Tab to Pause, etc.)

However, my goal is to be able to hit a specified button, e.g. F12, and then be able to type in a two letter combination like gw to perform a specific action.

Example:

1. Hit F12
2. Type in gw (no need to press the Enter key)
3. Firefox opens a new tab, Wikipedia is selected as the search plugin and all I have to do is enter a term and press Enter. [The macro for this would be written by me. I only need a framework to perform steps 1-2.]

In essence, something similar to that:
http://stackoverflow.com/questions/200587/how-can-i-mimic-visual-studios-ctrl-k-c-two-step-macro-behaviour-using-autoit.

Only difference would be that macro mode can only be exited by command ex and that a two letter combination is accepted.

Any idea on how to accomplish this?

Extra points if there is an easy way to add my own commands.

Thanks very much in advance and kind regards,

phiu

skwire:
By chance, have you checked out FARR by our very own mouser?  To do a Wikipedia search, I do this:

1) Press the Pause key to invoke FARR.
2) Type:  wiki <search term>
3) Press the Enter key.

Would a routine like that suffice?

phiu:
Yes, I've checked out FARR and use it daily.

The thing is that I want to limit the # of keypresses, i.e. I do not want to hit Enter.

The wikipedia search was just an example.

mouser:
The thing is that I want to limit the # of keypresses, i.e. I do not want to hit Enter.
--- End quote ---

if you are already using farr, let me just mention that you can create your own aliases that don't require you to hit enter, see this thread for details: https://www.donationcoder.com/forum/index.php?topic=18620.0

phiu:
mouser:
Thanks that works great and just as intented. Only problem is that this somehow limits the normal functions.
I.e.: I have set up an alias ma to perform some action. But now I can no longer search for items beginning with ma.
Would it be possible to somehow activate dolaunch aliases only, if a certain hotkey is pressed to launch FARR?
Maybe in the Hotkey configuration dialog?

Navigation

[0] Message Index

[#] Next page

Go to full version