[XP] Grouping and Details - Selection

Hi folks, I was wondering if anyone with an understanding of window scripts would be able to help me with "selection" in DerVVulfman's Grouping and Details script for RMXP. For the item and skill menus, you can choose from "groups" at the top of the window:

Screen30.png


Currently, if you're on the far left option ("Normal" in this screenshot), pressing the left key will do nothing. I would like to be able to press the left key and have it jump to the far right option, and vice-versa. Here is a link to the demo of this script (there are multiple scripts needed to use these menus so this is easier than posting them all):

 

http://app.box.com/s/pxrd5dycrseoyk9byogw

 

I'm not familiar enough with how window scripts work to figure it out myself, but if anyone is able to take a look I would greatly appreciate it!
Just wanted to update on this - DerVVulfman was kind enough to put together an add-on for the Grouping and Details that allows the menu options to loop. If you are interested in using it as well, here is the script that he shared:

http://www.rpgmaker.org/forum/forum_posts.asp?TID=998&PID=13924

Credit goes to DerVVulfman, but additional credit should be given to Armor Nick and Jackoftrades.

Original thread: https://forums.rpgmakerweb.com/threads/xp-grouping-and-details-selection.38704/