Editing vlcrc manually—how to type Print Screen?

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
WandersFar
New Cone
New Cone
Posts: 9
Joined: 12 Feb 2010 17:37

Editing vlcrc manually—how to type Print Screen?

Postby WandersFar » 04 Apr 2014 19:26

I want to assign Print Screen to take video snapshots within VLC only (not as a global hotkey). Unfortunately I can’t assign Print Screen within VLC’s dialogs since it just takes a capture of the dialog, it’s not sending the key.

So I’ve found the appropriate line in vlcrc, but I’m not sure how to write Print Screen:

# Take video snapshot (string)
key-snapshot=

I tried Print Screen, PrintScreen, PrntScrn, PrtSc… When I open up VLC and check the hotkey dialog, the new key does appear in the list, however pressing Print Screen on my keyboard does not work—it will not take a video snapshot. I tried assigning another key, like so:

# Take video snapshot (string)
key-snapshot=F1

… and it did work, F1 did take a video snapshot, so I just need to get the right word for Print Screen.

Is there a list of how to type special keys into vlcrc so that VLC recognizes them? I searched the forums and the FAQs, but I haven’t found anything.

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Editing vlcrc manually—how to type Print Screen?

Postby mederi » 07 Apr 2014 14:09

Print Screen is one of the keys that cannot be used as a hotkey.

WandersFar
New Cone
New Cone
Posts: 9
Joined: 12 Feb 2010 17:37

Re: Editing vlcrc manually—how to type Print Screen?

Postby WandersFar » 07 Apr 2014 19:15

How did you find this out? Is there a list somewhere?

Thank you for the information.

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Editing vlcrc manually—how to type Print Screen?

Postby mederi » 08 Apr 2014 13:34

At first I tried to assign hotkeys in VLC GUI preferences. Caps Lock, Num Lock, Scroll Lock, Pause Break, Print Screen, Tab, Win, standalone Ctrl, Shift, Alt cannot be assigned as a hotkey.

Manual editing of "vlcrc" configuration file does not help, too.
From VLC source code http://git.videolan.org/?p=vlc.git;a=bl ... bf;hb=HEAD
the "Print" could be the magic word, but it does not work either.

Perhaps some VLC developer could explain something about it.

Rémi Denis-Courmont
Developer
Developer
Posts: 15328
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Editing vlcrc manually—how to type Print Screen?

Postby Rémi Denis-Courmont » 08 Apr 2014 20:58

Print Screen is not recognized by the VLC core. It was deemed useless since practically all operating systems grab that key such that application cannot use it in a normal fashion.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Editing vlcrc manually—how to type Print Screen?

Postby mederi » 08 Apr 2014 22:20

O.K.

Ludrax
Big Cone-huna
Big Cone-huna
Posts: 568
Joined: 07 Jul 2010 14:28

Re: Editing vlcrc manually—how to type Print Screen?

Postby Ludrax » 09 Apr 2014 00:46

I want to assign Print Screen to take video snapshots within VLC only (not as a global hotkey)
legacy RegisterHotKey?
An' if ain't broke, then don't try to fix it...

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Editing vlcrc manually—how to type Print Screen?

Postby mederi » 10 Apr 2014 19:14

Following AutoHotkey script sends Shift+s to active VLC media player window when Print Screen key is pressed:

Code: Select all

SetTitleMatchMode, 2 #IfWinActive VLC media player PrintScreen::send +s

WandersFar
New Cone
New Cone
Posts: 9
Joined: 12 Feb 2010 17:37

Re: Editing vlcrc manually—how to type Print Screen?

Postby WandersFar » 11 Apr 2014 09:24

Yeah, I eventually wound up writing a similar script to get around the limitation; was hoping for a VLC-only solution, though.

By the way, have you had any luck getting a consistent ahk_class for VLC? Depending on the video, window spy tells me it’s “ahk_class VLC MSW randomalphanumericstring” which basically renders ahk_class useless. I resorted to doing a title match like you did which is not ideal since it’ll match anything with VLC in the title: a browser window, a document, whatever.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 34 guests