Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Write a program to Capture Desktop Screen shot
#1
Not Solved
Write a program to Capture Desktop Screen shot

Reply
#2
Not Solved
HI,

you can use the QTP in-built method "Desktop.CaptureBitmap"

Code:
Desktop.CaptureBitmap("SampleImage.bmp",True)
Let me know if you need any help
Thanks,
SUpputuri
Reply
#3
Not Solved
try the follwing in .vbs file......




Code:
Set oWordBasic = CreateObject("Word.Basic")

oWordBasic.SendKeys "{prtsc}"

oWordBasic.AppClose "Microsoft Word"

Set oWordBasic = Nothing

WScript.Sleep 2000

set WshShell = CreateObject("WScript.Shell")

WshShell.Run "mspaint"

WScript.Sleep 2000

set shl=createobject("shell.application")  

shl.MinimizeAll  

WScript.Sleep 1000

shl.UndoMinimizeAll

Set shl=Nothing

WScript.Sleep 1000

WshShell.AppActivate "untitled - Paint"

WScript.Sleep 1000


WshShell.SendKeys "^v"

WScript.Sleep 500


WshShell.SendKeys "^s"

WScript.Sleep 500

WshShell.SendKeys "c:\scrnshot.jpeg"

WScript.Sleep 500

WshShell.SendKeys "{ENTER}", True

Set WshShell=Nothing

WScript.Quit
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Take Entire screen shot including scroll bar. venkatesh9032 0 1,856 12-26-2016, 06:14 PM
Last Post: venkatesh9032
  Can't locate items on Win7 Desktop RandomGrin 0 2,070 01-30-2015, 10:55 PM
Last Post: RandomGrin
  Error in getting sum of numbers program QTpier 2 3,009 07-18-2014, 01:53 PM
Last Post: QTpier
  "How to write Batch Script runner program" suresz449 2 3,969 12-19-2011, 05:15 PM
Last Post: Munna.Sarfraz
  "VBScript Program" suresz449 0 2,727 12-19-2011, 09:55 AM
Last Post: suresz449

Forum Jump:


Users browsing this thread: 2 Guest(s)