Using the example provided by THM creator HERE Its the second last answer in the thread.
I created something like this:
Code: Select all
#singleinstance, force
#NoEnv
#Persistent
#include <TapHoldManager>
hotkey, if, GetKeyState("F7", "P")
THMTEST:= new TapHoldManager( 200, 400, 2)
THMTEST.add("s", Func("Mykey"))
Mykey(isHold, taps, state)
{
if (taps == 1)
{
if (isHold == 0)
{
Tooltip, S pressed while F7 is down
}
else
{
if (state)
{
}
; else
; {
; }
}
}
}
Error Parameter 3 must be blank in this case
I have been trying to get this to work some time and I am at a loss.>[7]hotkey, if, GetKeyState("F7", "P")
The person evilC proposed this solution to never confirmed if it worked for him or not.
Any help would be wellcome!