mafuko
15 years agoOccasional Contributor
Problem with PictureObj.Stretch(Width, Height)
HI,
I want use this picture methods "stretch" PictureObj.Stretch(Width, Height) in TestComplete5 with VBscript like this:
Set ObrazokObj = Sys.Desktop.Picture
ObrazokObj.Stretch(800,800)
ObrazokObj.SaveToFile("D:\plocha.png")
But I cant run the script, because I got this error:
Syntax error
At "
ObrazokObj.Stretch(800,800)
O"
error 100:Syntax error while processing ",".
I don't understand why, can you pls write me how Can I change this methods of picture ? or other oportunity how to reduce size of image ? (I dont want use PictureObj.size)
I want use this picture methods "stretch" PictureObj.Stretch(Width, Height) in TestComplete5 with VBscript like this:
Set ObrazokObj = Sys.Desktop.Picture
ObrazokObj.Stretch(800,800)
ObrazokObj.SaveToFile("D:\plocha.png")
But I cant run the script, because I got this error:
Syntax error
At "
ObrazokObj.Stretch(800,800)
O"
error 100:Syntax error while processing ",".
I don't understand why, can you pls write me how Can I change this methods of picture ? or other oportunity how to reduce size of image ? (I dont want use PictureObj.size)