Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Does anyone have an idea on how to capture screenshots from a QlikView screen?
The approach should also work once the application is hosted on IE/Crome
try Print Screen Automation VB macro...
I found a macro defined on below link :
http://officetricks.com/print-screen-save-as-image-file-attach-to-sheet-automate-in-vba/
It does not seem to work. Error is 'Expected end of statement'
you might need to customize below code according to your requirement..
sub print
Set objShell = CreateObject("WScript.Shell")
Set objWord = CreateObject("Word.Application")
'Set objDoc = objWord.Documents.Add()
'Set objDoc = objWord.Documents.open("D:\Doc.docx")
'Set oWord = CreateObject("Word.Application")
objWord.Visible = True
objWord.Documents.Open "D:\Doc.docx"
objWord.Visible = True
objShell.SendKeys "{prtsc}"
'objWord.SendKeys "{prtsc}"
objShell.Run "mspaint"
objShell.AppActivate "untitled - Paint"
objShell.SendKeys "^v"
objShell.SendKeys "^s"
objShell.SendKeys "D:\test.bmp"
objShell.SendKeys "{ENTER}"
'Before run---Some application process'
end sub
also refer below link it will helps you...
This macro after a few seconds of execution, opens up the edit Module of the button action