I have problems using the function keys :(

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Manuhk
Posts: 3
Joined: 26 Mar 2023, 21:08

I have problems using the function keys :(

Post by Manuhk » 01 Apr 2023, 01:04

Hello :D, I have problems using the function keys example
They work for me on the first press then no longer, trying to work again or it gets stuck as if the control was stuck on the keyboard
maybe there is a way to name the key?

Code: Select all

^+F13::
If WinActive("ahk_exe board.exe")
{
    SendInput, ^!+h
	return
}
else
{
		SendInput {Ctrl down}{i}{Ctrl up}
}
return
[Mod edit: Moved topic to v1 help.]

User avatar
mikeyww
Posts: 26882
Joined: 09 Sep 2014, 18:38

Re: I have problems using the function keys :(

Post by mikeyww » 01 Apr 2023, 06:13

Hello,

Try this test script by itself with no changes, no other code, and no other scripts running. It seemed to work here. You can also check the :arrow: KeyHistory.

Code: Select all

#Requires AutoHotkey v1.1.33

^+F3 Up::
KeyWait Ctrl
KeyWait Shift
If WinActive("ahk_exe notepad.exe") {
 Send ^!+h
 SoundBeep 1500
} Else {
 Send ^i
 SoundBeep 1000
}
Return

Post Reply

Return to “Ask for Help (v1)”