• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 10:06
CET 16:06
KST 00:06
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2BGE Stara Zagora 2026 announced15[BSL21] Ro.16 Group Stage (C->B->A->D)4Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win3RSL Season 3: RO16 results & RO8 bracket13
StarCraft 2
General
Chinese SC2 server to reopen; live all-star event in Hangzhou Maestros of the Game: Live Finals Preview (RO4) BGE Stara Zagora 2026 announced Weekly Cups (Nov 24-30): MaxPax, Clem, herO win SC2 Proleague Discontinued; SKT, KT, SGK, CJ disband
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament RSL Offline Finals Info - Dec 13 and 14! StarCraft Evolution League (SC Evo Biweekly) RSL Offline FInals Sea Duckling Open (Global, Bronze-Diamond)
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress Mutation # 500 Fright night Mutation # 499 Chilling Adaptation
Brood War
General
BW General Discussion Which season is the best in ASL? Data analysis on 70 million replays BGH Auto Balance -> http://bghmmr.eu/ [ASL20] Ask the mapmakers — Drop your questions
Tourneys
[Megathread] Daily Proleagues [BSL21] RO16 Group D - Sunday 21:00 CET [BSL21] RO16 Group A - Saturday 21:00 CET [BSL21] RO16 Group B - Sunday 21:00 CET
Strategy
Current Meta Game Theory for Starcraft How to stay on top of macro? PvZ map balance
Other Games
General Games
ZeroSpace Megathread Stormgate/Frost Giant Megathread Nintendo Switch Thread The Perfect Game Path of Exile
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas TL Mafia Community Thread
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Things Aren’t Peaceful in Palestine The Big Programming Thread Artificial Intelligence Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Where to ask questions and add stream? The Automated Ban List
Blogs
Physical Exertion During Gam…
TrAiDoS
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1095 users

F5 Key doesn't work without Fn

Forum Index > Tech Support
Post a Reply
Flonomenalz
Profile Joined May 2011
Nigeria3519 Posts
June 26 2012 23:37 GMT
#1
Hello again techies

Just got a new HP Pavilion dv7 notebook, and the F5 key is literally a blank key. Like, it has no icon on it or anything, and it does not work without the Fn key. I have already gone to the Bios and set it so my f1-f12 work without Fn, and all of them do EXCEPT F5, for whatever strange reason. This is really, really annoying.

Any idea how to fix this?
I love crazymoving
Pseudoku
Profile Joined March 2011
Canada1279 Posts
June 27 2012 00:16 GMT
#2
Not sure if you're describing this for what you've attempted: http://h10025.www1.hp.com/ewfrf/wc/document?cc=pl&lc=pl&dlc=pl&docname=c02035108

But as a last resort, you could probably capture which key code gets sent from that key (if that key actually registers when pressed without the Fn key) and then programmatically send the F5 key when that occurs.
Logic fails because we are lazy.
Flonomenalz
Profile Joined May 2011
Nigeria3519 Posts
June 27 2012 00:20 GMT
#3
On June 27 2012 09:16 Pseudoku wrote:
Not sure if you're describing this for what you've attempted: http://h10025.www1.hp.com/ewfrf/wc/document?cc=pl&lc=pl&dlc=pl&docname=c02035108

But as a last resort, you could probably capture which key code gets sent from that key (if that key actually registers when pressed without the Fn key) and then programmatically send the F5 key when that occurs.

Yep I've already done what is posted in that link.

And I have no idea how to do what you posted as a last resort, please explain =(
I love crazymoving
lSasquatchl
Profile Joined February 2011
United States309 Posts
June 27 2012 00:57 GMT
#4
Try booting it in safe mode after you make sure the FN functions are still disabled.
Pseudoku
Profile Joined March 2011
Canada1279 Posts
June 27 2012 02:07 GMT
#5
On June 27 2012 09:20 Flonomenalz wrote:
Show nested quote +
On June 27 2012 09:16 Pseudoku wrote:
Not sure if you're describing this for what you've attempted: http://h10025.www1.hp.com/ewfrf/wc/document?cc=pl&lc=pl&dlc=pl&docname=c02035108

But as a last resort, you could probably capture which key code gets sent from that key (if that key actually registers when pressed without the Fn key) and then programmatically send the F5 key when that occurs.

Yep I've already done what is posted in that link.

And I have no idea how to do what you posted as a last resort, please explain =(


I guess you could try AutoHotKey: http://www.autohotkey.com/
It is capable of remapping keys: http://www.autohotkey.com/docs/misc/Remap.htm

Try using the AutoScriptWriter to see if it detects what key that button sends.

If AutoScriptWriter doesn't detect the key, you'd probably have to create a program that hooks the keyboard.

+ Show Spoiler +

Here's some C# code... TL doesn't preserve indents

+ Show Spoiler +

using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Diagnostics;

namespace Capture
{
static class Program
{

const int yourF5Key = 1234; // Replace 1234 with the actual value of the button
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
_hookID = SetHook(_proc);
UnhookWindowsHookEx(_hookID);
}

/****************************************/
private const int WH_KEYBOARD_LL = 13;
//private const int WH_KEYBOARD_LL = 13;
private const int WM_KEYDOWN = 0x0100;
private const int VK_F1 = 0x70;
private static LowLevelKeyboardProc _proc = HookCallback;
private static IntPtr _hookID = IntPtr.Zero;

private static IntPtr SetHook(LowLevelKeyboardProc proc)
{
using (Process curProcess = Process.GetCurrentProcess())
using (ProcessModule curModule = curProcess.MainModule)
{
return SetWindowsHookEx(WH_KEYBOARD_LL, proc,
GetModuleHandle(curModule.ModuleName), 0);
}
}

private delegate IntPtr LowLevelKeyboardProc(
int nCode, IntPtr wParam, IntPtr lParam);

private static IntPtr HookCallback(
int nCode, IntPtr wParam, IntPtr lParam)
{

if (nCode >= 0)
{
Keys number = (Keys)Marshal.ReadInt32(lParam); // Stores the key pressed into the number variable
if (number == (Keys)yourF5key){ // Check for your "F5" button
SendKeys.Send("{F5}"); // Sends F5
}

}
return CallNextHookEx(IntPtr.Zero, nCode, wParam, lParam);

}

[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
private static extern IntPtr SetWindowsHookEx(int idHook,
LowLevelKeyboardProc lpfn, IntPtr hMod, uint dwThreadId);

[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
private static extern bool UnhookWindowsHookEx(IntPtr hhk);

[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
private static extern IntPtr CallNextHookEx(IntPtr hhk, int nCode,
IntPtr wParam, IntPtr lParam);

[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
private static extern IntPtr GetModuleHandle(string lpModuleName);
}
}



You'd have to find out the value of the number variable when you press your "F5" button (can be done in debugging mode in an IDE such as Visual Studio, just add a breakpoint after this and check for the value of number):
+ Show Spoiler +
Keys number = (Keys)Marshal.ReadInt32(lParam);


And then modify the conditional statement so that when that "F5" button's number is matched
+ Show Spoiler +
if (number == yourF5keynumber)


The program sends the F5 key.
+ Show Spoiler +
SendKeys.Send("{F5}");
Logic fails because we are lazy.
Plunderwondr
Profile Blog Joined May 2012
Canada45 Posts
June 27 2012 06:44 GMT
#6
Yeah this is a popular thing with Dell laptops , you just have to go into the BIOS and change that F keys have priority over FN keys so that you have to press the FN button to use Functions ... silly isnt it ? xD
lSasquatchl
Profile Joined February 2011
United States309 Posts
June 28 2012 15:24 GMT
#7
My absolute FAVORITE thing is when you try to help someone with their "tech" problem and they never reply.
Plunderwondr
Profile Blog Joined May 2012
Canada45 Posts
June 28 2012 20:26 GMT
#8
Once your problems solved who cares anymore right ?
DJFaqU
Profile Joined May 2011
466 Posts
June 28 2012 21:22 GMT
#9
On June 29 2012 00:24 lSasquatchl wrote:
My absolute FAVORITE thing is when you try to help someone with their "tech" problem and they never reply.


Second only to "never mind guys, I fixed it".
Plunderwondr
Profile Blog Joined May 2012
Canada45 Posts
June 29 2012 01:55 GMT
#10
I work at a computer repair store and my favourite thing to hear is
"It won't work"
Okay so whats wrong with it?
"i dunno it just doesnt work"

ಠ_ಠ
Flonomenalz
Profile Joined May 2011
Nigeria3519 Posts
Last Edited: 2012-06-29 19:21:48
June 29 2012 19:07 GMT
#11
Actually, it's not that I stopped replying, it's that I had some stuff to take care of school wise, and the F5 problem kind of took the back seat in my mind in the midst of all the work I was doing, I apologize.

I'll already changed the settings in the Bios Plundr, I said that in the OP.

I have booted it in safe mode and it's disabled. Like I said, all my other F keys work without Fn after I changed the Bios EXCEPT for F5, it just does nothing.

Pseudoku thanks for the response, checking that out now, and wow you even wrote C# code for me ^.^ Unfortunately I've only learned Java up till now (just started learning Java's GUI after learning the basics of it) so I don't FULLY understand the C# code, but I get the gist of it. I'm going to learn from it though, thanks so much for that, quick question, is "using" in C# the same thing as "import" in Java?).

edit: Aha, I simply remapped the key using autohotkey, I will run that C# code though later tonight to find the issue with F5. Thank you all so much for your responses, and I especially thank you pseudoku
I love crazymoving
Pseudoku
Profile Joined March 2011
Canada1279 Posts
June 30 2012 00:03 GMT
#12
Yes, using is essentially import.
C# is quite similar to Java.

Glad to hear that Autohotkey worked.

I actually just copied and pasted some code I already use for capturing Print Screen (since that button doesn't get picked up as a KeyEvent...) and modified it.
Logic fails because we are lazy.
Plunderwondr
Profile Blog Joined May 2012
Canada45 Posts
June 30 2012 02:41 GMT
#13
Ah i misread that, sorry bout that Flono!
Please log in or register to reply.
Live Events Refresh
Next event in 55m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Lowko438
LamboSC2 176
ProTech132
StarCraft: Brood War
Britney 41771
Calm 3874
Jaedong 2199
GuemChi 1310
EffOrt 936
Shuttle 812
Mini 795
Soulkey 647
Soma 472
firebathero 344
[ Show more ]
Rush 285
ZerO 278
Snow 272
BeSt 232
Zeus 128
Sharp 91
Hyun 87
PianO 71
BRAT_OK 70
ggaemo 66
yabsab 64
Barracks 50
Sea.KH 45
Mong 45
sorry 35
Killer 31
hero 30
Aegong 29
soO 24
Sacsri 19
ToSsGirL 18
Terrorterran 17
Bale 16
scan(afreeca) 13
Shinee 11
ajuk12(nOOB) 10
JulyZerg 9
SilentControl 9
HiyA 6
Dota 2
Gorgc7298
qojqva3003
singsing2639
Dendi743
syndereN252
XcaliburYe136
420jenkins118
Counter-Strike
fl0m4749
zeus3712
markeloff61
oskar42
Heroes of the Storm
Khaldor92
Other Games
hiko1112
B2W.Neo1029
crisheroes545
Hui .216
Mew2King83
ArmadaUGS79
QueenE34
ZerO(Twitch)14
DeMusliM2
Mlord1
Organizations
StarCraft 2
WardiTV689
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 3077
League of Legends
• Jankos2059
Other Games
• WagamamaTV243
Upcoming Events
OSC
55m
Demi vs Mixu
Nicoract vs TBD
Babymarine vs MindelVK
ForJumy vs TBD
Shameless vs Percival
Replay Cast
8h 55m
Korean StarCraft League
1d 11h
CranKy Ducklings
1d 18h
WardiTV 2025
1d 20h
SC Evo League
1d 21h
BSL 21
2 days
Sziky vs OyAji
Gypsy vs eOnzErG
OSC
2 days
Solar vs Creator
ByuN vs Gerald
Percival vs Babymarine
Moja vs Krystianer
EnDerr vs ForJumy
sebesdes vs Nicoract
Sparkling Tuna Cup
2 days
WardiTV 2025
2 days
[ Show More ]
OSC
2 days
BSL 21
3 days
Bonyth vs StRyKeR
Tarson vs Dandy
Replay Cast
3 days
Wardi Open
3 days
StarCraft2.fi
4 days
Monday Night Weeklies
4 days
Replay Cast
4 days
WardiTV 2025
4 days
StarCraft2.fi
5 days
PiGosaur Monday
5 days
StarCraft2.fi
6 days
Tenacious Turtle Tussle
6 days
The PondCast
6 days
WardiTV 2025
6 days
Liquipedia Results

Completed

Proleague 2025-11-30
RSL Revival: Season 3
Light HT

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
CSCL: Masked Kings S3
Slon Tour Season 2
Acropolis #4 - TS3
META Madness #9
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
Kuram Kup
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.