Complicated was the word. But ... while risking to get myself thrown out of the forum,
I will try to take this even one step further.
The thing is, that when an item in my inventory is right clicked, a full screen image of the object is displayed. The full screen image leads to the previous scene when clicked. This is why I want to disable the inventory in the full screen images. If I didn't, and the player would right click a new object while another is displayed, the new full screen image would only lead him back to the previous full screen image, and he would be "stuck".
The only (minor) problem that I have now is when an object is right clicked, and a full screen image is brought up, the inventory won't disappear until the player moves his mouse pointer below the upper 76 pixels (that's the height of my inventory). So, even though I've hidden the inventory while the full screen images are displayed, the player still has a chance of right clicking another object. As it is now, I've circumvened this through variables, so that the player is transported to the previous screen instead of a new close up.
So, my question is, is it possible to hide the inventory
as soon as the abovementioned InventoryActive variable is set,
even if the mouse cursor is in the inventory area?
I am sorry for being a pain in the neck.
Mikael