Forum Discussion
m_essaid
9 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
Related Content
- 11 months agolalit_singh
- 4 years agoLogiv
- 8 years agorasool_saheb
- 10 years agom_essaid
- 2 years agomitov
Recent Discussions
- 2 days agovladd1