Code: Select all
F12::
KeyWait, F12, T0.6
if A_TimeSinceThisHotkey >= 500 ; in milliseconds
How can I achieve this while at the same time still having it only work after a long-press?
Code: Select all
F12::
KeyWait, F12, T0.6
if A_TimeSinceThisHotkey >= 500 ; in milliseconds
Code: Select all
index:=0
F12 Up::
Tooltip,% ++Index
return
Code: Select all
Index:=0
F12::
StartPress:=A_TickCount
keywait,F12
if((A_TickCount-StartPress)>500){
ToolTip,% ++Index
}
return
Code: Select all
Index:=0
F12::
StartPress:=A_TickCount
while(GetKeyState("F12","P")){
if((A_TickCount-StartPress)>=500){
ToolTip,% ++Index
break
}else {
Sleep,10
}
}
keywait,F12
return
Code: Select all
Index:=0
F12::
KeyWait,F12,T0.6
if(A_TimeSinceThisHotkey>=500){
ToolTip,% ++Index
}
KeyWait, F12
return
Users browsing this forum: Google [Bot] and 282 guests