I am trying to write a VBS code to do a printscreen and paste it as a bmp image in mspaint. On searching over net i am finding that sendkeys option in WSH is not applicable for print screen button in VBS.
Is thre any other alternate code that i can use.
I once facing the same question like you before, &#65321;search the google - no results, nobody could solve this problem in pure VBS code.
if you are using QTP, the best way is using screenCapture
but if not using QTP, if you want to write pure vbs code, we have to use WSH sendKey, but WSH sendkey not suppoot key "printscreen" - So I use AutoItx, it's a COM object.AutoItX could be called by vbs and support send "printscreen" key
- that's the way I solve this problem
Hopes this would help