I write the following scripts to get an image of a window, store it to the regions collection, get the image again from regions collection and then store it in a specific location.
r := Sys.Process('Main').Window('UserLogin', '*')
are there other ways to store the image to a specific location directly?
Try the following code:
<font class="small">Code:</font><hr /><pre>r := Sys.Process('Main').Window('UserLogin', '*');
i used Picture.savetofile method before but it captured the picture including the arrow cursor on the window. are there other methods? Thanks!
You need to call the Picture method like this to disable the mouse cursor:
<font class="small">Code:</font><hr /><pre>r.Picture(0, 0, -1, -1, false)</pre><hr />
See the "OnscreenObject.Picture" help topic.