Just wanted some clarification on passing parameters to hotkey routines,
and I'm sort of hoping someone on here will know already and save me
some trial and error work. Sorry, cheating a bit I guess. If I want to
pass more than one parameter to my hotkey routine, is the best practice
to wrap them all up in a collection of some sort? For instance, I want
to pass the XML Key ID so I can have its description spoken by key
describer, as shown in the WE Script Framework's setup of hotkeys. But I
also want to pass a second variable to the routine for actual use in the
execution of the hotkey. If it matters, I presently want to pass either
another string or a key object, I haven't yet decided, but I'm sure
this'll come up for me in future plenty of times with a variety of
datatypes. Ideally I could just overload registerHotkey with six
parameters instead of five, but somehow I doubt it'll be that easy.
Thanks in advance for the knowledge.
- Multiple Parameters to Hotkey Routines Jared Wright
- Re: Multiple Parameters to Hotkey Routines Aaron Smith
- Re: Multiple Parameters to Hotkey Routines Jared Wright
- Re: Multiple Parameters to Hotkey Routines bT
- Re: Multiple Parameters to Hotkey Routines Jared Wright
- Re: Multiple Parameters to Hotkey Routi... Jared Wright
- Re: Multiple Parameters to Hotkey R... Aaron Smith
- Re: Multiple Parameters to Hotk... Jared Wright
- Re: Multiple Parameters to Hotk... Aaron Smith
- Re: Multiple Parameters to Hotk... Aaron Smith
- Re: Multiple Parameters to Hotkey Routines Aaron Smith
