Re: [IronPython] Process.GetProcessById error

2008-08-21 Thread Curt Hagenlocher
Use "Process.GetProcessById(pid.Value)". On Thu, Aug 21, 2008 at 9:21 AM, cephire <[EMAIL PROTECTED]> wrote: > Hi, > Using ironpython I'm trying to get the active window details. Refering > to voidspace (http://www.voidspace.org.uk/ironpython/winforms/ > part10.shtml), I've created a user32 dll.

[IronPython] Process.GetProcessById error

2008-08-21 Thread cephire
Hi, Using ironpython I'm trying to get the active window details. Refering to voidspace (http://www.voidspace.org.uk/ironpython/winforms/ part10.shtml), I've created a user32 dll. I'm using the below code. if User32.GetWindowText(hd, txt, WndTitleChars): pid = clr.Reference