Well I suck with LUA scripting so I wouldn't be of any help with making something like that. However, I know when it comes to farming ore and wood, I just dragged the ore to a quick slot and it will show you how many you have. That way you don't have to keep opening your inventory.
Hope this helps a little bit!
~~Thay