PrintScreen

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
jrachr
Posts: 545
Joined: 01 Mar 2021, 17:33

PrintScreen

05 Aug 2023, 08:43

Good Day. Well this should be easy but I don't get it. Does anyone know why this won't work.It should. Works fine when remapped to other keys but I want to use printscreen key if possible.Have tried Run,Send ,even Printscreen::control but nothing works. Yet remapping to rctrl does. Any ideas?

Code: Select all

#NoEnv 
#Persistent 
#SingleInstance, Force

PrintScreen::
Run ,  D:\Window's Shortcut's\Control Panel - Shortcut.lnk
Return
jrachr
Posts: 545
Joined: 01 Mar 2021, 17:33

Re: PrintScreen

06 Aug 2023, 03:45

.nobody has any idea why this won't work? In ahk there must be some way.
Master_X
Posts: 33
Joined: 04 Aug 2023, 13:59

Re: PrintScreen

06 Aug 2023, 04:44

eh idk but copy and paste this

Code: Select all

PrintScreen::
	run, control.exe
Return
should work totally fine

Edit: I copied your full script, created the same folders. For me also this works too.
Edit2: Maybe use KeyHistory to view the pressed key inside ahk if you press print

like this. You start press print and then a. Ahk opens and shows the pressed key. Is it "PrintScreen" there?

Code: Select all

#InstallKeybdHook

a::
KeyHistory
jrachr
Posts: 545
Joined: 01 Mar 2021, 17:33

Re: PrintScreen

06 Aug 2023, 07:47

@ master_x. Thank you very much Master. PrintScreen never worked but by using your tip to get the scan code and using that it worked while the key that came up which did show PrintScreen did not. I do not know what OSK is but will research it later. Like the key History tool. Will hold on to that for future use if I may. Once again tk's.Cheer's

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], Rxbie and 239 guests