Jump to content

Hotkeys in skyrim


tesprogrammer

Recommended Posts

I'd like to know if any of you guys know how to code hotkeys for Skyrim's programming language. It would be like this:
while the player is pressing, for example the key |H| from the keyboard, this key activates a function/call a script. Similar to this
code in C# (the key |H| enters in a toggle state (pressed once, do something, pressed again do other thing and after that clear the toggle
state to support the first one;))

Hotkey hk = new Hotkey();

hk.KeyCode = Keys.1;
hk.Windows = true;
hk.Pressed += delegate { Console.WriteLine("Windows+1 pressed!"); };

hk.Register(myForm);

Modders did this in mods for fallout 3 like Mothership zeta crew and CUBE experimental project, and I's like to know if this is possible.
I'm really stuck with the mod update because I need this command :wacko: Edited by tesprogrammer
Link to comment
Share on other sites

  • 1 year later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...