Jump to content

zbigdogz

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by zbigdogz

  1. Hi, I need a way to communicate a set of commands from my external program to Skyrim without any dependencies other than SKSE. Currently, my only idea is to use papyrus to open the console without showing it or pausing the game, then execute the bat file and close the "invisible" console. The problem is that I don't know how to do that and I haven't been able to find any way to do it. I'm using C# for the program though I doubt that matters much.
  2. I'm trying to avoid having any dependencies other than SKSE.
  3. I'm 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. I've also tried, with SendKeys. to send them directly to the Skyrim Window and still got nothing. Does anyone have an idea what I'm doing wrong? I have another program, GlovePie, that sends keystrokes to Skyrim successfully, which has added to my confusion more. Voice Macro also does it just fine, so I assume it's something I'm doing wrong. Here are the different C# codes I've tried (I have a mod that checks if Backslash is pressed down every second and, as i said before, GlovePie has no problem with holding down the slash key to be detected) 1.) SendKeys.SendWait("{\\}"); //Looped every 1 ms for 1 second 2.) keybd_event((byte)Key.BACKSLASH, (int)Key.DOWN, 0, 0); //Key.DOWN is pressing the key down Wait 1s keybd_event((byte)Key.BACKSLASH, (int)Key.UP, 0, 0); //Key.UP is releasing the keyI know the code is correct because it works for other program but maybe I need something extra for it to send to Skyrim?
  4. 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?
  5. I know what I'm going to try to do but it would require me to run a script constantly but I can't figure out what I'm doing wrong. Here is the code Scriptname DBU_KeyPress extends Quest Event OnInit() RegisterForSingleUpdate(1) EndEvent Event OnUpdate() Debug.MessageBox("Waiting 2") endEvent It is in a Quest that is Start Game Enabled. From what I've looked up, this should work. Any ideas?
  6. Is there any way to do it that doesn't involve another mod? I'm trying to be entirely standalone
  7. Hi, I'm trying to get an external program to communicate with Skyrim and the easiest way I could think to do it would be changing an external file, then having Skyrim read it. My second idea was have Skyrim detect a keypress, for example '\', then do something. The problem I'm having is I can't find if it is possible for papyrus to read external files or how to run a script constantly. I do have a script for detecting if a key is pressed or not though. Any help or ideas would be amazing!
  8. 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!
  9. 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.
×
×
  • Create New...