Quantcast Crouch/Uncrouch Keybindings - ESOUI
Thread Tools Display Modes
02/20/20, 08:34 AM   #1
wesleinwe
Join Date: Feb 2020
Posts: 1
Crouch/Uncrouch Keybindings

Hi, is there an addon that allows to use different keys for entering and exiting stealth (crouch) or an addon that just makes the default crouch key to function only to enter stealth, not exit it myloweslife?

Is such an addon even possible to create?

Last edited by wesleinwe : 02/21/20 at 10:33 AM. Reason: spelling
  Reply With Quote
02/20/20, 12:13 PM   #2
Baertram
 
Baertram's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 2,722
afaik: No, not possible.
One would need to be able to detect if you got into crouch state and then change the keybind somehow (which is not possible via API commands of addons , at least I don't know it would be possible without destroying all other keybinds of the same layer).

And same way as you leave crouch to switch the keybindings back.
  Reply With Quote
02/27/20, 05:31 PM   #3
ExoY
 
ExoY's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2020
Posts: 10
I have an Idea how it might be possible to make an addon with the function you desire.

But I am fairly new to writing addons and i need do to some testing to see if my idea works.

Maybe I'll get around to it this weekend. I will let you know how it turns out.
  Reply With Quote
02/27/20, 05:51 PM   #4
Baertram
 
Baertram's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 2,722
If you manage to get this to work, what others tried and failed several times already, I'd be surprised
As you said you are new to the addons: Before wasting your time tell us your idea and we can tell you if this is possible or not.
  Reply With Quote
02/27/20, 06:29 PM   #5
ExoY
 
ExoY's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2020
Posts: 10
Thats a very good point

my idea is based on the assumption, that you can mimic the default crouch hotkey.
Like it is possible for the sheathe/unsheath hotkey with the function: "TogglePlayerWield()".

I spend the last hour looking through some api documentation but i couldnt find such a function so far.

The source code i only understood partly. Crouch is a special movement with the index 2, but didnt find a function to execute or toggle it....
  Reply With Quote
02/27/20, 06:32 PM   #6
ExoY
 
ExoY's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2020
Posts: 10
Originally Posted by Baertram View Post
As you said you are new to the addons: Before wasting your time tell us your idea and we can tell you if this is possible or not.
But even if it doesnt work the way i imagined it. It is a good practise to look through all the different documentations out there

Last edited by ExoY : 02/28/20 at 03:00 AM. Reason: spelling
  Reply With Quote
02/27/20, 08:09 PM   #7
Baertram
 
Baertram's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 2,722
Originally Posted by ExoY View Post
But even it it doesnt work the way i imagined it. It is a good practise to look through all the different documentations out there
Right, that is true.
And no, there is no API function for crouch/uncrouch toggles.
And if there is one it is protected so you cannot abuse it for "botting".
  Reply With Quote
02/28/20, 04:59 AM   #8
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,345
Crouch and other movements are simply that - special move keys. You can find the line of code where it is called by the game here, but OnSpecialMoveKeyPressed is private, so it cannot be used by addons.
__________________
Like what I do? Support me on Patreon!
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
  Reply With Quote

ESOUI » AddOns » AddOn Search/Requests » Crouch/Uncrouch Keybindings

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off