Need on-screen keyboard with mouse functions

A home for all kinds of Puppy related projects
Message
Author
User avatar
ETP
Posts: 1193
Joined: Tue 19 Oct 2010, 19:55
Location: UK

Regarding modification of the xvkbd keyboard

#106 Post by ETP »

Hi mikeslr,

Thanks for posting your detailed description of how to modify Xvkbd. It will be of benefit to anyone wanting to go down this route. One minor point of clarification however concerning:
#include "XVkbd-common"
I'm not sure why it begins with the # sign.

Once you “un-comment
Regards ETP
[url=http://tinyurl.com/pxzq8o9][img]https://s17.postimg.cc/tl19y14y7/You_Tube_signature80px.png[/img][/url]
[url=http://tinyurl.com/kennels2/]Kennels[/url]

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

Can Word-Completition become functional?

#107 Post by mikeslr »

Hi ETP and All,
Word Completion: type a couple of letters and then insert into your text from a list the word or phrase beginning with those letters. For someone limited to waiting for a mouse-cursor following a prescribed pattern to reach each letter and typing one letter at a time, word completion should be of great value. But currently it isn't.
Unless, of course, I've missed something.
First problem: turning xvkbd's word-completion on. I can find no way for it to be turned on automatically when xvkbd starts. To use it, it must be turned on each time.
Second problem: To turn it on, you have to position the mouse-cursor on the MainMenu button (which bears the label “xvkbd
Attachments
Word-Completion-Window.png
Ameliorating one problem with Word-Completion
(139.31 KiB) Downloaded 762 times

User avatar
ETP
Posts: 1193
Joined: Tue 19 Oct 2010, 19:55
Location: UK

RE: Can Word-Completition become functional?

#108 Post by ETP »

Hi mikeslr,

I think you may have missed my 2 posts dated 21st April which solved issues 1 to 3 inclusive.

The fourth and fifth problems are the reasons why I have only ever perceived word-completion as useful for really long words or hyphenated phrases. Only then does it become a time saver. It was also the main rational for including Chromium and having Google default to voice search in TPWNN.

LibreOffice, (In sfs form perhaps?) may be of more use but Google have recently purchased a Quantum computer and appear to be working on web based voice dictation for all. In effect a sort of on-line “Dragon Dictate
Regards ETP
[url=http://tinyurl.com/pxzq8o9][img]https://s17.postimg.cc/tl19y14y7/You_Tube_signature80px.png[/img][/url]
[url=http://tinyurl.com/kennels2/]Kennels[/url]

User avatar
ETP
Posts: 1193
Joined: Tue 19 Oct 2010, 19:55
Location: UK

Eviacam 1.6.0 dotpet for Precise based pups.

#109 Post by ETP »

Hi All,

I do not yet know whether or not this is needed, but a pet (18.5MB) is now available on my server. I have tested it on a number of Precise based pups but only with JWM. Someone may wish to try it with other WMs.

When using head mouse control, it is best to avoid having icons or panels in the centre of the screen to avoid unintentional mouse triggers. A limited number around the periphery of the screen seems to work best.

It works particularly well with Xbmc-Frodo. Have fun; a “teaser
Attachments
Webcamera-Mouse-Pup.jpg
Testing with Precise 5.6
(50.79 KiB) Downloaded 1020 times
Regards ETP
[url=http://tinyurl.com/pxzq8o9][img]https://s17.postimg.cc/tl19y14y7/You_Tube_signature80px.png[/img][/url]
[url=http://tinyurl.com/kennels2/]Kennels[/url]

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#110 Post by 8-bit »

In one of my old Atari magazines, I have a word processor/ communicator that is joystick driven.
It shows a number of common words that can be selected to place in the document and inserts a space after each word.
Also partial words can be used as in one word being part of a longer word.
It is written in Atari Basic. But could possibly be programmed in another programming language.
What would make it nice is one would not have to type out words letter by letter.

Now for the bad news. I am no great programmer and the conversion could take a fair amount of time.

Do you know of anything like it ready made?
Any interest in a tried conversion of the program? (Not even started yet!)

User avatar
Ted Dog
Posts: 3965
Joined: Wed 14 Sep 2005, 02:35
Location: Heart of Texas

#111 Post by Ted Dog »

Bacon? Basic to C Convertor is in dev.sfs

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#112 Post by vovchik »

Dear guys,

I did one 90% of one in BaCon a while back http://basic-converter.proboards.com/in ... 479&page=8 but never got around to finishing it. It needs a tad bit bit more work but the demo will give you an idea. The source is also in the archive, along with the binary. It is at the top of the page. Any takers?

With kind regards,
vovchik

User avatar
ETP
Posts: 1193
Joined: Tue 19 Oct 2010, 19:55
Location: UK

MouseCam Pup v4

#113 Post by ETP »

Regards ETP
[url=http://tinyurl.com/pxzq8o9][img]https://s17.postimg.cc/tl19y14y7/You_Tube_signature80px.png[/img][/url]
[url=http://tinyurl.com/kennels2/]Kennels[/url]

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

Joystick to control mouse-cursor

#114 Post by mikeslr »

Awhile ago darkcity mentioned a friend who might benefit if there were a variant of "one-switch" which could be operated using a joystick. While scanning the new Carolina, I got the impression that Geoffrey had some knowledge of joysticks/gamepads. So I emailed him for help enabling a joystick or gamepad to control mouse-cursor movements and he responded:

"I really don't know much about joysticks and gamepads, but I will usually find a way to get them working, most should work OOTB.

I've never had the need to use one, not even for gaming, well I'm not a gamer , I had a look at your request and found a QT application called qjoypad, I think this what you are needing, it can be configured to emulate a mouse very easily, I quickly set it up and works extremely well, I'm impress with it, all modern gamepad joysticks have a button under the stick so moving the mouse and then pushing down on the stick can act as the left mouse button.

I compiled this in Carolina but it should work with any pup with qt4 installed, [my emphasis] though I haven't tested in any other pups myself http://qjoypad.sourceforge.net/#download

I hope this proves to be useful for you

Cheers,

Geoff"

Since this will emulate a mouse, the user may not need One-switch/radar/navbar at all. The default xvkbd pet would provide an onscreen keyboard. Somewhere on this thread you'll find a 4,000+ word "common words" file which xvkbd can use with its word-completion module together with instructions on where to install it. Toward the end of this thread you'll also find an alternate keyboard placing frequently used letters close to each other. It, however, was designed for use with One-switch whose xvkbd mode runs a pattern beginning at the keyboard's top-left corner. In the next couple of days I hope to publish --thanks to a variation in how xvkbd mode works [without that automatic scrolling pattern] that SFR sent me-- a keyboard in which frequently used letters, and those they are frequently associated with, spiral out from a central space bar.
Let me know if the pet proves useful, or if there are any problems. I don't own a joystick or gamepad so I can't test.

mikesLr

Addendum: 6/10-- As I indicated above, it was my intention to write a keyboard in which frequently used letters, and those they are frequently associated with, spiral out from a central space bar. I have posted it on the MouseCam thread in the hope it may prove useful. Like those employing a joystick/gamepad, the mousecam pup does not rely on radar/Navbar. Instead it employs eviacam to control mouse movement. My post can be found here: http://murga-linux.com/puppy/viewtopic. ... 919#707919
Attachments
qjoypad-4.1.0.pet
mouse emulation via joystick
(115.48 KiB) Downloaded 567 times

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

Creation of the Square XVkbd keyboard arrangement

#115 Post by mikeslr »

Hi All,

As indicated in the above post, you'll find, for use with XVkbd, a keyboard file in which the most frequently employed keys spiral out from a central spacebar and, where possible, keys frequently associated with those keys are located near to them. As I've used this thread as a vehicle for providing guidance to those desiring to create their own customized keyboard layouts, for the sake of completeness I thought the following was appropriate.

I first tried to create a "letter frequency" keyboard using those models discussed previously in this thread. I used a LibreOffice Table to sketch out key placement. That revealed that it would require a Row for Function Keys and about two columns for Command and Modifier keys, and roughly a square of by 6 columns by 7 rows for Alpha-numeric keys. That posed the problem in that the space-key, which was supposed to be in the center, wasn't. The Function Keys were part of the problem. XVkbd is designed so that the Function Key Row can be turned on and off. Consequently a key occupying the central row had to do so whether there were 7 or 8 rows. And the center of 8 columns is actually the line between column 4 and column 5. I attempted to overcome these problems by declaring different heights for rows, and different widths for command-and-modifying keys versus the standard "30" width for Alpha-numerics. That resulted in a somewhat bizarre appearance, but more importantly no configuration I wrote reduced the spacebar's width below 60.. It seemed to be hard-wired.
Examination of various keyboards which Tom Sato wrote revealed only one instance in which the spacebar had the same width as Alphanumeric keys: his Strip Keyboard. The strip keyboard has two columns of keys (mostly Alphabetic) which run down the left side of the screen, and two columns (numbers and Function keys, unless a modifyer is engaged) running down the right side of the screen. All the keys, including the spacebar, (with one exception) were exactly the same height and width. Analysis of the composition of the Strip Keyboard revealed that what Mr. Sato did was to assign the number keys entirely to the keypad which his geometry declaration placed at the right edge, and the alphabetic keys to the keyboard which his geometry declaration placed at the left edg; and declare all keys to have the same height and width. So what I did --besides similarly declaring all keys to have the same height and widtth-- was to adopt Mr. Sato's command to "disinherit" geometry, but also include a command to turn the keypad off, to wit:

xvkbd.inheritGeoemetry: false
xvkbd.keypad: false

The center of the resulting keyboard is actually within the spacekey, albeit in its top-left quadrant.

Hope this helps,

mikesLr

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

Alternate Radar for Square Keyboard & Keyboard Choice pet

#116 Post by mikeslr »

Hi All,
Update, 8/07/13: Revised pet and explanation found here: http://murga-linux.com/puppy/viewtopic. ... 626#717626
Edit: 6/29/13: Revised pet for the reasons explained here: http://murga-linux.com/puppy/viewtopic. ... 825#710825

Thanks to SFR's programming genius and tolerance to things that I could imagine but not personally create, I am pleased to present a pet which may provide to Radar users both an easy way to try and use the Square –letter frequency arranged-- keyboard and change back to the 1Switch Keyboard if or when that layout may be more convenient. A picture of the Square keyboard can be found here:
http://murga-linux.com/puppy/viewtopic. ... 919#707919. The pet installs both the Square and OneSwitch Keyboards.
The pet creates a menu entry, called xvkbd keyboard chooser, on the Desktop>Desktop Settings submenu, adjacent to xvkbd's entry. When clicked it will provide the choice between four keyboard layouts: Square – Manual Control, Square –Automatic Scrolling, OneSwitch and Default US. After making a choice, BOTH Xvkbd and radar will have to be restarted.
If Square – Manual Control is chosen, radar will operate without Automatic Scrolling in Xvkbd mode. If that mode is selected, radar's xvkbd mode works somewhat differently than under OneSwitch. The mouse-cursor will start at the central Space key, but its direction will be under user control as in “non-xvkbd
Attachments
keyboard_choices-0.9.pet
revised xvkbd chooser pet
(25.73 KiB) Downloaded 549 times
Last edited by mikeslr on Wed 07 Aug 2013, 14:43, edited 6 times in total.

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#117 Post by greengeek »

Thanks Mike, this will be good to try.
I'm very much behind the 8-ball at the moment, having had a substantial break (to the point where I've actually forgotten what I was doing a couple of months ago), and I feel it's going to take quite a lot of time for me to work out how well these alternative keyboards can work. (maybe thats a good thing that I can view it with fresh eyes...)

I'm guessing that someone who grew up with qwerty will still prefer something similar, but there are probably users who are happy to adjust to layouts that are geometrically more efficient.

I'm planning to sit down for a whole weekend at some point and only type with one finger and see what seems to works best.

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

Some xvkbd Word-Completion Tools

#118 Post by mikeslr »

Hi all,

Some tools for using xvkbd's word-completion module.
Inspired by ETP, I thought there should be an easy way for a user to add those words and phrases he or she commonly employs if they were not already in a wordlist. The attached add_words pet creates an entry on the desktop submenu. Although a Utility, I figured it would be easier to find if it were on the same submenu as xvkbd.
The “Add Words
Attachments
words_choice-0.8.pet
Choose which of various wordlist xvkbd word-completion will use. See post for
obtaining wordlists.
(20.52 KiB) Downloaded 494 times
add_words-0.8.pet
Require Xvkbd; Opens "words" in default editor for adding words and phrases
(6.19 KiB) Downloaded 510 times

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#119 Post by greengeek »

Added a new thread containing a tutorial for the oneswitch keyboard modification here:
http://www.murga-linux.com/puppy/viewto ... 282#711282
Attachments
13Fit_socket_and_resistor_.JPG
(42.24 KiB) Downloaded 640 times

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#120 Post by greengeek »

Have updated the keyboard modification thread to include a much simpler mod that I have done to a cheap usb keypad. Works well. (just uses the * asterisk key instead of a pause/break key - but it works perfectly because the oneswitch config gui allows you to select which keyboard, and which keyswitch you want to monitor)

Cost of various Puppy Operating systems - $0.00 (courtesy of BK et al)
Cost of OneSwitch Radar & Navbar dotpet - $0.00 (courtesy of SFR)
Cost of hotpluggable interface for switch - $10.00 or less (courtesy of the hardworking people of China)

Priceless!

Just got to work on cheap ways to build the switches next...
Attachments
07Finished_.JPG
(51.41 KiB) Downloaded 639 times

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

Hotkey "Cheatsheet" pet

#121 Post by mikeslr »

Hi all,

Thanks once again to the programming excellence of SFR and his patience for my sometimes half-baked ideas, I'm pleased to attach an HotKey Help pet. Hopefully, its employment will ease the task a new computer user faces in learning how to accomplish anything.
I've said it before, but it's worth repeating. One of the problems faced by One-switch users is the time and effort they have to put in to accomplish anything in a “Mouse-centric
Attachments
HotKeySupplemental-0.1.pet
Additional Info regarding less common hot keys
(82.22 KiB) Downloaded 518 times
HotKeyHelp-0.1.pet
Hotkey help files
(194.54 KiB) Downloaded 550 times

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

Re: Obtained script to get current display's width and height

#122 Post by greengeek »

mikeslr wrote:At any rate, xvkbd's documentation includes instructions on how to open xvkbd at a specified location and with specified dimensions. As my desktop is 1600x900, this is the script I used, code:

#!/bin/sh
xvkbd -geometry 850x180+595+650 -always-on-top &

850x180 define the width and height, respectively. 596+650 identify the width and height co-ordinates for the top right corner of the keyboard. (Oddly, given that the width of the keyboard appears first, I think the first positioning number for the height placement co-ordinate. Set this up on my Thinkpad about 2 hours ago).
Hi Mike, I have written a script to use this method of starting xvkbd (I am trying to control where on screen it starts) but I find that the xvkbd window does not open up at the same position every time I run the script. Did you experience this also?
This is how I open xvkbd:

Code: Select all

#!/bin/sh
xvkbd -geometry 850x180+595+650 -always-on-top & 
I don't understand why the position would vary each time unless somehow jwm is over-riding the geometry info in the script. If so, why is this happening I wonder?

EDIT :Strangely - the behaviour seems to stabilise when I choose negative values and remove the trailing "&" eg:

Code: Select all

#!/bin/sh
xvkbd -geometry -200-58 -always-on-top
This works ok for me at the moment (currently 1024x600 - will try other resolutions later)

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

Positioning onscreen keyboard

#123 Post by mikeslr »

Hi greengeek,

I ran into the same problem when I tried to unplugged a USB-Key install from a computer where my formula worked into another where it didn't.
SFR was kind enough to email me the following formula, for placing the keyboard slightly to the left of radar. Code:

#!/bin/sh
read MAXX MAXY <<< `xwininfo -root | awk 'NR>=8&&NR<=9 {print $2}'`
xvkbd -geometry $((($MAXX/2)+($MAXX/8)))x$(($MAXY/5))+$((($MAXX/2)-($MAXX/8)-192))+$(($MAXY-($MAXY/5)-64)) -always-on-top

But as you've discovered the use of negative commands, and they work, perhaps its best to follow the adage:
"If it ain't broke, don't fix it."

mikesLr

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#124 Post by greengeek »

The thread which details the development of SFRs OneSwitch pet has now been split off from the original programming thread and relabelled so that it is easier for users to find it. New thread here:
http://murga-linux.com/puppy/viewtopic.php?t=87418

Latest version of OneSwitch now kept updated in the first post of that thread
.

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#125 Post by greengeek »

I'm quite excited about my Autostart version of switchpup here:
http://www.murga-linux.com/puppy/viewto ... 66&start=2
It lets the disabled user get started without any configuration hassles. Works out of the box on my systems. Very keen to hear results from any testers.

Also my new usb interface for switchpups is an easily constructed item that works really well with SFRs "keyhunter" script, and a perfect accompaniment to my Autostart switchpup. Tutorial here:
http://www.murga-linux.com/puppy/viewto ... 03&start=2

Post Reply