06-10-2023, 05:24 PM
(06-09-2023, 09:31 PM)mnrvovrfc Wrote:My windows 10-64 HP has "pause" in upper left of right hand shift key.(06-07-2023, 09:31 AM)TempodiBasic Wrote: Hi
a little question to you QB64 friends...
I am not able to find key BREAK on my notebook keyboard... (I only found Canc, Stamp, Ins, Esc)
Should you run my little demo on your PC/notebook to test the Ctrl+Break option?
On H.P. laptops like mine the following works: [CTRL][Fn][SHIFT].
Doesn't matter which CTRL key, but the SHIFT key has to be the one for your right hand -- the larger of the two. Usually that is marked as "pause" on top-left corner of the key. [Fn][Right-SHIFT] does like [SHIFT][@] on the Radio Shack TRS-80/Tandy Color Computer LOL. Yes that computer had a key left all to the at-sign.
Those key combinations don't always work on Linux however.
I will try that with Ctrl + with TempodiBasic code:
OK ctrl+fn+pause does ID exit correctly BUT! TempodiBasic's program wouldn't let me go with spacebar.
Too long a _delay also.
So here is still another b+ mod to make things better
Code: (Select All)
foo = _Exit
Print "Welcome to the _EXIT test code!"
Print "Please press X on the window bar or / and Alt+F4 on keyboard or Ctrl+Break on keyboard and look at results"
Print "press Spacebar to quit program"
View Print 5 To 20
While _KeyDown(32) = 0
kb = _KeyHit
'_delay 2
food = _Exit
On food GOSUB X, CtrlBreak, XCtrlBreak ', AltF4
_Limit 30
Wend
Print "You have successfully exited main loop and quit, thanks to bplus mod!"
End
X:
Print "You have clicked on X of the window or pressed Alt+F4"
Return
'AltF4:
'Print "You have pressed Alt + F4 on keyboard"
'Return
CtrlBreak:
Print " You have pressed Ctrl+ Break on keyboard"
Return
XCtrlBreak:
Print "You have pressed Ctrl+Break on keyboard and you have clicke on X of the window"
Return
b = b + ...