[Solved] Cursor width to command length

Hi,
I want to make the cursor highlight width to fix the text length of the command it has selected, specifically in the ActorCommand window (Attack, skill, etc).
I feel like it has something to do with itemrect and updatecursor, and setting the width of rect to the length of the command, but I can't find the way to make it work.
Any help would be appreciated, thanks! 😉
can you explain it a bit more, do you mean hover over the skill using the mouse?
or do you some the selector over the word like using the arrow keys?
Did you edit the behavior of the command windows to stretch depending on the longest command? Coz by default, the width of the window is fixed, and it simply tries to fit the commands inside, so the cursor will also always be the right size.
Did you edit the behavior of the command windows to stretch depending on the longest command? Coz by default, the width of the window is fixed, and it simply tries to fit the commands inside, so the cursor will also always be the right size to the window.

Or do you mean you just want it to be exact to the word like if the word is smaller than the window, the cursor will only highlight the text itself
@Engr. Adiktuzmiko try avoiding double posting 😛 you should edit the post (its in the rules)
Do you want to affect all command windows, or only Window_ActorCommand (i.e. the Attack, Defend, Skill, etc window in battle)?

This seems to work for all command windows (including title & pause menus, equip scene, etc):
@caethyril Thank you so much, that's exactly what I wanted!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-cursor-width-to-command-length.109875/