RSS

Tag Archives: Windows 10

HP Keyboard Fn key toggle – no option in BIOS

I ran into a small problem. How to turn off multimedia keys on included wireless keyboard and instead use fn keys. (HP Pavilion All In One, HP Pavilion gaming PC- Windows 10)

Most suggested solution was to enable or disable action key option in BIOS. But this option was not found in my BIOS.

Some people on google said holding down the Fn key and tapping the Caps Lock or fn+esc will solve this issue. but did not work in my case.

Then i read the following solution on an HP forum. Not a solution by HP.
Some user came up with this workaround.

This worked for me. Copy-pasting the post below for future reference.


” I found a pretty decent workaround about this Fn lock issue after hunting down for a while. The workaround is sort of sophisticated, so you can give it a shot if you are really dedicated to solving this Fn lock issue.

The workaround method involves the use of a program called AutoHotkey.

AutoHotkey uses hooks to map the media function key presses back to F keys and F key presses into media functions keys to achieve the effect of “unlocking” the Fn lock.
My HP keyboard is Pavilion Wireless Keyboard 600 (black). I really like the white version of this soft & short-distance chiclet keyboard when I was trying it in BestBuy, but the white version is only sold together with the all-in-one. That means, I am using this HP keyboard with my custom desktop (non-HP brand) tower and unable to fix the Fn lock issue in the BIOS.

The attached code is written based on the association of media function keys and F keys on Pavilion Wireless Keyboard 600 only. Other models or brands of keyboards will likely to have different associations. You may look into the tutorial of AutoHotkey to customize your own code.

1. Go to https://www.autohotkey.com/download/ to download AutoHotkey.
2.Right-Click on your desktop.
3. Find “New” in the menu.
4. Click “AutoHotkey Script” inside the “New” menu.
5. Give the script a new name. It must end with a .ahk extension. For example: MyScript.ahk
6. Find the newly created file on your desktop and right-click it.
7. Click “Edit Script”.
8. A window should have popped up, probably Notepad. If so, SUCCESS!
9. Copy and paste the attached code into Notepad, and save the file.
10. Double-click the file/icon in the desktop to run it.
11. Create a shortcut of this .ahk file and move the shortcut to the “Startup” folder so that the script runs automatically every time you start windows.

The drawback of this method is that I haven’t found a way to revert the F7 & F8 keys. Therefore, only F1 through F5 and F8 through F12 can be reverted to achieve the effect of unlocking Fn lock by this code.

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#InstallKeybdHook
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

; Below based on HP Pavilion Wireless Keyboard 600

; F1 | Mute
VOLUME_MUTE::F1
F1::VOLUME_MUTE

; F2 | Volume Down
VOLUME_DOWN::F2
F2::VOLUME_DOWN

; F3 | Volume Up
VOLUME_UP::F3
F3::VOLUME_UP

; F4 | Last Song
MEDIA_PREV::F4
F4::MEDIA_PREV

; F5 | Play/Pause
MEDIA_PLAY_PAUSE::F5
F5::MEDIA_PLAY_PAUSE

; F6 | Next song
MEDIA_NEXT::F6
F6::MEDIA_NEXT

; F7 | Brightness Down

; F8 | Brightness Up

; F9 | Search
BROWSER_SEARCH::F9
F9::BROWSER_SEARCH

; F10 | Toggle display mode for multi-screen
<#Tab::
SendInput {F10}
Return

; F11 | ???
<^<#F21::
SendInput {F11}
Return

; F12 | System Settings
<#F21::
SendInput {F12}
Return

Credit: Crizalis

 
19 Comments

Posted by on November 19, 2019 in Windows

 

Tags: ,

Reset a Windows 10 password with CMD

requirement = installation Disk of any windows 7,8,8.1,10

boot into the boot disk. instead of install we will select repair.

then go to trouble shoot options. search for cmd

when you find it. launch it. by default cmd will open to a directory name x:> we will need to change that to the drive where windows is installed. to do this do the following
type in    c:
this will get us into C drive. type in dir to list all the content. if the list doesn’t show the items of Windows partition. you are not in the right drive. change the drive, D: or E: do this until you find the drive.

now we will move to the the system32 folder cd windows\system32 when we get here. rename the osk.exe file to osk.old. to do this run the follwing command.

rename osk.exe osk.old

now rename cmd.exe to osk.exe
same as above
rename cmd.exe osk.exe

As per design when we are on the login screen of windows there is a on screen keyboard (osk.exe) available to us. by following the above steps we have just replaced that keyboard with command prompt.

now restart and boot into the system (not the boot disk). when we are on the login screen with the user account to which we forgot the password.

open the accessibility option and click on on screen keyboard. which will launch cmd.exe

to list all users of the system :

net user

when we know the actual username of the account we want to change password.

net user [USERNAME] *

[USERNAME] refer to the account whose password we are trying to change.

if you are planning to change password and enable the built in administrator
net user administrator /active:yes
is a compulsory step.

after running the above command a new password prompt is shown. assign a new password for the account. close the cmd. and use the new pass to login.

after this don’t forget to change everything as they were.

to do this; boot into the os-disk and undo all the changes.

rename osk.exe cmd.exe
rename osk.old osk.exe

deactivate the built in administrator if you no longer need it.

thats all!

 
2 Comments

Posted by on September 28, 2017 in Windows

 

Tags: , , , , ,

Windows Photo viewer on Win 10

copy+paste the following code to a notepad file and save it as a “.reg” file. then run as administrator. this will enable photo-viewer.  after it is enabled go to control panel > default programs> select “windows photo viewer” > set default to all applicable extensions. then open an image it may open in the new image viewer. to change this go to properties of the image file and change default app.

NB: even after it got enabled ‘old photo viewer ‘ may not appear in ‘new default apps menu of win 10″

 Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll]

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell]

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open]
"MuiVerb"="@photoviewer.dll,-3043"

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\
6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\
00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,\
25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,50,00,68,00,6f,\
00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5c,00,50,00,68,00,\
6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,65,00,72,00,2e,00,64,00,6c,00,6c,\
00,22,00,2c,00,20,00,49,00,6d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\
5f,00,46,00,75,00,6c,00,6c,00,73,00,63,00,72,00,65,00,65,00,6e,00,20,00,25,\
00,31,00,00,00

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open\DropTarget]
"Clsid"="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}"

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\print]

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\print\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\
6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\
00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,\
25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,50,00,68,00,6f,\
00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5c,00,50,00,68,00,\
6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,65,00,72,00,2e,00,64,00,6c,00,6c,\
00,22,00,2c,00,20,00,49,00,6d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\
5f,00,46,00,75,00,6c,00,6c,00,73,00,63,00,72,00,65,00,65,00,6e,00,20,00,25,\
00,31,00,00,00

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\print\DropTarget]
"Clsid"="{60fd46de-f830-4894-a628-6fa81bc0190d}" 
 
Leave a comment

Posted by on September 10, 2017 in Windows

 

Tags: , , ,