Forum Discussion

sameerjade's avatar
sameerjade
Frequent Contributor
7 years ago
Solved

How to set Mouse to False in Picture Method (Desktop Objects)

Hello,

 

I am trying to use the Picture Method (Desktop Objects) which has the syntax:

TestObj.Picture(ClientXClientYWidthHeightMouse)

 

I want to set Mouse to False and rest all to default.  I tried using the method the following ways but it is not working (I get a Microsoft JScript runtime error). Can you please help me use the method correctly?

 

TestObj.Picture(False)

TestObj.Picture(Mouse=False)

 

Thank you,

Sameer

  • Because the "Mouse" property happens after several others, if you want to keep the defaults of those, you'll need to do something like

     

    TestObj.Picture(0,0,-1,-1,false)

2 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    Because the "Mouse" property happens after several others, if you want to keep the defaults of those, you'll need to do something like

     

    TestObj.Picture(0,0,-1,-1,false)
    • sameerjade's avatar
      sameerjade
      Frequent Contributor

      Thanks, Robert. It is now working for me with your solution.

       

      -Sameer