zbigdogz Posted May 25, 2021 Share Posted May 25, 2021 Hi, I'm trying to send keystrokes to Skyrim with C# and it works for everything except Skyrim. When i open the game, the code it still running saying it is sending the keystrokes but nothing happens in-game. Alternatively, is it possible to send the commands to Skyrim another way? something with SKSE? i couldn't find any documentation regarding that sort of thing. Link to comment Share on other sites More sharing options...
IsharaMeradin Posted May 25, 2021 Share Posted May 25, 2021 With SKSE, Papyrus has TapKey, HoldKey and ReleaseKey among other things (see Input Script) But if you are asking about an SKSE DLL plugin, no idea. I have read that some people have had success with auto-hotkey to chain together a variety of in-game key presses. Never tried it myself. Link to comment Share on other sites More sharing options...
zbigdogz Posted May 25, 2021 Author Share Posted May 25, 2021 With SKSE, Papyrus has TapKey, HoldKey and ReleaseKey among other things (see Input Script) But if you are asking about an SKSE DLL plugin, no idea. I have read that some people have had success with auto-hotkey to chain together a variety of in-game key presses. Never tried it myself Thank you, I guess I'm just gonna have to go with that. Have my program press keys, then have SKSE detect the key being pressed. Thank you! Link to comment Share on other sites More sharing options...
Sphered Posted June 1, 2021 Share Posted June 1, 2021 Yeah AutoHotKey works well. Used a lot in the past for autofill console commands and such since I hate typing those With Skyrim I had to use a special modifier for hotkeys to be detected, and I have never needed this modifier again Put asterisk *^F1:: Press Cltr + F1 in game for whatever routine Link to comment Share on other sites More sharing options...
zbigdogz Posted July 18, 2021 Author Share Posted July 18, 2021 (edited) I'm still not able to send any keystroke to the game from a C# program. I've tried many different methods. The game just doesn't recognize them. I've used SendKeys, Keyb_event, and Input Simulator and none of them are recognized by Skyrim but they are by other games/programs. Does anyone have an idea what I'm doing wrong? Edited July 18, 2021 by zbigdogz Link to comment Share on other sites More sharing options...
Recommended Posts