TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

Is it possible to set up 'dead key' macroes?

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
verra



Joined: 08 Jul 2008
Posts: 8

PostPosted: Fri May 08, 2009 1:32 am    Post subject: Is it possible to set up 'dead key' macroes? Reply with quote

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. Sad

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
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3281

PostPosted: Fri May 08, 2009 8:27 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
verra



Joined: 08 Jul 2008
Posts: 8

PostPosted: Fri May 08, 2009 4:26 pm    Post subject: Reply with quote

Awesome, both suggestions you offered worked well. Smile I elected to go with the second one, and it's working well in all my playing around thus far. Thank you! Big Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group