Jump to content

[LE] How to simulate key press when read any book?


arpharazonn

Recommended Posts

I am a bit confused.

 

your wrote (first posting): "I tried something with scripts, when i use a quest and a specific book its okay."

 

and now in last posting: "Maybe problem is: simulated key press with script dont affect ENB?"

 

 

Question: What have you done to get the single book (ENB switch) working?

 

I didnt try simulated key working on enb or not. I just tested for keep logs for opened book condition. Just for conditions; like when book opens log says "its opened". I supposed simulating key is easy, the hard part is simulating it when any book opens.

 

So on my first post situtation was: When i open single specific book log says its opened.

Current situation: When i open "any book" log says its opened.

 

This was the my goal but i couldnt image simulated key is affect enb or not, or its so hard.

 

Btw, i will keep try to find a way to toggle enb. And i will definitely use your script (its exactly what i want).

 

Thank you so much!!

 

Edit: I tested with DXScanCode 15 (tab) and simulating key working: After i closed the book, menu closed also (tab key).

 

So toggling enb with simulating key is different story....

 

similar other way: use SKSE plugins to save DXScanCode into textfile on your PC

jContainers: https://www.nexusmods.com/skyrim/mods/49743
papyrusUtils: https://www.nexusmods.com/skyrim/mods/58705/
JsonUtil.psc
MiscUtil.psc
-> ; Write string to file.
bool function WriteToFile(string fileName, string text, bool append = true, bool timestamp = false) global native
use a batch file started in background before Skyrim (like "wait4keypress.bat", good old dos file)

- to look for changing filesize

IF yes

- get the stored key from textfile and simulate keypress of this key

- and remove the textfile

ENDIF

- go back to filesize comparing

 

but this is far from Skyrim modding, you will need some PC programming skills https://en.wikibooks.org/wiki/Windows_Batch_Scripting

 

Great idea! I can handle it after that. Thank you for your helps and script!

 

This is useful topic if anyone needs on forward. I will update this post later.

 

EDIT: I contacted with Boris and the ENB effects no more affect books, inventory, menus. Problem solved!

Link to comment
Share on other sites

  • Recently Browsing   0 members

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