From: Diego Guti Date: 2008-12-27T19:10:14+09:00 Subject: Re: Win32API- GetForegroundWindows() > Try changing your last parameter from 'P' to 'N': > > a = Win32API.new('user32', 'GetForegroundWindow', [], 'N') > window = a.Call() > > David Thanks, now it's running :). Just one more question. Now i got the handle of the window, any chance to get the name of the window?? -- Posted via http://www.ruby-forum.com/.