title: How to interact with objects inside of a SWT_Window0?
body: <p>I have been having an issue where i need to automate the interaction with objects inside of a SWT_Window0. Within this Window I have a list of objects which need to be clicked and dragged to another part of the screen. I have attached a picture of the SWT_Window0.
   </p>
  
  <p>The aim I have is to click on "Crosstab" and drag it to the right handside of the screen. The issue I have is UFT only recognises the entire window as one object and does not recognise anything inside it, Crosstab, Spreedsheet etc. And because of this I am having great difficultly getting UFT to click on the "Crosstab" label. Could anyone with more UFT experience potentially share some ideas about how to go about clicking the labels within the SWT_Window0?
  I've tried a couple of different ways of trying to click any label within the SWT_Window0 but with no luck. Closest I can get is just using UFT's record which gives:</p>
  
  <pre><code>Window("Designer").WinObject("SWT_Window0").Click 64,34
  </code></pre>
  
  <p>But i cannot use this is I do not want to use X,Y coordinates in my test as they are not reliable  </p>
  
  <pre><code>"Window("Designer").WinObject("SWT_Window0").Click" Just clicks middle of the window.
  </code></pre>
  
  <p>I've also tried other things like
       .Click 2,   
        .Click "Crosstab",   .Press "Crosstab" etc but of no avail</p>
  
  <p>I will also attach the properties of the SWT_Window0</p>
  
  <pre><code>"Class Name:=WinObject",
  "abs_x:=1925",
  "abs_y:=118",
  "attached text:=",
  "enabled:=True",
  "focused:=True",
  "hashscroll:=False",
  "hasvscroll:=True",
  "height:=417",
  "hscrollpagesize:=",
  "hscrollposition:=",
  "hwnd:=69930",
  "leftscrollbar:=False",
  "maxhscrollpos:=",
  "maxvscrollpos:=1142",
  "minhscrollpos:=",
  "minvscrollpos:=0",
  "nativeclass:=SWT_Window0",
  "object class:=SWT_Window0",
  "regexpwndclass:=SWT_Window0",
  "regexpwndtitle:=",
  "rightaligned:=False",
  "righttoleftlayout:=False",
  "righttoleftreading:=False",
  "text:=",
  "visible:=True",
  "vscrollpagesize:=418",
  "vscrollposition:=0",
  "width:=376",
  "window id:=0",
  "windowextendedstyle:=1048576",
  "windowstyle:=1445003264",
  "x:=13",
  "y:=126"
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Ob1tf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ob1tf.png" alt="Screenshot"></a>
   </p>