Re: [Freedos-user] AUTO SHIFT keyboard on DOS??
Hi i think can be done ez with aliases, You can just write *aaa = A or bbb=B and you not need return anything. :) *I have hope this can help or even easier if free dos can alias *space* then combination can be *space a =A or use dot command like in old word processor WordStar4.0 example --> .bp (breake page)*. Some simple alias can do for you what you want :) just little diffrent way. I think idea is ok but question is what app you must use to do this. If only freeDos then no problem. W dniu 08.02.2024 o 13:18, Thomas Cornelius Desi via Freedos-user pisze: Hi, is it possible in DOS (using BIOS?) to implement a tsr or so which allows the following: holding a key longer to return a SHIFT-key on screen? Example: press key »a« and HOLD the key for e.g. 500 milliseconds, => print shift-a = »A« on screen. Anyone around who has an idea or knowledge if this is possible or has been done or any hints where to look? Thanks! Thomas ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user -- Jak to wszystko się zaczęło? Kiedy powinniśmy oszukać przeznaczenie i odwrócić je? Prawdopodobnie niemożliwe jest, by odpowiedzieć teraz, z głębokiego wnętrza płynącego czasu... Po co więc bezustannie wracamy. My kochamy tak wiele, a nienawidzimy tak bardzo. My ranimy innych i gdzieś ranimy siebie... Lecz nawet wtedy, biegniemy jak wiatr. Podczas, gdy śmiech nasz odbija się echem. Pod lazurowym niebem... ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] AUTO SHIFT keyboard on DOS??
Regarding programmatic control of the keyboard LEDs, that was definitely possible. I have some od BASIC code I wrote in my early days which twiddle some bits in the byte at 0:0417 to accomplish it. Sent with Proton Mail secure email. On Thursday, February 8th, 2024 at 11:00 PM, Jerome Shidel via Freedos-user wrote: > Hi, > > > To fake shifts, one can just modify the flags at 40:17 and 18. > > It will not update the keyboard LEDs, but that is acceptable. > > The BIOS itself uses 40:96 and 97 to track its own status. > > > It has been a very long time. But, if I recall correctly, I’m fairly sure you > can programmatically change the LEDs as well. But, I don’t recall the > details. But, I might have code sitting around somewhere that has that > functionality. > > However excluding CAPS LOCK LED, I don’t think I’ve had a keyboard with the > other LEDs for a very long time. No real way for me to test that at present. > > > Of course the details can get a bit more complicated, as > > you also have press and release events for shift keys etc. > > and special E0 ... key combinations and so on. But if you > > are happy with just the most mainstream keys acting in that > > "long press means shift" style and only while no actual > > ctrl, shift, alt or similar modifier keys are pressed, it > > should be quite feasible to implement this. > > > > Special and multiple key combinations was something I built into the keyboard > driver in the “Danger Engine.” That is the game and application framework I > made for some programs provided with FreeDOS. > > The keyboard driver it has can track things like Left-Control+Right-Alt+A+P > or Up+Left+Tab. No real limit on total simultaneous keys in the driver. Plus, > it recognizes keys not normally supported under DOS. For instance, the Volume > keys and Browser buttons on my ancient Logitech Media Keyboard. > > But, that driver is not very efficient. Being a prototype experiment, it is > cobbled together. Now that the issues involved were worked out, it needs to > be rewritten from scratch. > > Even though the Danger Engine does some neat stuff, the same goes for the > entire thing. It definitely needs a rewrite. > > :-) > > Jerome > > ___ > Freedos-user mailing list > Freedos-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-user ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] AUTO SHIFT keyboard on DOS??
Hi, > > To fake shifts, one can just modify the flags at 40:17 and 18. > It will not update the keyboard LEDs, but that is acceptable. > The BIOS itself uses 40:96 and 97 to track its own status. > It has been a very long time. But, if I recall correctly, I’m fairly sure you can programmatically change the LEDs as well. But, I don’t recall the details. But, I might have code sitting around somewhere that has that functionality. However excluding CAPS LOCK LED, I don’t think I’ve had a keyboard with the other LEDs for a very long time. No real way for me to test that at present. > Of course the details can get a bit more complicated, as > you also have press and release events for shift keys etc. > and special E0 ... key combinations and so on. But if you > are happy with just the most mainstream keys acting in that > "long press means shift" style and only while no actual > ctrl, shift, alt or similar modifier keys are pressed, it > should be quite feasible to implement this. Special and multiple key combinations was something I built into the keyboard driver in the “Danger Engine.” That is the game and application framework I made for some programs provided with FreeDOS. The keyboard driver it has can track things like Left-Control+Right-Alt+A+P or Up+Left+Tab. No real limit on total simultaneous keys in the driver. Plus, it recognizes keys not normally supported under DOS. For instance, the Volume keys and Browser buttons on my ancient Logitech Media Keyboard. But, that driver is not very efficient. Being a prototype experiment, it is cobbled together. Now that the issues involved were worked out, it needs to be rewritten from scratch. Even though the Danger Engine does some neat stuff, the same goes for the entire thing. It definitely needs a rewrite. :-) Jerome ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] AUTO SHIFT keyboard on DOS??
Hallo Herr Thomas Cornelius Desi via Freedos-user, am Donnerstag, 8. Februar 2024 um 13:18 schrieben Sie: > Hi, > is it possible in DOS (using BIOS?) to implement a tsr or so which allows the > following: > holding a key longer to return a SHIFT-key on screen? > Example: > press key »a« and HOLD the key for e.g. 500 milliseconds, =>> print shift-a = »A« on screen. > Anyone around who has an idea or knowledge if this is possible or has been > done or any hints where to look? this would go to the keyboard driver as only it knows to differentiate between A-pressed A-pressed --> A A-pressed A-released A-pressed --> a only problem would be that your typin speed is now limited to 1 haracter per e.g. 500 milliseconds. not very practical. Tom ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] AUTO SHIFT keyboard on DOS??
Hi! https://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/dos/keyb/xkeyb/xkeyb-1994/XKEYB.TXT This seems one of those nifty keyboard drivers, but it has not time-critical functions I was more thinking in the direction of MKEYB or other int 15.4f based drivers: They see all key press and key release events and are able to manipulate things before they return control to the BIOS keyboard routines. The idea is as follows: If the driver sees a key press event, it could record the current time (counter at 40:6c) and, if a temporary fake shift was active (see details below), deactivate it now. If the driver sees a key release event, it could check if the corresponding key press event was long enough ago. If yes, it could make the BIOS believe that SHIFT would have been active at the moment. The driver can set some flag for itself, so it knows to undo the fake later. Return to BIOS. To fake shifts, one can just modify the flags at 40:17 and 18. It will not update the keyboard LEDs, but that is acceptable. The BIOS itself uses 40:96 and 97 to track its own status. Of course the details can get a bit more complicated, as you also have press and release events for shift keys etc. and special E0 ... key combinations and so on. But if you are happy with just the most mainstream keys acting in that "long press means shift" style and only while no actual ctrl, shift, alt or similar modifier keys are pressed, it should be quite feasible to implement this. Note that you will also have to manipulate the autorepeat functionality of the keyboard or BIOS. For example our MODE CON RATE=... DELAY=... command shows how to do this. It just uses BIOS function int 16.0305, no low-level trick. You can also think of the driver keeping track of WHICH key is in progress of being pressed for longer, for extra control over the interaction of typematics and autoshift. Regards, Eric ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] AUTO SHIFT keyboard on DOS??
https://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/dos/keyb/xkeyb/xkeyb-1994/XKEYB.TXT This seems one of those nifty keyboard drivers, but it has not time-critical functions… I would need a driver that counts how long a key has been pressed… Right? Thomas > On 08.02.2024, at 22:22, Thomas Cornelius Desi via Freedos-user > wrote: > > Thanks Eric for the info on Mielke, Sticky Keys ed al. > I would like to know how such a »driver«, as you call it could be realized? > I am not a programmer … > > Thomas > > >> On 08.02.2024, at 15:30, Eric Auer via Freedos-user >> wrote: >> >> >> Hi! >> >> I am not aware of such drivers, but it would not be hard >> to write one. I think there already are drivers to make >> shift keys sticky, or to give audible feedback, as in >> my ancient locktone experiment inspired by Mielke.cc :-) >> >> Eric >> >>> is it possible in DOS (using BIOS?) to implement a tsr or so which allows >>> the following: >>> holding a key longer to return a SHIFT-key on screen? >>> Example: >>> press key »a« and HOLD the key for e.g. 500 milliseconds, >>> => print shift-a = »A« on screen. >>> Anyone around who has an idea or knowledge if this is possible or has been >>> done or any hints where to look? >> >> >> >> >> >> ___ >> Freedos-user mailing list >> Freedos-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/freedos-user > > > > ___ > Freedos-user mailing list > Freedos-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-user ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] AUTO SHIFT keyboard on DOS??
Thanks Eric for the info on Mielke, Sticky Keys ed al. I would like to know how such a »driver«, as you call it could be realized? I am not a programmer … Thomas > On 08.02.2024, at 15:30, Eric Auer via Freedos-user > wrote: > > > Hi! > > I am not aware of such drivers, but it would not be hard > to write one. I think there already are drivers to make > shift keys sticky, or to give audible feedback, as in > my ancient locktone experiment inspired by Mielke.cc :-) > > Eric > >> is it possible in DOS (using BIOS?) to implement a tsr or so which allows >> the following: >> holding a key longer to return a SHIFT-key on screen? >> Example: >> press key »a« and HOLD the key for e.g. 500 milliseconds, >> => print shift-a = »A« on screen. >> Anyone around who has an idea or knowledge if this is possible or has been >> done or any hints where to look? > > > > > > ___ > Freedos-user mailing list > Freedos-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-user ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] AUTO SHIFT keyboard on DOS??
Hi! I am not aware of such drivers, but it would not be hard to write one. I think there already are drivers to make shift keys sticky, or to give audible feedback, as in my ancient locktone experiment inspired by Mielke.cc :-) Eric is it possible in DOS (using BIOS?) to implement a tsr or so which allows the following: holding a key longer to return a SHIFT-key on screen? Example: press key »a« and HOLD the key for e.g. 500 milliseconds, => print shift-a = »A« on screen. Anyone around who has an idea or knowledge if this is possible or has been done or any hints where to look? ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
[Freedos-user] AUTO SHIFT keyboard on DOS??
Hi, is it possible in DOS (using BIOS?) to implement a tsr or so which allows the following: holding a key longer to return a SHIFT-key on screen? Example: press key »a« and HOLD the key for e.g. 500 milliseconds, => print shift-a = »A« on screen. Anyone around who has an idea or knowledge if this is possible or has been done or any hints where to look? Thanks! Thomas ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user