Screenshot Code

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
manwhodontknowcode
Posts: 2
Joined: 10 Dec 2020, 15:27

Screenshot Code

Post by manwhodontknowcode » 10 Dec 2020, 15:39

Hi everyone,
Take a screenshot first and then the (->)side key and repeat this until I stop it or assign a certain time. İ need this code. Can anyone help me?
Thank you for all.

Kapitano
Posts: 31
Joined: 07 Sep 2019, 10:58

Re: Screenshot Code

Post by Kapitano » 14 Dec 2020, 07:01

For screenshots, I use AHK to trigger IrfanView to take a screenshot.

You can get the PortableApps version of IrfanView here: https portableapps.com /apps/graphics_pictures/irfanview_portable Broken Link for safety

The script below assumes you've installed IrfanView to "C:\IrfanViewPortable\App\IrfanView\" and want your screenshots to go to "D:\Screenshots\", and be numbered according to the date and time. It will keep taking shots until you press Ctrl+Escape.

What program is to be in focus to respond you the "go right" keystroke? Below, I'm assuming "Google Chrome", but you modify as you need. It looks like you're wanting to take screenshots of pages from an ebook.

-----

Code: Select all

SetKeyDelay(100)

Loop()
{
	RunWait("C:\IrfanViewPortable\App\IrfanView\i_view32.exe /capture=7=(0,0,1920,1080) /convert=" s_FileName "D:\Screenshots\Screen_" a_Now ".bmp")
	SendEvent("{Right}")
	Sleep(1000)
}

^Esc Up::
{
	ExitApp
}
-----

Post Reply

Return to “Ask for Help (v2)”