QB64.org Forum
Active Forums => QB64 Discussion => Topic started by: Pete on September 30, 2021, 11:28:23 pm
-
The "O" is out on my keyboard and so far, it's just been HELL
Pete
-
Another liar ;-)) What key is out on your keyboard?
-
Ah... Sent from my iphone. :D
-
Chr$(79)
-
Do this:
Hold ALT down
Press 0, release.
Press 7, release.
Press 9, release.
Release ALT
-
I use a much simpler method, in the event of key/keyboard failure, the exchange method. I used to pull apart keyboards and repair them myself. Failing eyesight changed 'that' solution. Now, all I do is, travel to a PC store and exchange dollars for a new keyboard.... Moo Ha Ha... Of course, the exchange method, works better for desktop keyboards... Moo Ha Ha...
-
Well kidding aside, I did have a keyboard problem years ago. I ended up buying a USB keyboard for my laptop, but before I did, I got by using the Windows virtual keyboard for a couple of days. Now if you will excuse me, my HELLO WORLD program isn't going to finish itself. Ah, my crowning achievement... with a little help from spell check.
Pete
-
What if the only key that works is the spacebar?!?!
The current game competition at Syntax Bomb allows you to have only one key (or mouse button or joystick button) on or off (no analog like using mouse position for range of options of position).
I was wondering how one could access the whole key board with only one button like the spacebar. I tried going down the alphabet highlighting one letter at a time, you press the spacebar if that letter is what you want next. Then I needed to add numbers for a menu of commands including and specially a backspace command using 4 to signal that. So flashing a letter every 2 secs takes nearly a minute to input a letter for some, yikes!
So I broke up the letters into rows and put _ at beginning and end for going up or down in the rows, so now if they are flashed and when you press spacebar on those you go down a row unless at last row, you start back at beginning.
Want to see and test how that works?
_Title "One Key - spacebar menu 4 is backspace to erase last letter"
x$ = GetInput$(10, 10)
If x$
= "4" Then ' back space to erase
Function GetInput$
(LocateCol
, LocateRow
) g$(0) = "_ABCDE_"
g$(1) = "_FGHIJ_"
g$(2) = "_KLMNO_"
g$(3) = "_PQRST_"
g$(4) = "_UVWXY_"
g$(5) = "_Z1234_"
py = 0: px = 0
lp = lp + 1
lp = 0
px = px + 1
py = py + 1
show:
This is harder than putting names and phone numbers in the phone!
-
For one key, create an ASCII chart and navigate it via timed presses.
No tap, no hold, no input for 3 seconds = input accepted.
No tap, no, hold, no input for 5 seconds = input finished.
One tap, no hold = move selector one spot
One tap, key held = move selector in auto-scroll at 10 characters per second or so
So hello would be:
Press, hold to H.
Release, wait 3 seconds for acceptance.
Press, hold to E.
Release, wait 3 seconds for acceptance.
Press, hold to L….
…so on…
Press, hold for D.
Release, wait 3 seconds for acceptance.
Do nothing. Wait 5 more seconds to terminate with finished input.
Seems like a simple enough one-key input system. ;D
-
That might work. It's faster than I type, anyway!
Actually, it reminds me of putting in my wifi code in my printer/fax numeric dial pad.
Pete
-
For one key, create an ASCII chart and navigate it via timed presses.
No tap, no hold, no input for 3 seconds = input accepted.
No tap, no, hold, no input for 5 seconds = input finished.
One tap, no hold = move selector one spot
One tap, key held = move selector in auto-scroll at 10 characters per second or so
So hello would be:
Press, hold to H.
Release, wait 3 seconds for acceptance.
Press, hold to E.
Release, wait 3 seconds for acceptance.
Press, hold to L….
…so on…
Press, hold for D.
Release, wait 3 seconds for acceptance.
Do nothing. Wait 5 more seconds to terminate with finished input.
Seems like a simple enough one-key input system. ;D
Timing your holds is getting dangerously close to analog input, not simple On/Off but OK lets see code for a test ;-)) PS I was thinking Morse Code but ruled it out because it seemed analog-ish too.
I think it's still going to take some time tapping you way to end of alphabet for those letters towards the end.
We could put most used letters towards beginning but then gets hard to predict the order?
-
Keep it going, and we're going to see the birth of QB-Short-Hand-BASIC.
4i 1 2 50
Next
DOu i 50
LOOP
myfile$ binary 1
Close 1
etc...