How can I use Window Handle with Attach Window Activity?

The handle should be IntPtr. So you would need to convert your Int32 to an IntPtr:

New UiPath.Core.Window(CType(in_Handle, IntPtr))
2 Likes