Subscribe Bookmark RSS Feed

Re: SavePicture() PNG dimension change between JSL run manually and with Task Scheduler

jason_paquette

Community Trekker

Joined:

Jan 26, 2015

Hello,

I have noticed an odd observation when running my JSL script by two different means.

If I run my JSL script manually, the GraphBuilder report images appear with the correct undistorted dimensions.

Now if I run my JSL script via Task Scheduler, the image dimensions are much smaller and it is very distorted.

I had set the DPI for PNG/JPEG in JMP preferences to be 300, but it doesn't seem to change the outcome.

Does anyone know what might be happening here and why there would be a difference b/w manually running the script and through Task Scheduler?

Thanks,

Jason

1 REPLY
Highlighted
Craige_Hales

Staff

Joined:

Mar 21, 2013

does task scheduler have a display that JMP runs on, or is it running when your display is locked?  logged out?  I'm not familiar with the windows task scheduler.

have you tried a wait(0); before the <<savePicture(...)?

My quick test says it works if I start the script by double-click and quickly lock the screen.

Craige