SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4

Thread: object

  1. #1
    Junior Member
    Join Date
    Jun 2009
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    object

    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', '*')
    Regions.AddPicture(r,'UserLoginWin');
    Regions.GetPicture('UserLoginWin').SaveToFile('c:\ 'UserLoginWin'.bmp');

    are there other ways to store the image to a specific location directly?

  2. #2
    Senior Member
    Join Date
    Aug 2006
    Posts
    1,920
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: object

    Hi,

    Try the following code:
    <font class="small">Code:</font><hr /><pre>r := Sys.Process('Main').Window('UserLogin', '*');
    r.Picture().SaveToFile('c:\'UserLoginWin'.bmp');</pre><hr />
    Jared - AQA Support

  3. #3
    Junior Member
    Join Date
    Jun 2009
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: object

    i used Picture.savetofile method before but it captured the picture including the arrow cursor on the window. are there other methods? Thanks!

  4. #4
    Senior Member
    Join Date
    Aug 2006
    Posts
    1,920
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: object

    Hi,

    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.
    Jared - AQA Support

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.00%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 04:16 AM.

Copyright BetaSoft Inc.