From: Axel Date: 2010-02-02T03:55:24+09:00 Subject: TK: Get the "usable" screensize"? Hi, how can I get the "usable" screensize in Ruby/TK? I mean, the total screensize minus taskbar (on Windows). I tried: require 'tk' root = TkRoot.new root.state('zoomed') Tk.update p TkWinfo.x(root) p TkWinfo.y(root) p TkWinfo.width(root) p TkWinfo.height(root) p TkWinfo.geometry(root) but this gives me only total_screensize - (taskbar + window_decoration) window_decoration is titlebar and borders of a window, maybe even something else. I found http://wiki.tcl.tk/11291 which points into the same direction, but I cannot use it with success (it's TCL). I'm using: * Windows XP * ruby 1.8.7 (2009-06-12 patchlevel 174) [i386-mingw32] * TCL/TK 8.5 Thank you, Axel