Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Mac Style Screenshot


  • Please log in to reply
No replies to this topic
benyaminbidabad
  • New members
  • 1 posts
  • Last active: Oct 15 2015 07:18 PM
  • Joined: 01 Oct 2015
This code will give you a mac styled screenshot.
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