Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch File to record Screen Shot

Status
Not open for further replies.

shawnrk

IS-IT--Management
Jul 22, 2004
10
US
Is it possible to create a batch file to record a screen shot to disk? System Scheduler could be used to run the file. How would you write this file? I cannot find a good resource online on how to write batch files that use keystrokes (CTRL+PRTSCN) or can someone tell me what program that key combination launches.

Thanks

s
 
Thanks, but i would like to learn how to use batch files better. I understand that there are utilities available to do this.

s
 
i used to create batch files that called a secondary input file with nothing but a keyboard input. The idea was batch1.bat would execute a command requiring that <y> + <enter> was pressed before continuing. I then created an "empty" Y-CRLF.inp (for input) that contained nothing but the <Y> + <enter> key pressed. Believe it or not, the input file held the keystrokes (hidden embedded codes) within it, even the enter.

so the syntax within batch1.bat was:
executable_name.exe < Y-CRLF.inp (or .txt for that matter)

so the contents of the input file were passed to the executable by calling it within the batch using the pipe-in "<" command.

I know thats not exactly what you wanted to do, but maybe the printscreen keystrokes you are wanting to use could be called by the batch file using the input file somehow?

Here's a good batch file reference site:
 
Anyone know what the executable is for print screen?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top