ah..that makes sense. i've been looking through the scrips, the notes are very helpful. how did you learn how to use this? is there good documentation somewhere?
i changed the timeout to 3 and it is working great, i couldn't be happier with it now. i am using a translucent light up button for this function and now i have to decided if i want to label it Pause or Exit.
while we are at it, any chance you could help me clean up my just plain 2 second exit script? I have two cabinets...the one we have been working on is for my showcase cabinet where i only have 1 button for both functions. on my vertical classics cabinet, i have dedicated pause and exit buttons. even though the kids don't play that cabinet as much, i still think it would benefit from a delay on the exit button. (the cabinet sits next to a set of stairs, my kids can reach over the hand rail and hit the exit button.(right in the middle of an epic millipede game)
i could maybe figure it out by cutting part of the code from your script, but i figured i'd probably be better off to let the pro's handle this. here is the script i am using now. it seems to work fine, but seeing the problems that i ran into the with the other one, i figured cleaning it up a bit might be a good idea.
;HoldEscape:
toggletimer = 0
esckill = 1
SetKeyDelay, 10, 20
$n::
if toggletimer = 0
SetTimer, resettimer, 1000
toggletimer++
if toggletimer > 3
goto, toggleesckill
if esckill = 1
{
tt=0 ; set time to 0
loop,100
{
GetKeyState, s , n, p
if s=U
Break
tt+=25
sleep 25
}
if tt>=2000 ; if key pressed for 2 or more sec
{
send, {n}
toggletimer = 0
sleep 1200
}
}
else
{
send, {n}
}
return
resettimer:
toggletimer = 0
return
toggleesckill:
soundplay, *48
toggletimer = 0
esckill *= -1
sleep 500
return
____________________________
i am using the "n" key as the exit button on this cabinet. thanks for your help...this is so awesome.