WoW:API SetConsoleKey: Difference between revisions
(upgraded deprecated template) |
mNo edit summary |
||
| Line 1: | Line 1: | ||
{{wowapi}} | {{wowapi}} | ||
{{stub/ | {{stub/API}} | ||
Calling this function with no parameters appears to unbind the console key (normally the "`" key) for the duration of the WoW session. | Calling this function with no parameters appears to unbind the console key (normally the "`" key) for the duration of the WoW session. | ||
Revision as of 00:29, 4 December 2007
← WoW API < SetConsoleKey
Calling this function with no parameters appears to unbind the console key (normally the "`" key) for the duration of the WoW session.
Calling this function with a parameter indicating the a new keybinding to set the Console Key to will rebind the console keybinding for the duration of the WoW session; however, unlike the analogous argument for SetBinding(), it appears that you can only provide the values of keys that represent standard ASCII characters--no modifiers or other special keys are allowed. For instance, SetConsoleKey("CTRL-F") won't work, but SetConsoleKey("F") will.
However, it should be noted that the console key is a very special keybinding in WoW; whenever the bound key is pressed, regardless of context or mode, the console window will appear (or disappear, if it's already visible). This means that setting the console key to "F" will prevent you from ever generating the 'F' character again, even if it's in a chat window or within the console itself.
Using SaveBindings() does not appear to permanently save this particular binding to disk.
NB as of Patch 0.11, the console is no more accessible.
