Alt and option modifiers for macros

Have some questions about gameplay? Dying to post your DitL? Want to answer some questions for people? You've come to the right place.

Moderator: Moderator

Post Reply
Message
Author
Ithulta
Halfling
Posts: 112
Joined: Sun Dec 20, 2009 7:21 pm

Alt and option modifiers for macros

#1 Post 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?

Ithulta
Halfling
Posts: 112
Joined: Sun Dec 20, 2009 7:21 pm

Re: Alt and option modifiers for macros

#2 Post by Ithulta »

Never mind.

Ithulta
Halfling
Posts: 112
Joined: Sun Dec 20, 2009 7:21 pm

Re: Alt and option modifiers for macros

#3 Post 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? :(

Shoob
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

#4 Post 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.
Oliphant am I, and I never lie.

Yottle
Reaper
Posts: 1754
Joined: Sun Jan 26, 2003 11:49 pm
Location: West Virginia

Re: Alt and option modifiers for macros

#5 Post 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.

Ithulta
Halfling
Posts: 112
Joined: Sun Dec 20, 2009 7:21 pm

Re: Alt and option modifiers for macros

#6 Post 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.
Last edited by Ithulta on Sun Jan 03, 2010 12:10 am, edited 1 time in total.

Ithulta
Halfling
Posts: 112
Joined: Sun Dec 20, 2009 7:21 pm

Re: Alt and option modifiers for macros

#7 Post by Ithulta »

Has anybody else ever tried this (\[alt-F]) with the mac version?

Post Reply