Forum Discussion
Hi Kirk,
I think it would be better to take X-Y Coordination as runtime, If you taken runtime it will give X-Y Cordination on the basis of screen resolution
like -
With objGrid.TBL_objName
intXCordination = .EmbeddableTextBoxWithUIPermissions.Right
intYCordination =.EmbeddableTextBoxWithUIPermissions.top
Call .Click (intXCordination, intYCordination)
Delay(100)
End With
it may help you.
I think it would be better to take X-Y Coordination as runtime
I can get the X-Y coordinates of the click points in the bitmap on my system for my resolution. I can record them in a low level procedure relative to the window that displays them. However, I can't know ahead of time what resolution a tester will have, and the bitmap scales with it. I could record a low level procedure for every known resolution, but that would be extraordinarily time consuming.
The window scales to the resolution. I can determine the resolution. I could theoretically scale the recorded X-Y coordinates accordingly at runtime, but that's what I'm posting about: how to do that.
I appreciate the input, but it looks like the code you posted requires me to know where to click at design time. I'm not having an issue seeing or clicking objects, I need a way to click precisely at specific points on an image. I see the image display box, I can click the points on my system, I just need a way to translate those coordinates to another system's resolution.
So essentially, something that can catch the XY coordinates coming out of the playback, and apply a conversion. I'm recording the clicks at 1920x1080, so on any system that plays it back, instead of clicking (X,Y), it clicks:
((X / 1920 * CurrentMachineHeight), (Y / 1080 * CurrentMachineWidth)).
Related Content
- 6 years ago
- 3 years ago
Recent Discussions
- 7 hours ago