Re: [fpc-pascal] Pause Key

2023-04-16 Thread James Richters via fpc-pascal
It occurs to me that since Pause is independent of keypressed, I could actually us it as an extra modifier key if I wanted to... "Pause-A" could be different than "A", and also different than "CRTL-A" or "ALT-A", in fact I could do "Pause-CTRL-ALT-A" and have that be different than

Re: [fpc-pascal] Pause Key

2023-04-15 Thread Dennis Lee Bieber via fpc-pascal
On Sat, 15 Apr 2023 14:23:12 +0300, Nikolay Nikolov via fpc-pascal declaimed the following: >Actually, the Linux console (but not X11!) uses Scroll Lock to pause the >console output, pretty much the same way DOS and BIOS used the Pause >key. Why didn't Linus Torvalds use the Pause key is

Re: [fpc-pascal] Pause Key

2023-04-15 Thread Nikolay Nikolov via fpc-pascal
On 4/14/23 20:38, Virgo Pärna via fpc-pascal wrote: On Thu, 13 Apr 2023 20:53:09 -0400, Travis Siegel via fpc-pascal wrote: I know of no way to obtain the pause key status under windows.  I can Considering, that only Caps Lock, Scroll Lock and Num Lock keys have status lights on

Re: [fpc-pascal] Pause Key

2023-04-15 Thread Virgo Pärna via fpc-pascal
On Thu, 13 Apr 2023 20:53:09 -0400, Travis Siegel via fpc-pascal wrote: > I know of no way to obtain the pause key status under windows.  I can Considering, that only Caps Lock, Scroll Lock and Num Lock keys have status lights on keyboard I would suspect, that there is not such thing

Re: [fpc-pascal] Pause Key

2023-04-14 Thread James Richters via fpc-pascal
>> ... I wouldn't be surprised that James's program is a console one, not using TForm nor any windows message loop to process WM_ messages, but I may be wrong. Indeed you are correct, it is a very extensive console application which uses PTCGraph. I do accept keyboard input on both the Console

Re: [fpc-pascal] Pause Key

2023-04-14 Thread Jean SUZINEAU via fpc-pascal
... I wouldn't be surprised that James's program is a console one, not using TForm nor any windows message loop to process WM_ messages, but I may be wrong. It can be more tricky in this case. ___ fpc-pascal maillist -

Re: [fpc-pascal] Pause Key

2023-04-14 Thread Alexey Torgashin via fpc-pascal
if Key=VK_PAUSE then begin do_something; Key:=0; end; Yes. And I tested the Pause/Break key in the Lazarus program CudaText. I can assign the key to any action (in the Command Palette, press F9), and it works then. E.g. action "toggle statusbar" works then. ShortcutToText() for this key

Re: [fpc-pascal] Pause Key

2023-04-13 Thread Martin Wynne via fpc-pascal
On 14/04/2023 01:31, James Richters via fpc-pascal wrote: Does anyone know what's up with the Pause key in Windows? Is there some way to tell if it was pushed? Hi James, // Tform.FormKeyDown(Sender:TObject; var Key:Word; Shift:TShiftState); begin if Key=VK_PAUSE

Re: [fpc-pascal] Pause Key

2023-04-13 Thread DougC via fpc-pascal
I think any function where you provide the key code value and obtain the status of the key should work. >From the Linux Documenation Project: The two keys PrintScrn/SysRq and Pause/Break are special in that they have two keycodes: the former has keycode 84 when Alt is pressed

Re: [fpc-pascal] Pause Key

2023-04-13 Thread Travis Siegel via fpc-pascal
I know of no way to obtain the pause key status under windows.  I can get the scroll lock status, but not the pause key, never did figure that one out.  Windows uses it though, I don't know if it's a standard thing, or something I have installed, (though if it is an installed program, I

[fpc-pascal] Pause Key

2023-04-13 Thread James Richters via fpc-pascal
Does anyone know what's up with the Pause key in Windows? Is there some way to tell if it was pushed? I have a need for the user to pause execution of my Freepascal program, I have a pause key.. seems like there should be some way to use it. James