For anyone having issues with hotkeys not working: I am currently working on a new version of the mod which uses a new method added by xOBSE for detecting key presses. Might take a while though, since I don't have much free time to work on it.
Please report bugs and ask for features in the BUGS section.
It works, the only problem is that the mod seems to be struggling with button activation registration for me (or something like that). When I hold down a button, it takes seconds to activate.
Sorry to bring this up again, but your wonderful mod worked for me in xOBSE 22.7 after I changed all the OnKeyDown commands to isKeyPressed3. Let me know if you want me to submit an esp.
Unfortunately OnKeyDown and IsKeyPressed{,2,3} have different behavior (OnKeyDown only reports a key press for a single frame). I would have to test all hotkeys using IsKeyPressed3 to make sure this doesn't introduce any weird bugs, and I can't really do that right now. Also, I chose OnKeyDown instead of IsKeyPressed when first developing this mod for a reason so I'm almost certain this will introduce some issues (although honesly I can't remember which issues exactly as I made this decision around 5 years ago).
Btw, does IsKeyPressed2 work? If not, does using EnableKey before OnKeyDown work? I'm asking since the only difference in actually detecting the key presses between IsKeyPressed3 and other commands is the detection of disabled keys.
I'm using the construction given at: https://cs.uesp.net/wiki/IsKeyPressed3
if ( curKey && isKeyPressed3 curkey ) ; key still being held down return ; wait until it's released else set curkey to 0 endif
if ( isKeyPressed3 <keyCode> ) ; do stuff set curKey to <keyCode> endif Which appears to help avoid conflicts. I'm using this + Enhanced Hotkeys + DarNified UI without problems.
I'm guessing IsKeyPressed2 will work as well, since it sounds like the only difference is that IsKeyPressed3 will detect mouse clicks.
Not expecting you to do a lot of (or any) work; just throwing this out there in case anyone finds it useful.
The code you’ve shown basically emulates OnKeyDown. After rereading the docs, it seems that OnKeyDown and IsKeyPressed3 shouldn’t have any difference in key press detection - the only difference there should be between them is that OnKeyDown only returns 1 once per key, per script, per frame. The fact that emulating OnKeyDown with IsKeyPressed3 works leads me to the conclusion that OnKeyDown is bugged, causing it to never return 1 in some cases. I’d appreciate it if you could submit a bug report to the xOBSE devs about this (I won’t be able to provide them with any more information since I was never affected by this bug).
Edit: In any case I’ll push a fix for this when I have the time (I don’t even have Oblivion installed currently).
i can't seem to get this mod to work for the life of me, its not detecting any of the keys, and i have the bare minimum installed for the mod to be functional, could you share the esp you were referencing so i could see if it will work for me? turns out i have needed to run skyrim through steam and not the obse loader this whole time.....damn 3 days of work
so i replicated my issue with this mod not working, seems the newest release of obse is what the real issue was, i installed a collection on nexus, and it cut out the mod again, took out all the mods except obse, along with a fresh install, deleted all my older folder, ini ones as well, and it still didn't work, i installed the obse version available on nexus, and the mod worked just fine, hope this helps others in the future to get this wonderful mod working, https://github.com/llde/xOBSE/releases/download/22.1/xOBSE22.1.zip this is the latest version of the community patches that will run this mod
So I've been poking around at this mod for a bit now trying to get it to work (with very little success). OnKeyDown and IsKeyPressed3 both functionally behave the same for me. But strangely, I have to hold the keys down for it to work. I've been trying to get it to work with a simple key press, but I have to hold them down for around 2-3 seconds (sometimes longer).
The mod can be made to work reliably using OnKeyDown event handlers (an xOBSE feature), I already updated my other mod Better Saves using this method. I’ll update this mod too when I get around to it, but you can look at Better Saves’ implementation if you want to do this yourself.
I’m planning to release a new version soon which will detect hotkeys in a different way.
In the meantime, it would be nice if you could send more information to llde (xOBSE developer, asked for information a few comments down) since this might be an xOBSE bug.
None of the hotkeys appear to work! I set enter/tab for use on common ok/cancel buttons. I set up the hotkeys using LINK after loading a save, and I confirmed that it did in fact change the hotkeys in the ini file.
Also tried setting "bBackground Keyboard" to 1 in the main oblivion ini file.
Here's my plugins (in load order):Oblivion.esm Unofficial Oblivion Patch.esp DLCShiveringIsles.esp Unofficial Shivering Isles Patch.esp Knights.esp UOP Vampire Aging & Face Fix.esp Oblivion Citadel Door Fix.esp BetterMenuControls.esp DarNifiedUI Config Addon.esp
And here's my OBSE plugins:sr_Oblivion_Stutter_Remover.dll obse_training_fix.dll OBSE_Kyoma_MenuQue.dll obse_jail_fix.dll OBSE_Elys_Pluggy.dll MenuQue.dll EngineBugFixes.dll AltTabFix.dll
I've received a report not too long ago on my 'Better Saves' mod page that Pluggy v132 causes hotkeys in that mod not to work. Try using the mod with it disabled, it might also cause issues here.
Tried to disable it now. "DarNifiedUI Config Addon" complained that it needed either ConScribe or Pluggy, so I removed Pluggy and installed ConScribe. I still can't get Better Menu Controls to work. :(
As a last ditch effort, try disabling DarNifiedUI Config Addon (after all you could just take a picture of your screen and set it manually in the file without this mod) and ConScribe. I'm pretty sure I had ConScribe installed last time I played through Oblivion (not currently installed to test though), so I don't think it's the issue - worth a try though.
After a lot of googling and frustration, I managed to find the correct Darnified config file, and I made the changes manually. I then removed ConScribe and DarNifiedUI Config Addon. Anyway, I still have the same problem... However, I found out that if I spam the tab-key like a maniac, it will sometimes register and do what I set it up to do at the Better Menu Controls settings page!
Do you by chance use xOBSE 22.2? A bug was introduced in that version which breaks hotkeys in my Better Saves mod (a user reported this to me - xOBSE developers are aware).
If not (and you haven't given up yet), maybe try disabling everything except for Better Menu Controls and see if it works (I still think an OBSE plugin is at fault here but who knows).
Also, I've only just realized, but your load order doesn't include LINK.esp... are you sure that's the full load order? If you use LINK to configure the mod you need to have LINK enabled when using it. Otherwise you have to edit the BetterMenuControls.ini file manually.
Hi there! Sorry for necroing this. I just wanted to report the same issues here with the same OBSE plugins installed. I uninstalled Pluggy and replaced it with Conscribe as well but even while I still had Pluggy installed, it was like spamming the key assigned for the "exit" function seemed to work SOMEtimes and only after a longer while (spamming the key for about 10sec). When I switched to Conscribe, nothing changed about it except for that spamming R to loot everything seemed to go a bit faster than before. So Pluggy (I used v125 for some reason) doesn't seem to be the issue. I also tried to rebind the exit function to different keys like the right mouse button but it was the same, only spamming for about 10sec seems to make it work.
As OP I also use the Oblivion Stutter Remover, MenuQue and the EngineBugFixes. Maybe one of them is the issue. I'll try removing them some time later and see if that works.
I think it's rather unlikely any of the mods posted here (aside from XOBSE) would be causing the problem because I use all of these mods and plugins and I don't have this issue. I'm using XOBSE version 22.4 atm with no problems that I'm aware of.
I've just installed Oblivion, the latest version of xOBSE, MenuQue, EngineBugFixes, OSR and Pluggy v132 and everything works on my end. Honestly, at this point I have no idea why the mod doesn't work for some people.
I don't think you can add mouse buttons to the controls (I know they exist, I use them in some games too). However, this mod is for menu controls so you couldn't use this mod to bind casting spells, jumping and using with it anyway.
Easiest way would probably be to bind your mouse keys to whatever keyboard function you want with your mouse software. Many will even let you make custom binds per game/application.
New menu controls do not work at all. I binded some new keys to menu contexts like "Up -> Arrow up", "Down -> Arrow down" and so on, but nothing is changed in the process. What am I doing wrong? Mods are listed both from Vortex and OBMM. P.S.: If it helps, keybinds DO work (sometimes) when I keep the button pressed, eventually making my action work. Also, for some strange reason (and this happened way before the mod download):
"Arrow up/right" makes my conversations end;
"Arrow left" select context options (most of the times, Persuasion);
"Arrow down" seems the only one working just fine, but if during conversations you reach to end of the topics and go down again, it ends the talk.
This doesn't sound like an issue with this mod (since it uses (x)NVSE functions to detect key presses). Maybe try some other hotkey mod - I'm guessing it'll have the same issue.
As for your second issue, I'm pretty sure that's vanilla behavior (I remember finding out about this long ago when testing this mod, and I'm pretty sure it happened with no mods installed too).
Spent about an hour trying to figure out why this isn't working for me, no hotkeys work. Tested up, down, left right, along with loot all and persuasion menu keys.
Using latest mod version Have script extender Installed using Vortex
Are you setting the hotkeys through LINK after loading a save or from the main menu? The hotkeys seem to only work after setting them in a loaded save.
Looking at Extended UI's mod page (I don't use it so I can't be 100% sure) it claims to disable its cycling quicksave feature when Better Saves is detected, and to only overlap slightly with this mod. The only real issue is that some hotkeys might overlap, but those could be disabled in this mod's configuration (and probably in Extended UI's configuration too).
121 comments
Please report bugs and ask for features in the BUGS section.
I would have to test all hotkeys using IsKeyPressed3 to make sure this doesn't introduce any weird bugs, and I can't really do that right now. Also, I chose OnKeyDown instead of IsKeyPressed when first developing this mod for a reason so I'm almost certain this will introduce some issues (although honesly I can't remember which issues exactly as I made this decision around 5 years ago).
Btw, does IsKeyPressed2 work? If not, does using EnableKey before OnKeyDown work? I'm asking since the only difference in actually detecting the key presses between IsKeyPressed3 and other commands is the detection of disabled keys.
if ( curKey && isKeyPressed3 curkey ) ; key still being held down return ; wait until it's released
else
set curkey to 0
endif
if ( isKeyPressed3 <keyCode> )
; do stuff
set curKey to <keyCode>
endif
Which appears to help avoid conflicts. I'm using this + Enhanced Hotkeys + DarNified UI without problems.
I'm guessing IsKeyPressed2 will work as well, since it sounds like the only difference is that IsKeyPressed3 will detect mouse clicks.
Not expecting you to do a lot of (or any) work; just throwing this out there in case anyone finds it useful.
After rereading the docs, it seems that OnKeyDown and IsKeyPressed3 shouldn’t have any difference in key press detection - the only difference there should be between them is that OnKeyDown only returns 1 once per key, per script, per frame.
The fact that emulating OnKeyDown with IsKeyPressed3 works leads me to the conclusion that OnKeyDown is bugged, causing it to never return 1 in some cases.
I’d appreciate it if you could submit a bug report to the xOBSE devs about this (I won’t be able to provide them with any more information since I was never affected by this bug).
Edit: In any case I’ll push a fix for this when I have the time (I don’t even have Oblivion installed currently).
i can't seem to get this mod to work for the life of me, its not detecting any of the keys, and i have the bare minimum installed for the mod to be functional, could you share the esp you were referencing so i could see if it will work for me?
turns out i have needed to run skyrim through steam and not the obse loader this whole time.....damn 3 days of workDo the issue happens with all hotkeys?
Do you have some other OBSE plugins installed?
OnKeyDown and IsKeyPressed3 should detect the same keys (they ignore disabled keys, and don't detect tap/hammer keys )
I’ll update this mod too when I get around to it, but you can look at Better Saves’ implementation if you want to do this yourself.
Its enabled in Loot and wrye bash.
In the meantime, it would be nice if you could send more information to llde (xOBSE developer, asked for information a few comments down) since this might be an xOBSE bug.
On xOBSE 22.7 with MenuQue, OSR, and EngineBugFixes.
I set up the hotkeys using LINK after loading a save, and I confirmed that it did in fact change the hotkeys in the ini file.
Also tried setting "bBackground Keyboard" to 1 in the main oblivion ini file.
Here's my plugins (in load order):
Oblivion.esm
Unofficial Oblivion Patch.esp
DLCShiveringIsles.esp
Unofficial Shivering Isles Patch.esp
Knights.esp
UOP Vampire Aging & Face Fix.esp
Oblivion Citadel Door Fix.esp
BetterMenuControls.esp
DarNifiedUI Config Addon.esp
And here's my OBSE plugins:
sr_Oblivion_Stutter_Remover.dll
obse_training_fix.dll
OBSE_Kyoma_MenuQue.dll
obse_jail_fix.dll
OBSE_Elys_Pluggy.dll
MenuQue.dll
EngineBugFixes.dll
AltTabFix.dll
Try using the mod with it disabled, it might also cause issues here.
If not (and you haven't given up yet), maybe try disabling everything except for Better Menu Controls and see if it works (I still think an OBSE plugin is at fault here but who knows).
Also, I've only just realized, but your load order doesn't include LINK.esp... are you sure that's the full load order?
If you use LINK to configure the mod you need to have LINK enabled when using it. Otherwise you have to edit the BetterMenuControls.ini file manually.
I also tried to rebind the exit function to different keys like the right mouse button but it was the same, only spamming for about 10sec seems to make it work.
As OP I also use the Oblivion Stutter Remover, MenuQue and the EngineBugFixes. Maybe one of them is the issue. I'll try removing them some time later and see if that works.
Honestly, at this point I have no idea why the mod doesn't work for some people.
I want to be able to use spell with the right click and jump with MOUSE 4 and use with MOUSE5.
(In Left 4 Dead I can use these keybind so yes they exist.)
I don't think you can add mouse buttons to the controls (I know they exist, I use them in some games too).
However, this mod is for menu controls so you couldn't use this mod to bind casting spells, jumping and using with it anyway.
Mods are listed both from Vortex and OBMM.
P.S.: If it helps, keybinds DO work (sometimes) when I keep the button pressed, eventually making my action work. Also, for some strange reason (and this happened way before the mod download):
?Oblivion.esm
bookplacing.esm
Harvest[Containers] - Flat-Top Barrels Add-on.esm
Harvest[Containers].esm
Harvest[Containers] - Havok Crates Add-on.esm
Unofficial Oblivion Patch.esp
Oblivion Citadel Door Fix.esp
UOP Vampire Aging & Face Fix.esp
DLCShiveringIsles.esp
Unofficial Shivering Isles Patch.esp
DLCHorseArmor.esp
DLCHorseArmor - Unofficial Patch.esp
DLCOrrery.esp
DLCOrrery - Unofficial Patch.esp
DLCVileLair.esp
DLCVileLair - Unofficial Patch.esp
DLCMehrunesRazor.esp
DLCMehrunesRazor - Unofficial Patch.esp
DLCSpellTomes.esp
DLCSpellTomes - Unofficial Patch.esp
DLCThievesDen.esp
DLCThievesDen - Unofficial Patch.esp
DLCThievesDen - Unofficial Patch - SSSB.esp
DLCBattlehornCastle.esp
DLCBattlehornCastle - Unofficial Patch.esp
DLCFrostcrag.esp
DLCFrostcrag - Unofficial Patch.esp
Knights.esp
Knights - Unofficial Patch.esp
BetterMenuControls.esp
Area Harvest.esp
Harvest [Flora].esp
Area Harvest Harvest Flora Patch.esp
Oblivion_Character_Overhaul.esp
Book Jackets Oblivion ITA - BP.esp
Book Placement v2.esp
Book Jackets Oblivion - BP.esp
AutoBookPlacer.esp
P1DkeyChain.esp
OCO DLC Faces.esp
OCO Cleaned - Vanilla Hair.esp
lBookworm.esp
Quest Award Leveller.esp
Quest Award Leveller - Mehrunes Razor.esp
Quest Award Leveller - Vile Lair.esp
P1DseeYouSleep.esp
P1DseeYouSleep - DLCVileLair.esp
EnchantmentRestore.esp
EnchantmentRestore_Wells.esp
ScriptIcon_Replacer.esp
Harvest [Flora] - DLCFrostcrag.esp
Harvest [Flora] - DLCVileLair.esp
Harvest [Flora] - Shivering Isles.esp
Harvest[Containers] - Vanilla - Ore Respawn.esp
Harvest[Containers] - Flat-Top Barrels Add-on.esp
Harvest[Containers] - Havok Crates Add-on.esp
Harvest[Containers] - SI - Ore Respawn.esp
Harvest[Containers] ITA.esp
Enhanced Economy.esp
LINK.esp
Maybe try some other hotkey mod - I'm guessing it'll have the same issue.
As for your second issue, I'm pretty sure that's vanilla behavior (I remember finding out about this long ago when testing this mod, and I'm pretty sure it happened with no mods installed too).
Using latest mod version
Have script extender
Installed using Vortex
Load order:
Oblivion.esm
Unofficial Oblivion Patch.esp
Oblivion Citadel Door Fix.esp
UOP Vampire Aging & Face Fix.esp
DLCShiveringIsles.esp
Unofficial Shivering Isles Patch.esp
DLCHorseArmor.esp
DLCHorseArmor - Unofficial Patch.esp
DLCOrrery.esp
DLCOrrery - Unofficial Patch.esp
DLCVileLair.esp
DLCVileLair - Unofficial Patch.esp
DLCMehrunesRazor.esp
DLCMehrunesRazor - Unofficial Patch.esp
DLCSpellTomes.esp
DLCSpellTomes - Unofficial Patch.esp
DLCThievesDen.esp
DLCThievesDen - Unofficial Patch.esp
DLCThievesDen - Unofficial Patch - SSSB.esp
DLCBattlehornCastle.esp
DLCBattlehornCastle - Unofficial Patch.esp
DLCFrostcrag.esp
DLCFrostcrag - Unofficial Patch.esp
Knights.esp
Knights - Unofficial Patch.esp
BetterMenuControls.esp
BetterSaves.esp
LINK.esp
And these are my installed mods:
The hotkeys seem to only work after setting them in a loaded save.