| View previous topic :: View next topic |
| Author |
Message |
verra
Joined: 08 Jul 2008 Posts: 8
|
Posted: Fri May 08, 2009 1:32 am Post subject: Is it possible to set up 'dead key' macroes? |
|
|
I was wondering if it is possible to write a set of dead key-style macroes in TinTin++? Like, for example, could I set TinTin++ to understand a keypress followed by another keypress to perform a command? In particular, pressing numeric keypad 5 then pressing numeric keypad 8 to send 'look north' to the mud I'm connected to. It's a little bit like the 'option + `' then 'e' keypress combination to write the diacritic è on Mac OS X.
Edit : Typoes.
Edit the second : I don't need for it to be a keycombo/keystroke solution, I was wondering if it could be done with aliased macroes or something, like an alias to have numeric keypad 5 send the text 'look' to the input buffer, then numeric keypad 8 to send the text 'north' and then enter the combined text to the mud. Or an alias that, when numeric keypad 5 is pressed, waits for the next input, such as numeric keypad 8 to send the whole thing to the mud. I hope that's less vague than my original post. |
|
| Back to top |
|
 |
Scandum Site Admin
Joined: 03 Dec 2004 Posts: 3281
|
Posted: Fri May 08, 2009 8:27 am Post subject: |
|
|
You can try adding:
| Code: |
#macro {ctrl-v keypad-5} {#send {look \}}
|
Should work for most muds.
Another option is:
| Code: |
#macro {ctrl-v keypad-5 ctrl-v keypad-8} {look north}
#macro {ctrl-v keypad-5 ctrl-v keypad-2} {look south}
etc
|
When you press ctrl-v the next keypress will be printed in the meta style.
Advantage of adding stacking macros is that you can add a macro for when you press keypad-5 twice:
| Code: |
#macro {ctrl-v keypad-5 ctrl-v keypad-5 ctrl-v keypad-8} {unlock north;open north}
|
|
|
| Back to top |
|
 |
verra
Joined: 08 Jul 2008 Posts: 8
|
Posted: Fri May 08, 2009 4:26 pm Post subject: |
|
|
Awesome, both suggestions you offered worked well. I elected to go with the second one, and it's working well in all my playing around thus far. Thank you!  |
|
| Back to top |
|
 |
|