Okay, Here is a little module hamZta and I once wrote to solve this problem. It only fits the resolution-part of your question, but that is the half way... :D
This one is limited to MacOS and Win32 since nobody could help me with the Linux code. I thought of waiting until the Linux part is done, but now i will provide it to help you out.
There are only two little functions in the module. DesktopWidth() and DesktopHeight(). Both return an Integer.
have fun with it ;)
This one is limited to MacOS and Win32 since nobody could help me with the Linux code. I thought of waiting until the Linux part is done, but now i will provide it to help you out.
There are only two little functions in the module. DesktopWidth() and DesktopHeight(). Both return an Integer.
have fun with it ;)