Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Const iNormalFocus = 1
  2. Set objShell = WScript.CreateObject('WScript.Shell')
  3. objShell.Run 'rundll32 ' & chr(34) & '%ProgramFiles(x86)%Windows Photo ViewerPhotoViewer.dll' & chr(34) & ',ImageView_Edit c:\screencap.jpg',iNormalFocus
  4. Wscript.Sleep 300
  5. objShell.AppActivate 'Console1'
  6. Wscript.Sleep 100
  7. objShell.SendKeys '^p'
  8. Wscript.Sleep 900
  9. objShell.SendKeys '%F'
  10. Wscript.Sleep 900
  11. objShell.SendKeys '%P'
  12. Wscript.Sleep 10000
  13. objShell.SendKeys 'X'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement