Press Windows+Shift+S to select the area you want to screenshot.
The Screenshot will be saved on your desktop
This code uses Snipping Tool
Replace the directories if yours are different.
;Code Written by Benyamin Bidabad ;[email protected] #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. ;If Snipping Tool window is active ESC will reload the script #IfWinActive Snipping Tool Escape::Reload #IfWinActive ;The Hotkey is defined below, Change it as you like. #+s:: ;Make Sure to change the directories below corresponding to your computer Run C:\WINDOWS\system32\SnippingTool.exe WinWait Snipping Tool WinActivate Snipping Tool WinWaitActive ,Snipping Tool,,1 Send !nr KeyWait, LButton, D KeyWait, LButton WinWaitActive ,Snipping Tool,,1 sleep 200 Send ^s WinWaitActive, Save As,,1 if WinActive Save As Send C:\Users\Ben\Desktop\Capture.jpg Send {Enter} return
Edited by joedf, 01 October 2015 - 09:37 PM.
fix code, was incorrectly formatted