QB64 Phoenix Edition
On Exit question - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3)
+---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10)
+---- Thread: On Exit question (/showthread.php?tid=1713)

Pages: 1 2 3 4 5 6


RE: On Exit question - TempodiBasic - 06-22-2023

@Bplus

Quote:Well we have quite a difference of 2 secs in your original code and 30 times a second in mine.

2 secs was much too slow a response time, in anyone's system I would imagine?

I imagine the _Limit number would fit any keypress response needed in the real application we are testing for here.

BTW how did you get from foo to food? were you hungry because you had spaghetti on your mind? [Image: smile.png]
Yeah, surely 2 secs is too much for a resiponse time of any O. system, 
but are you able to Press Ctrl+Break and click on X of window of application in less then 2 seconds?
That sloooooow time is for testing the combination of the 2 way to close the application window.

Foo  -> Food  yeah food gives more joy  so here a napoletan recipe for spaghetti with tomato and squid

[Image: spaghetti-con-i-polipetti.jpg]

following the link you can make this napoletan recipe and get its delicious taste.
or if you prefer can eat Sorrento's gnocchi 

[Image: Gnocchi-alla-sorrentina-650x433-wm.jpg]

Sorry but now it is lunch time.


RE: On Exit question - bplus - 06-22-2023

"but are you able to Press Ctrl+Break and click on X of window of application in less then 2 seconds?"

God help me if I ever have to use that to quit! I have no Break button marked on keyboard and don't need it to quit a program when top right X can be clicked or Alt + F4 works.


RE: On Exit question - TempodiBasic - 06-22-2023

@Bplus
Hey Man
you're right 
buuuut that code was born to  test on _EXIT options, just a demonstration and not a serious program.

_EXIT wiki  

Quote:0 = no exit request has been made since _EXIT monitoring began in the program.
1 = exit attempted by clicking the window X (close) button since last function call. (Bit 0 set)
2 = exit attempted with CTRL + BREAK since last call. (Bit 1 set)
3 = both CTRL + BREAK and the X box have been used since last call. (Bit 0 and 1 set)
Thanks for your replying
Here an idea for dinner

[Image: Parmigiana-di-melanzane-napoletana.jpg]

foo --->food