My query is about generating right co-ordinate irrespective of the position
of the window in the desktop.
I took the following example:
Open a MS word (Make sure it is full sized)-> start the GUITest recorder ->
Click at any point on the MS word window -> Turn off the recorder->
it will generate a set of co-ordinates. Close the MS word.
Now My idea is to make my cursor 'click' at the same point even if we change
the size of the MS word window and place it ant any part of the desktop
For this -> open a MS word -> shrink it to a smaller size and place it at
any part of the desktop window. Now I want my cursor to
click a the same point in the MS word window, i.e. irrespective of the size.
Is it possible?
I felt using 'ScreenToClient' I will able to do it. But not.
Following is the code generate by recorder:
# HINT: Foreground Window: Text = 'Document1 - Microsoft Word', Class =
'OpusApp', Id = 0
I modified it=
($ax, $ay)= ScreenToClient( $hwnd, 68, 929);
Can some one guide me?