|is there a way to avoid program abortion if EXIT-KEY pressed
|Page 1 of 1|
|Author:||Ford Prefect [ Sat Apr 26, 2008 10:23 am ]|
|Post subject:||is there a way to avoid program abortion if EXIT-KEY pressed|
is there a way to avoid program abortion if Exit Key is pressed?
I want the program to continue although the Exit Key is pressed,
but if I wrote
this command line is completely ignored...
Thx in advance!
|Author:||Koldo [ Sat Apr 26, 2008 11:42 am ]|
You can use nNxtExitClicks variable
"Holds the number of 'clicks' of the EXIT button required to abort a program. Default value is one for compatibility with standard firmware.
This variable allows end user programs to use the EXIT button. If you set the variable to 'N' (where 'N' is greater than 1) then the first 'N-1' consecutive clicks of the EXIT button can be handled by the application program. On the N-th consecutive click the firmware will automatically EXIT (i.e. end) your program.
Having the firmware perform the check ensures that, even if there is an error in your program, you can always EXIT your program. But it also easily allows your program to have access to the EXIT button."
|Author:||Ford Prefect [ Sat Apr 26, 2008 6:48 pm ]|
and it works just as you wrote!
thx a lot!
|Page 1 of 1||All times are UTC - 5 hours [ DST ]|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group