A little trouble with "pukename"

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
Blue Shadow
Posts: 5039
Joined: Sun Nov 14, 2010 12:59 am

A little trouble with "pukename"

Post by Blue Shadow »

How can I go about using pukename to execute a named script, which has space characters in its name, in the following setup?

Code: Select all

addkeysection "Test" TestKeysection
addmenukey "Give Health" gh
alias gh "pukename Give Health" // <----
defaultbind end gh
Testing that as you see it there doesn't work (unknown script error), since it's trying to execute a script named "Give", not "Give Health". I tried enclosing the name between quotation marks but it didn't work either.

Code: Select all

alias gh "pukename "Give Health"" // This displays the usage of the command
alias gh pukename "Give Health" // Same as above
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: A little trouble with "pukename"

Post by NeuralStunner »

Use escaped quotes.

Code: Select all

alias gh "pukename \"Give Health\""
Blue Shadow
Posts: 5039
Joined: Sun Nov 14, 2010 12:59 am

Re: A little trouble with "pukename"

Post by Blue Shadow »

Thanks!
Locked

Return to “Editing (Archive)”