Whenever I want to capture a screenshot in my code I was using CTRL+PRTSCR, but it is not working. Is there anther way to capture a screenshot pragmatically in Ruby?
Here's is my code: require 'win32ole'
autoIt = WIN32OLE.new("AutoItX3.Control")
autoIt.Send("{CTRLDOWN}{PRINTSCREEN}{CRTLUP}")