Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 31 Oct 2014, 23:23
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
Need on-screen keyboard with mouse functions
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 9 of 9 [134 Posts]   Goto page: Previous 1, 2, 3, ..., 7, 8, 9
Author Message
mikeslr


Joined: 16 Jun 2008
Posts: 794
Location: Union New Jersey USA

PostPosted: Tue 09 Jul 2013, 15:44    Post subject: Hotkey "Cheatsheet" pet  

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” environment. Modules in Radar and Navbar make it possible. But just because it is possible to do something using those tools doesn't mean that's the only, or even the best, way to do it. Especially in a One-Switch environment, using a Hot-key combination can accomplish a task in a couple of seconds, with a couple of clicks, which would otherwise take minutes.
Along this same line, I again strongly recommend that anyone building a Pup for One-switch users include a version of the Xfe file manager. Don't take my word for it. Try it yourself. Using Radar or Navbar, perform some file management operations with Rox, or Thunar or pacmanfm. Then perform the same tasks, again using radar or Navbar but with Xfe in two-pane mode (or tree plus two-pane) using its Hot-keys. Which would you want to live with?
You'll find a couple of versions of xfe on the forum. Ttuuxxx's version, although older, has the advantage that it does not give the “using as root” warning requiring an “Ok” be clicked before use. Eliminating the warning requires a re-compile. As far as I know, all versions will work with any Pup. Moreover, Ttuuxxx's theme pet will work with any version of Xfe.
If you include firefox as a browser, or alternate browser, take the time to install the mouse-less browsing addon. I also recommend that you include a bookmark to that Addon's help page.
Obviously, it is impossible to include all the Hot-Key combinations for every possible application. The pet only provides Hot-keys information concerning Abiword, Geany, firefox and Xfe. But it also provides general Hot-Key advice, and specific advice regarding Leafpad, LibreOffice and OpenOffice.
Those interested in learning gtk-dialog, or just grabbing an already useful widget, can take a look at the pet's executable: hotkeyhelp found in /usr/sbin.

Because of Forum attachment size restrictions [annoying, dumb, and demeaning to Puppy], “The pet” --it was 11 kb too big—is now in two parts. The pet itself excludes only unique and/or uncommon keyboard combinations which may only be of use to Power Users of the above applications. What was excluded from “the pet” will be included by installing the Supplemental.

Happy computing,

mikeslr
HotKeySupplemental-0.1.pet
Description  Additional Info regarding less common hot keys
pet

 Download 
Filename  HotKeySupplemental-0.1.pet 
Filesize  82.22 KB 
Downloaded  233 Time(s) 
HotKeyHelp-0.1.pet
Description  Hotkey help files
pet

 Download 
Filename  HotKeyHelp-0.1.pet 
Filesize  194.54 KB 
Downloaded  246 Time(s) 
Back to top
View user's profile Send private message 
greengeek

Joined: 20 Jul 2010
Posts: 2607
Location: New Zealand

PostPosted: Sat 13 Jul 2013, 14:53    Post subject: Re: Obtained script to get current display's width and height
Subject description: Applications to consider
 

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:
#!/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:
#!/bin/sh
xvkbd -geometry -200-58 -always-on-top
This works ok for me at the moment (currently 1024x600 - will try other resolutions later)
Back to top
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 794
Location: Union New Jersey USA

PostPosted: Sun 14 Jul 2013, 11:37    Post subject: Positioning onscreen keyboard  

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/Cool))x$(($MAXY/5))+$((($MAXX/2)-($MAXX/Cool-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
Back to top
View user's profile Send private message 
greengeek

Joined: 20 Jul 2010
Posts: 2607
Location: New Zealand

PostPosted: Tue 16 Jul 2013, 15:50    Post subject:  

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
.
Back to top
View user's profile Send private message 
greengeek

Joined: 20 Jul 2010
Posts: 2607
Location: New Zealand

PostPosted: Sat 27 Jul 2013, 03:42    Post subject:  

I'm quite excited about my Autostart version of switchpup here:
http://www.murga-linux.com/puppy/viewtopic.php?t=85466&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/viewtopic.php?t=87103&start=2
Back to top
View user's profile Send private message 
xmf-149

Joined: 02 Aug 2013
Posts: 19

PostPosted: Sat 24 Aug 2013, 14:34    Post subject:  

i made one i don't know if it can help you though since i only use it when i'm too lazy to press the actual keys
this uses xdotool exclusively https://github.com/jordansissel/xdotool/raw/master/xdo_util.h
Code:
#!/bin/sh
export KB='<window title="keyboard">
<vbox homogeneous="true"><hbox space-fill="true">
<button use-underline="false" space-fill="true" space-expand="true">
<label>x</label>
<action signal="pressed">amixer -q set Master toggle &</action>
<action signal="released">amixer -q set Master toggle &</action>
</button>
<timer visible="false" interval="30" milliseconds="true">
 <variable>time</variable>
 <action signal="realize">disable:time</action>
 <action>test $mw = true && xdotool mousemove_relative -- 0 -2</action>
 <action>test $ma = true && xdotool mousemove_relative -- -2 0</action>
 <action>test $mS = true && xdotool mousemove_relative 0 2</action>
 <action>test $md = true && xdotool mousemove_relative 2 0</action>
</timer>'
for arrow in waSd aSdw Sdwa dwaS
do KB=$KB'
<checkbox use-underline="true" can-focus="no">
 <label>_'`echo $arrow|cut -c1`'</label>
 <variable>m'`echo $arrow|cut -c1`'</variable>
 <action>if true clear:m'`echo $arrow|cut -c2`'</action>
 <action>clear:m'`echo $arrow|cut -c3`'</action>
 <action>if true clear:m'`echo $arrow|cut -c4`'</action>
 <action>if true enable:time</action>
 <action>if false disable:time</action>
</checkbox>'
done
KB=$KB'</hbox><hbox space-fill="true">
<text visible="false">
 <variable>MOD</variable>
 <input>"[[ $ctrl = true ]] && echo -n ctrl+;
 [[ $function = true ]] && echo -n function+;
 [[ $alt = true ]] && echo -n alt+;
 [[ $shift = true ]] && echo -n shift+"</input>
</text>
<text visible="false">
 <variable>WD</variable>
 <input>xdotool selectwindow</input>
</text>
<button>
 <label>selectwindow</label>
 <action type="refresh">WD</action>
</button>'
for mod in ctrl function alt shift
do KB=$KB'
<checkbox>
 <label>'$mod'+</label>
 <variable>'$mod'</variable>
 <action type="refresh">MOD</action>
</checkbox>'
done
KB=$KB'</hbox>'
for Row in `echo '
Up_Down_Left_Right_Home_End
Escape_space_Tab_Return_BackSpace_Insert_Print_Delete
F1_F2_F3_F4_F5_F6_F7_F8_F9_F10_F11_F12_F35_
grave_1_2_3_4_5_6_7_8_9_0_minus_equal
comma_period_slash_semicolon_apostrophe_bracketleft_bracketright_backslash
a_b_c_d_e_f_g_h_i_j_k_l_m_n_o_p_q_r_s_t_u_v_w_x_y_z
A_B_C_D_E_F_G_H_I_J_K_L_M_N_O_P_Q_R_S_T_U_V_W_X_Y_Z'`
do KB=$KB'<hbox space-fill="true" homogeneous="false">'
for char in `echo $Row|tr _ ' '`
do KB=$KB'
<button space-fill="true" tooltip-text="">
 <label>'$char'</label>
 <action>xdotool key --window $WD ${MOD}'$char'</action>
</button>'
done
KB=$KB'</hbox>'
done
KB=$KB'</vbox></window>'
gtkdialog --program=KB &
capture10221.png
 Description   
 Filesize   19.82 KB
 Viewed   347 Time(s)

capture10221.png


_________________
Exclamation Exclamation Exclamation
Back to top
View user's profile Send private message 
greengeek

Joined: 20 Jul 2010
Posts: 2607
Location: New Zealand

PostPosted: Sat 24 Aug 2013, 15:31    Post subject:  

Interesting idea. As a matter of interest, what is "F35"?
Back to top
View user's profile Send private message 
Ted Dog


Joined: 13 Sep 2005
Posts: 2391
Location: Heart of Texas

PostPosted: Sat 24 Aug 2013, 20:26    Post subject:  

This is useful thanks for posting, Mr. Green

That would be ideal with layout switched bottom to top or doing row selection bottoms up. And if we use this with speech enabled it makes better since its A B C D.. you can predict what letter would be next without looking.
Back to top
View user's profile Send private message 
Ted Dog


Joined: 13 Sep 2005
Posts: 2391
Location: Heart of Texas

PostPosted: Sat 24 Aug 2013, 21:44    Post subject:  

http://www.ibm.com/developerworks/library/x-xdotool/

Dang IBM trying to steal my idea... Laughing,
Back to top
View user's profile Send private message 
Atle

Joined: 19 Nov 2008
Posts: 286
Location: Oslo, Norway

PostPosted: Fri 30 Aug 2013, 10:40    Post subject: Current best choice...  

Hi folks...

I shall install a laptop for a severely disabled person that can only use a joystick.

I am looking for the best solution by using Puppy and or even other Linux distroes.

This is a very long thread and I can not really get the grip of what is the best solution for someone that uses joystick only.

Any suggestions are welcome.

Atle
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
greengeek

Joined: 20 Jul 2010
Posts: 2607
Location: New Zealand

PostPosted: Fri 30 Aug 2013, 15:20    Post subject:  

Hi Atle - at the moment I don't know of any joystick solutions in puppy. This is one of the things I want to work on once I have fully set up the one-switch pups to my satisfaction.

A joystick pup would probably benefit quickly from having a thread of it's own if there is not already one, as I think there are probably a significant number of forum members who might have info to offer due to their gaming experience.

One question would be - how much control does the disabled user have? Are they only able to use the four directions, or are they also able to manipulate the other mouse buttons etc that are on a gaming mouse? (I guess it depends on the individual disability...)
Back to top
View user's profile Send private message 
Ted Dog


Joined: 13 Sep 2005
Posts: 2391
Location: Heart of Texas

PostPosted: Fri 30 Aug 2013, 22:03    Post subject: Re: Current best choice...  

Atle wrote:
Hi folks...

I shall install a laptop for a severely disabled person that can only use a joystick.

I am looking for the best solution by using Puppy and or even other Linux distroes.

This is a very long thread and I can not really get the grip of what is the best solution for someone that uses joystick only.

Any suggestions are welcome.

Atle


A joystick should work like a mouse, I've used three different pointer systems and they worked well without effecting the other, whatever was used, controlled the mouse, his included active one switch.
Some joysticks also work like a keyboards, back in my day making flight testing systems for NASA and USAF, we used a off the shelf top-of the line joysticks, just added stiffer springs and a lot of lead to produce the feel of the real flight joystick. It was a mapped keyboard input.

My view is to start with the hardest (oneSwitch) and continue to add functionally (oneClick - remote wireless oneSwitch) multiSwitch (integrating multiple OneSwitches ) headTracking (mouseCam), eyeTracking (like mouseCam but closer on eyes) JOYSTICK, then finally Voice control.
The final puppy should have all the above and be engineered to transition cleanly to whatever setup is available.

Text to Speech and onscreen keyboard integrated with radar, and auto-complete typing (speaking) .

Fortunately, almost all this is already in some stage of use, but joystick control would be useful, so go for it, it should be easier than most of the above list, and I do not know if anyone is currently working on it. If it maps as a keyboard, then it would be very easy to merge with current code, as a mouse mapping it would be easy if that is the need, would need to map a button as the oneswitch, which could be harder.
Back to top
View user's profile Send private message 
Atle

Joined: 19 Nov 2008
Posts: 286
Location: Oslo, Norway

PostPosted: Sat 31 Aug 2013, 08:30    Post subject:  

Quote:
Hi Atle - at the moment I don't know of any joystick solutions in puppy. This is one of the things I want to work on once I have fully set up the one-switch pups to my satisfaction.

A joystick pup would probably benefit quickly from having a thread of it's own if there is not already one, as I think there are probably a significant number of forum members who might have info to offer due to their gaming experience.

One question would be - how much control does the disabled user have? Are they only able to use the four directions, or are they also able to manipulate the other mouse buttons etc that are on a gaming mouse? (I guess it depends on the individual disability...)


This person can handle a electric wheelchair with a joystick. The joystick system is also used on the PC, that currently runs a shitty Window. The PC joystick is a special one for severely disabled with 4 large buttons that probably has some functions in Windows with a device specific driver(?)

The joystick is without small buttons like you see on a gaming mouse and his capability does not support small buttons neither.

But he does the 4 ways on the joystick and can handle that and some larger buttons as well.



I think the joystick is USB and I shall test drive it using whatever Puppy desired to see if it comes up as anything.

Quote:
A joystick should work like a mouse, I've used three different pointer systems and they worked well without effecting the other, whatever was used, controlled the mouse, his included active one switch.
Some joysticks also work like a keyboards, back in my day making flight testing systems for NASA and USAF, we used a off the shelf top-of the line joysticks, just added stiffer springs and a lot of lead to produce the feel of the real flight joystick. It was a mapped keyboard input.

My view is to start with the hardest (oneSwitch) and continue to add functionally (oneClick - remote wireless oneSwitch) multiSwitch (integrating multiple OneSwitches ) headTracking (mouseCam), eyeTracking (like mouseCam but closer on eyes) JOYSTICK, then finally Voice control.
The final puppy should have all the above and be engineered to transition cleanly to whatever setup is available.

Text to Speech and onscreen keyboard integrated with radar, and auto-complete typing (speaking) .

Fortunately, almost all this is already in some stage of use, but joystick control would be useful, so go for it, it should be easier than most of the above list, and I do not know if anyone is currently working on it. If it maps as a keyboard, then it would be very easy to merge with current code, as a mouse mapping it would be easy if that is the need, would need to map a button as the oneswitch, which could be harder.


So then the SwitchPup would be the best thing to begin with then?

I can load this on my own laptop and try to connect the joystick.

Thanks for great answers from both of you

Best

Atle

And from there one adds more stuff?
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
mikeslr


Joined: 16 Jun 2008
Posts: 794
Location: Union New Jersey USA

PostPosted: Mon 25 Nov 2013, 12:40    Post subject: Ratpoison -- mouseless window manager  

Hi All,

Just wanted to bring to your attention that Billtoo has published a pet of Ratpoison, a window manager which does not depend on the use of a mouse/trackball; that is window functions can be performed solely thru keyboard commands. See the following post for the pet, a launcher which can be used in conjunction with it for quick access to favorite applications, and Ratpoisons default keybindings.
http://murga-linux.com/puppy/viewtopic.php?p=739237#739237

mikesLr
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 9 of 9 [134 Posts]   Goto page: Previous 1, 2, 3, ..., 7, 8, 9
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1296s ][ Queries: 13 (0.0171s) ][ GZIP on ]