How will take printscreen without Sendkeys. is there any way to do that
Yes; See code:
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '
'In the initialize page.
'On the code options
'Add as external reference:
'System.Windows.Forms.dll
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '
' OUT: PrintScreen (as Image)
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' dim bitmap as new System.Drawing.Bitmap(System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width, System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height)
dim graphics as System.Drawing.Graphics = System.Drawing.Graphics.FromImage(bitmap)
graphics.CopyFromScreen(0, 0, 0, 0, bitmap.Size)
PrintScreen = bitmap
(add this code in a code stage on an object)