Post
by Captive » Fri Mar 23, 2007 3:37 am
Edit: After I wrote this, I realized that you had already wrote something that suggests "the script works" but just not on this 1 persons PC. The last thing might still apply though if he has a multi-monitor setup and the screenshot is of "display2" or something.
After the ScreenCapture command, have you examined the value of %SCREENCAP_RESULT% ? (It should = 0)
I had recently written a screenshot related macro. In Macro Scheduler v8, I had a few minor issues that have been fixed in v9;
- I could not specify a %variable% as the filename in the "ScreenCapture" command.
- I don't think GetScreenRes existed until v9, so I used a trick that would 1) Remember where the mouse is. 2) Try to move the mouse to X=4000, y=4000 3) Use the current mouse position as the x and y for the screencapture, 4) put the mouse back to the original position.
Perhaps try with a few "keep it simple" tests. See if a basic macro can capture the screen (or a portion of the screen).
Let>sFilename=C:\ScreenShotTest.JPG
GetScreenRes>nScreenX,nScreenY
ScreenCapture>1,1,%nScreenX%,%nScreenY%,%sFilename%
If that fails. Perhaps try a bmp, and specifying a portion of the screen and including the filename in the command;
ScreenCapture>1,1,400,400,C:\ScreenShotPartial.bmp
Another thought, is perhaps there is something wrong with your X1,Y1,X2,Y2 values, so you're declaring a rectangle that's outside the visible display? (I don't even know what that would do).