Win+PrtSc to PrtSc

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

Win+PrtSc to PrtSc

Post by manwhodontknowcode » 23 Dec 2020, 19:29

Hello, when i press the windows key + PrtSc key, the screenshot falls into the screenshot folder. Does anyone know a code so I can do this by just pressing PrtSc? I would appreciate it if anyone could help.
Note: My computer is laptop, there is only one windows key at the bottom left.

CptRootBeard
Posts: 26
Joined: 16 Nov 2020, 14:47
Contact:

Re: Win+PrtSc to PrtSc

Post by CptRootBeard » 30 Dec 2020, 11:37

Hey @manwhodontknowcode, try this:

Code: Select all

;;We need to use a keyboard hook ($) with the hotkey so it doesn't retrigger itself.
$PrintScreen::
{
	;;Run a send command to send the windows key + printscreen combo
	Send("#{PrintScreen}")
}
The main catch in this situation is using the keyboard hook to avoid retriggering the hotkey every time we send it.

Post Reply

Return to “Ask for Help (v2)”