Yes, it is very possible. The client API I wrote (HackBoy) lets you iterate through all "things" (usually called "agents", wrongfully named "players" by BoI devs); by that I mean players, mobs, interactable objects and sometimes even static objects.
You could run a check against specific ID's or types (or maybe simply names) that the items you wish to click on have and find them that way. I never implemented clicking objects in the API though, but guess I could give it a try.
You don't seem like a coder though, but maybe someone else feels like making it