Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
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?