aboutsummaryrefslogtreecommitdiff
path: root/scripts.ahk
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-01-30 23:37:46 +0100
committerJohn Ankarström <john@ankarstrom.se>2021-01-30 23:37:46 +0100
commit824c33100c383cc9a1405260bc86f193b1b26e68 (patch)
treef61e868fc9ff3460dd0b6e54b6869642ec8fc547 /scripts.ahk
parentde6d6665f3e91245f0e6ea71bd00bcfdeb8176cb (diff)
downloadahk-824c33100c383cc9a1405260bc86f193b1b26e68.tar.gz
Add hotkey to print screen to file in clipboard
Diffstat (limited to 'scripts.ahk')
-rw-r--r--scripts.ahk7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts.ahk b/scripts.ahk
index 301a46a..e8a838b 100644
--- a/scripts.ahk
+++ b/scripts.ahk
@@ -1,4 +1,5 @@
#Include ../lib/Acc.ahk
+#Include ../lib/Misc.ahk
; Directives ------------------------------------------------------------------
@@ -48,6 +49,12 @@ return
#ScrollLock::Media_Play_Pause
#Pause::Media_Next
+*~^PrintScreen::
+Run, "C:\Program Files\ImageMagick\magick.exe" clipboard: scr.jpg, % env("TEMP"), Hide
+Sleep, 200
+ClipboardSetFiles(env("TEMP") "\scr.jpg")
+return
+
#e::Run, % "explorer /n, ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}" ; open my computer
; Enable/disable proxy server