Is there any way to disable the
Print Screen
button from keyboard (without breaking it the key of-course). I am using the windows 7.
I need it because increase the security of my database which is used by few employees.
You can disable any key if you manipulate the scancode map registry key. A small tutorial with explanation of the settings can be found here (a more detailed explanation of the scancode map here).
For the print screen key in particular you can create a new textfile containing:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,04,00,00,00,00,00,2a,e0,00,00,37,e0,\
00,00,54,00,00,00,00,00
and save it as disable_printscreen.reg. You can then import it, as it is described here.
If you want to undo your changes you can make a file with the content:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=-
Or delete the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout\Scancode Map manually.
As with all changes in the registry be sure that you understand what you are doing and make a backup first.
EDIT: Sorry the link I had posted first was not good enough.
Steps to disable the print screen key:
Click Start, click Run, type "regedt32" (without the quotation marks),
and then click OK.
On the Windows menu, click "HKEY_LOCAL_ MACHINE on Local Machine".
Click the System\CurrentControlSet\Control folder, and then
double-click the Keyboard Layout folder.
On the Edit menu, click Add Value, type in "Scancode Map" (without the
quotation marks), click REG_BINARY as the Data Type, and then click
OK.
Type "0000000000000000040000002AE037E0000037E00000540000000000" (without
the quotation marks) in the Data field, and then click OK.
Close the Registry Editor and restart the computer.
Related
I have made a standalone exe using py-installer. It's easy to add my exe to the start menu. Simply add a shortcut to my program in the following directory.
os.getenv("PROGRAMDATA") + "\\Microsoft\\Windows\\Start Menu\\Programs"
However, my exe does not show up under Control Panel -> Programs -> Programs and Features. These applications let you right click to uninstall. How can I add my application to this list? I have made a standalone uninstall exe using py-installer that I want to run when the user clicks uninstall. How I can do this in a clean way? I think I have to add some registry keys. I always sign my exes.
1.Use Registry Editor (Regedit.exe) to view the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
2.Double-click the UninstallString registry value, copy the contents of the Value Data box by selecting the contents and pressing CTRL+C, and then quit Registry Editor.
3.Click Start, click Run, press CTRL+V to paste the uninstall command, and then click OK.
Some programs create a folder under the Winnt folder that contains a "$" character at the start and end of the folder name. This folder may contain an uninstall program that you can run to remove the program you previously installed on your computer. Note that these folders are usually hidden, and that you may need to configure Windows Explorer to view hidden files and folders. To do so, right-click Start, click Explore, click Options on the View menu, and then click Show all files.
I want to change the key binding set in Xcode 11 some are editable bur some are greyed which I cannot edit, how to unlock it.
Because they are similar to other editable shortcuts thus are treated as something like dependent variables.
In the File Menu section for example, the Close Tab (CMD+W) shortcut is editable. Meanwhile, the similar shortcuts (Close Other Tabs (Option+CMD+W), Close Window (Shift+CMD+W), Close Other Windows (Control+Option+CMD+W), Close All Windows (Option+Shift+CMD+W)) are not editable (greyed).
But when I change Close Tab from (CMD+W) to (CMD+M), the W in the keys of all those similar shortcuts will be changed accordingly to M.
You can verify this on your computer.
To be clear, you cannot edit key bindings that are grayed out. They are generated based on the preceding setting. For example, if the preceding settings is ⌘2 then the grayed out setting below may add ⌥ to become ⌘⌥2.
If you're astonished at how poor this design is, then rest assured that your understanding is correct.
As a workaround, I use BetterTouchTool to remap my shortcuts. For example to "close other tabs" I remap ⌘⇧W (my preferred shortcut) to ⌥⌘W (Xcode's default) and have it only apply to the Xcode app.
When I try to use the shortcut for moving lines up/down (Ctrl+Alt+Shift+↑/↓), it highlights the code and shows the tooltip message "Use Up/Down to move text line" but nothing happens. If however I try the same command via the menu bar (Resharper > Edit > Rearrange Code > Move Up) it moves the selected lines as expected.
I used to use this feature all the time so I find this bug very annoying. Apparantly, others also experience this (see comments for Resharper move line up down not working) but I haven't been able to find a solution for it. Resetting keyboard layouts and reapplying VS keyboard schemes doesn't work.
Has anyone been able to resolve this issue?
[EDIT]
Reason of this is issue (when you are logging to machine with VS and Resharper via Remote Desktop) is that Ctrl-Alt-Left Arrow/Ctrl-Alt-Right Arrow combinations are not sent to your virtual machine
There are two workarounds:
My first soultion (change combination see below)
You can use AutoHotKey script as stated in thread:
https://superuser.com/questions/327866/remote-desktop-sending-ctrl-alt-left-arrow-ctrl-alt-right-arrow-to-the-remote-p
[/EDIT]
Reason is
duplication of the same hotkeys which could be found in 'Shortcut currently used by:' combobox
Fix is
I described process for _MoveRight shortcut - for other shortcuts it works the same
STEP 1 Check for conflicting changes
seeImage
go to Tool --> Options --> Keyboard
in field 'Show commands containing' find your command (moveright in example)
click in field 'Press shortcut keys' press ALT + RIGHT ARROW
in field Shortcut currently used by you will find conflicting shortcut -
Edit.CompleteWord...
STEP 2 Now we need to delete this shortcut
in field 'Show commands containing' write Edit.CompleteWord
you should see ALT + RIGHT ARROW shortcut in field 'Shortcuts for selected command
click Remove button
STEP 3 Now we need to add our shortcut to _MoveRight function
in field 'Show commands containing' find your command (moveright in example)
click in field 'Press shortcut keys' press ALT + RIGHT ARROW
click Assign
I have a partition for photos and at some point one of my little brothers encrypted almost half of the photos(via Right click on folder-> properties -> advanced -> encrypt).So now i have some 15 folders with photos that i can't open. I did not observe the change and i changed the OS. Now when i try to open a photo it says "Access denied!". The photos appear now with green title and in properties, they have the encrypted radio button checked and grayed. Is there any chance to recover these files?
Please try below step to enable the encrypt radio button.
In my case I checked with window 8 OS.
1. Press Windows Key + R combination, type put regedit in Run dialog box and hit Enter to open the Registry Editor.
2. In the left pane of Registry Editor, navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
3. In the right pane of above shown window, look for the NtfsDisableEncryption named registry DWORD(REG_DWORD), since you’re facing the issue, you’ll find that this DWORD having its Value data set to 1. Double click on the same DWORD to modify:
4. In the above shown window, change the Value data to 0. Click OK. You may now close the Registry Editor and reboot to get fixed.
For additional reference click this Enableing encrypt option
Explorer of Windows 7 uses a new light-blue bar with buttons like "Organize", "Share", "New Folder" etc.
How can I create a new button ? Do I need to create a plugin for explorer.exe, and if, how do I do it (using Visual Studio .NET) ?
Or is it a simple registry key I have to set which points to an exe or bat?
Thanks in advance and best regards
It's a registry key, but not quite so simple. You have to do several steps to add one button.
You may have noticed that the Win7 Explorer adjusts its toolbar to match the content that is being displayed. For example the buttons shown for the control panel folders are different than the ones for documents or the music library folder. You can find a large list of different folder types under the registry key
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes
Click on each UID shown there to find out what folder type it is for. For example here you see the entry for folders in the generic library type:
So the first thing you have to do is to find the folder type for which you want to add your own button.
Once you found the right UID, you might have to take ownership of those keys. Otherwise you won't be able to modify them:
Right-click on that key and choose Permisssions...
Click the Advanced button.
Click the Owner tab.
Under Change Owner to: select Administrators.
Click Apply and verify that "Current Owner" is set to Administrators.
Click OK to save the change.
Back in the Permissions dialog, click Administrators and then click (to check it) Full Control
Click OK to save the settings and close the dialog box.
The next step is to create the keys and values necessary for your own button:
Add a new key, TasksItemsSelected
Add a new key, TasksItemsSelected\0
Create a new GUID (use guidgen.exe) for your command.
add the key TasksItemsSelected\0\<yourguid>, then add the strings Title and InfoTip and give them the appropriate values. You can also set an icon here, using the string Icon with the value pointing to an icon file.
Add the keys TasksItemsSelected\0\<yourguid>\shell\InvokeTask\command
as default value of the command key, enter the command you want to execute.
Now your registry entry should look something like this:
When the command runs, it will receive at least two parameter values.
%1 -- The path of the folder that was being displayed
%2 -- The pathname of the file that was selected.
If you select more than one file before clicking the mycommand button, then the subsequent filenames will be in subsequent parameters.
And last but not least: if you want to add your own button for situations where nothing is selected, do everything as mentioned above, but use the registry key TasksNoItemsSelected instead of TasksItemsSelected