Hi, can someone explain why this is not working when I specify X or XandY, but it does work when I specify e.g. W, which I don't want since the size of the control/window can vary.... (see also screenshot): $id = "[CLASS:TPageControl; X:210]" $id2 = "[CLASS:TPageControl; W:929]" $h2 = ControlGetHandle("title", "text", $id) ConsoleWrite("h2:" & $h2 & @CRLF) $h3 = ControlGetHandle("title", "text", $id2) ConsoleWrite("h3:" & $h3 & @CRLF) h2: h3:0x00181574