Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; If you like this program donate a coffee to paypal d.marzano@libero.it
- ;-https://www.irfanview.com/
- ;-https://www.autohotkey.com/board/topic/121619-screencaptureahk-broken-capturescreen-function-win-81-x64/ ;- see also user 'Linear Spoon'
- ;screenshots=%a_desktop%\SCREENSHOTS ;- create folder
- ; Tasto F11 cattura schermo intero e salva file tipo "AA-data-ora.png"
- ; cambia le lettere "AA" a piacimento
- screenshots=G:\_cattura ;- create folder
- ifnotexist,%screenshots%
- filecreatedir,%screenshots%
- ;--
- ;irfan=C:\Program Files\IrfanView\i_view64.exe
- irfan=g:\uty\irfanview462\i_view64.exe
- wa:=A_screenwidth,ha:=A_screenHeight,xx:=100
- return
- ;---------------------------------------------
- *~$!F2::
- F11::
- ;salva in altro drive\percorso
- ;aac=%screenshots%\%a_now%_screenshot.png
- ;salva directory corrente
- ;e cambia il prefisso dei file es AA, BB, XX
- aac=BB_%a_now%_screenshot.png
- ;---
- x:=(wa*10)//xx ,y:=(ha*1)//xx,w:=(wa*50)//xx,h:=(ha*50)//xx ;- x=10% y=1% width=50% height=50%
- ;AA=/capture=2 /crop=(%x%,%y%,%w%,%h%) /aspectratio /convert=%aac%
- AA=/capture=1 /aspectratio /convert=%aac% ; Full screen
- ifexist,%irfan%
- {
- runwait,%irfan% %AA%
- run,%aac%
- SoundPlay, %A_WinDir%\Media\chimes.wav
- Sleep, 500 ; ritardo minimo tra premere e rilascio
- SoundPlay, %A_WinDir%\Media\chimes.wav
- }
- return
- ;--------------
- F1::
- ; SoundBeep, 400, 1000 ; frequenza hz, durata msec - fine programma
- SoundPlay, %A_WinDir%\Media\chimes.wav
- Sleep, 500 ; ritardo
- ExitApp
- return
- F12::ESC
- ;----------------------------------------------------------------------------------
- /*
- --- capture values:
- 0 = whole screen
- 1 = current monitor, where mouse is located
- 2 = foreground window
- 3 = foreground window - client area
- 4 = rectangle selection
- 5 = object selected with the mouse
- 6 = start in capture mode (can't be combined with other commandline options)
- --- Advanced examples:
- i_view32.exe /capture=2 /convert=c:\test.jpg
- Capture foreground window and save result as file.
- i_view32.exe /capture=2 /convert=c:\capture_$U(%d%m%Y_%H%M%S).jpg
- Capture foreground window and save result as file; the file name contains time stamp.
- */
- ;-----------------------------------------------------------------------------------
- ;shift + F12 = exitapp
- +F12::
- ; SoundBeep, 400, 1000 ; frequenza hz, durata msec - fine programma
- SoundPlay, %A_WinDir%\Media\chimes.wav
- Sleep, 500 ; ritardo
- ExitApp
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement