Native Window "Instance" Property

Ask general questions here.
Posts: 357
Joined: Sun Dec 07, 2008 11:14 pm
Location: Dublin, Ireland

Native Window "Instance" Property

Post by atom » Tue Feb 17, 2009 8:55 pm


Can you explain what the "Instance" property displayed in the Spy tool is please ?


User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Post by Support Team » Wed Feb 18, 2009 10:55 am

The instance is an index-like property for win32 windows which share the same class name, sorted by [x,y]. In some cases this is the only way to distinguish two windows (not including the volatile handle).

For example if there are two windows with class 'MyWndClass123' (and the same parent window) then one window has instance '0' and the other has instance '1'.

Ranorex Team