Page 1 of 1

Alt and option modifiers for macros

Posted: Tue Dec 22, 2009 5:37 am
by Ithulta
I like to use alt modifiers with keys for my macro triggers, but it's pretty annoying when I come across some random hexadecimal code in my prf files, and I have to guess what key the macro's bound two. The macro faq seemed to imply that there was an easier way to enter such modifier sequences, like \[Alt]X. Is there any easy way to enter these kinds of sequences, and if not, does anybody know of some kind of table with the codes for all such sequences?

Re: Alt and option modifiers for macros

Posted: Thu Dec 24, 2009 9:37 am
by Ithulta
Never mind.

Re: Alt and option modifiers for macros

Posted: Mon Dec 28, 2009 3:55 am
by Ithulta
Strike that. I can't seem to find anything. I thought that the syntax used here at http://www.killerbunnies.org/angband/ would work, but it didn't.
# A macro for the Forge ammo ability.
?:[ABILITY "Ammo creation"]
A:\e\e\em@Forge\sammo\n
P:\[alt-F]

# The Manwe prayer Listen to the Music.
?:[AND [EQU $GOD "Manwe Sulimo"] [GEQN [SKILL Prayer] 7] ]
A:\e\e\em@Cast\sa\sspell\n@Listen\sto\sthe\sMusic\n
P:\[alt-I]

# Jedi powers from FuryMod.
?:[AND [EQU $MODULE "Fury"] [GEQN [SKILL Jedi] 1] ]
A:\e\e\em@Use\sJedi\sPowers\n
P:\[alt-J]
Help? :(

Re: Alt and option modifiers for macros

Posted: Mon Dec 28, 2009 4:04 am
by Shoob
in game I tried querying a macro I used... and I used [alt-F], I also run a windows machine so this automatically brings up the file menu... not sure if there is a work around... but it does look like the game accepts the alt-F (but with my machine also brings up the file menu each time.

Re: Alt and option modifiers for macros

Posted: Mon Dec 28, 2009 4:35 am
by Yottle
On my laptop control-key combinations seem to work fairly well but the alt-key combinations are pretty funky. As Shoob said, that seems to be because they are interacting with the system outside of the game.

Re: Alt and option modifiers for macros

Posted: Tue Dec 29, 2009 12:51 am
by Ithulta
Interacting with things outside the system wouldn't be a problem for me (macs mostly use the command key, instead), but that still isn't working. It's really not that much of a problem, though. This is kinda off-topic, but does anybody know whether escapes ('\e') can be used in keymaps? I changed my macros to keymaps, and now the escape sequences no longer seem to work.

EDIT:
Answered.

Re: Alt and option modifiers for macros

Posted: Fri Jan 01, 2010 6:38 am
by Ithulta
Has anybody else ever tried this (\[alt-F]) with the mac version?