Forum Discussion
m_essaid
11 years agoValued Contributor
Hi,
The FireMonkey window is like a black box, I cannot debug its controls with TC's object spy.
What I've done : I put the mouse on a point I want to click or change text. I use theses commands to get X and Y relative mouse coordinates :
Log.Message('Relative X coordinates : '
+ IntToStr(Aliases.PROGRAM.wndFMTForm.ScreenToWindow(Sys.Desktop.MouseX, Sys.Desktop.MouseY).X));
Log.Message('Relative Y coordinates : '
+ IntToStr(Aliases.PROGRAM.wndFMTForm.ScreenToWindow(Sys.Desktop.MouseX, Sys.Desktop.MouseY).Y));
And I use theses coordinates to click, dblclick, Keys('blabla') and so.
Mehdi