06-07-2023, 09:31 AM
(This post was last modified: 06-07-2023, 09:32 AM by TempodiBasic.
Edit Reason: miss to include the code
)
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?
Thanks
Moreover pressind Alt + F4 (Windows command to close the program) _EXIT retruns 1. Is It right?
Thanks for answers and testing.
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?
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 kb <> 32
kb = _KeyHit
_Delay 2
food = _Exit
On food GOSUB X, AltF4, CtrlBreak, XCtrlBreak
Wend
End
X:
Print "You have clicked on X of the window"
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
Moreover pressind Alt + F4 (Windows command to close the program) _EXIT retruns 1. Is It right?
Thanks for answers and testing.