problem with WindowScreenShot

 
Hello there, whatever arguments I give to WindowScreenShot() in my script, the ouput will be a nice black picture :)

ie: WindowScreenShot( "test.gif", 400, 400, 0);


any suggestion?

thx in advance
 
I just found this is happening with displays with 256 colors only (which is often the time in virtual machines) ....
Reason: