Alt and option modifiers for macros
Moderator: Moderator
Alt and option modifiers for macros
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
Never mind.
Re: Alt and option modifiers for macros
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.

Help?# 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]

-
- Reaper
- Posts: 1535
- Joined: Mon Jan 22, 2007 6:31 pm
- Location: East of the sun, west of the moon
Re: Alt and option modifiers for macros
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.
Oliphant am I, and I never lie.
Re: Alt and option modifiers for macros
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
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.
EDIT:
Answered.
Last edited by Ithulta on Sun Jan 03, 2010 12:10 am, edited 1 time in total.
Re: Alt and option modifiers for macros
Has anybody else ever tried this (\[alt-F]) with the mac version?