Move the Indicator?
Does anyone know if there's a way to move the Indicator from the upper right corner of the screen to a new location? Sometimes when I'm running scripts the Indicator is so high up on the screen that only the bottom half of its balloon text is visible. I'd like to have a way to fix it in one place.
Re: Move the Indicator?
You can change the position of the Scales sign using the SetWindowPos function.
Here is an example:
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">[DelphiScript]
h, w, i;
w := Sys.Process('TestComplete').Window('TFormIndicator ', 'FormIndicator', 1);
h := w.Handle;
X := w.SLeft;
Y := w.STop;
// Move the window
for i:=1 to 200 do
Win32API.SetWindowPos(h, nil, i, i, w.Width, w.Height, SWP_SHOWWINDOW);
// Restore the original position
Win32API.SetWindowPos(h, nil, X, Y, w.Width, w.Height, SWP_SHOWWINDOW);
end;</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">
Save on AutomatedQA Products