Method: AutoItX3::Window#client_size
- Defined in:
- lib/AutoItX3/window.rb
#client_size ⇒ Object
Returns the client area size of self as a two-element array of form [ width , height ]. Returns [0, 0] on minimized windows.
172 173 174 175 176 177 178 |
# File 'lib/AutoItX3/window.rb', line 172 def client_size Window.functions[:client_size_width] ||= AU3_Function.new("WinGetClientSizeWidth", 'SS', 'L') Window.functions[:client_size_height] ||= AU3_Function.new("WinGetClientSizeHeight", 'SS', 'L') size = [Window.functions[:client_size_width].call, Window.functions[:client_size_height].call] raise_unfound if AutoItX3.last_error == 1 size end |