[RPG MZ] How to use items automatically on the map? HELP

I have a system that when pressing 1 (key number 1) changes me to the next object while the player is on the map, what I want is that through a script or some plugin it can be used immediately an object, without having to select the actor who will use it (only for the character in use, Main). So let's say I have the potion selected that when I press "R" for example, that object will be used immediately.

By the way, I already have the system ready to change objects and I have a plugin that detects the current object that I have selected. Using a variable, the ID of the object is automatically marked for me,

It would just be finding a way to be able to use an object immediately!
Are you just wanting to do this for 1 item, or many? If you want a hotbar you can set up you can use PKD Alpha ABS.

Original thread: https://forums.rpgmakerweb.com/threads/rpg-mz-how-to-use-items-automatically-on-the-map-help.169532/