mouse bindkeys to spacebar

G

gary

Guest
I injured my right hand and am having a little trouble clicking. I
want to push these mouse functions to spacebar and spacebar
combinations like Ctrl-spacebar.

There is a farely standard bindkey file that I am using that goes
something like this

hiSetBindKeys( "Layout" list(
list("<DrawThru1>" "geSingleSelectBox()"
"geSingleSelectBox()") ;EF
))

I am not sure I am quite understanding it, specifically, what is the
Enter Function? and how does someone use it in the bindkey file?

In the above example, it seems the first function geSingleSelectBox()
seems to be the skill command used when you haven't yet called a
command, for instance hiZoomIn(). The second call (to the left
of ;EF), I think is when you are in a function already like hiZoomIn
and the function needs some more input??

Also, does someone know what I can use for Spacebar, shift-spacebar,
ctrl-spacebar, etc, in the bindkey file. I was messing around and
believe the "<key>Space" will work for spacebar, but other ones like
"Shift<Key>Space" do not seem to work
 
In article <158884b5-7ab7-4535-ad42-12b3846fece6@i37g2000yqn.googlegroups.com> gary <fordgwf@gmail.com> writes:
I injured my right hand and am having a little trouble clicking. I
want to push these mouse functions to spacebar and spacebar
combinations like Ctrl-spacebar.

There is a farely standard bindkey file that I am using that goes
something like this

hiSetBindKeys( "Layout" list(
list("<DrawThru1>" "geSingleSelectBox()"
"geSingleSelectBox()") ;EF
))

I am not sure I am quite understanding it, specifically, what is the
Enter Function? and how does someone use it in the bindkey file?
An enterfunction is a command that typically takes mouse input, such as when
you are moving an object, or stretching an object, or drawing an object, or
copying an object. The "EF" command is what the bindkey will execute during
the enterfunction, as opposed to the "normal" command that is executed when
not in an enterfunction. If nothing is defined for the enterfunction command,
then the "normal" command will be executed during the enterfunction, also.

Also, does someone know what I can use for Spacebar, shift-spacebar,
ctrl-spacebar, etc, in the bindkey file. I was messing around and
believe the "<key>Space" will work for spacebar, but other ones like
"Shift<Key>Space" do not seem to work
Try "space" instead of "Space". The key names are case sensitive, and the
printable character keys (yes, "space" is technically a "printable character")
typically use lowercase names ("comma", "space", "period").

One way to get the name is to use xmodmap (which will be in /usr/openwin/bin
on a Sun system, or /usr/X11R6/bin on most other systems) as follows:

# xmodmap -pke | grep -i space

-Pete Zakel
(phz@seeheader.nospam)

"Cancel me not -- for what then shall remain?
Abscissas, some mantissas, modules, modes,
A root or two, a torus and a node:
The inverse of my verse, a null domain."
 
On Apr 6, 8:48 pm, px...@cadence.com (Pete nospam Zakel) wrote:
In article <158884b5-7ab7-4535-ad42-12b3846fe...@i37g2000yqn.googlegroups..com> gary <ford...@gmail.com> writes:

I injured my right hand and am having a little trouble clicking. I
want to push these mouse functions to spacebar and spacebar
combinations like Ctrl-spacebar.

There is a farely standard bindkey file that I am using that goes
something like this

hiSetBindKeys( "Layout" list(
list("<DrawThru1>"   "geSingleSelectBox()"
                              "geSingleSelectBox()")  ;EF
))

I am not sure I am quite understanding it, specifically, what is the
Enter Function? and how does someone use it in the bindkey file?

An enterfunction is a command that typically takes mouse input, such as when
you are moving an object, or stretching an object, or drawing an object, or
copying an object.  The "EF" command is what the bindkey will execute during
the enterfunction, as opposed to the "normal" command that is executed when
not in an enterfunction.  If nothing is defined for the enterfunction command,
then the "normal" command will be executed during the enterfunction, also..

Also, does someone know what I can use for Spacebar, shift-spacebar,
ctrl-spacebar, etc, in the bindkey file. I was messing around and
believe the "<key>Space" will work for spacebar, but other ones like
"Shift<Key>Space" do not seem to work

Try "space" instead of "Space".  The key names are case sensitive, and the
printable character keys (yes, "space" is technically a "printable character")
typically use lowercase names ("comma", "space", "period").

One way to get the name is to use xmodmap (which will be in /usr/openwin/bin
on a Sun system, or /usr/X11R6/bin on most other systems) as follows:

# xmodmap -pke | grep -i space

-Pete Zakel
 (p...@seeheader.nospam)

"Cancel me not -- for what then shall remain?
 Abscissas, some mantissas, modules, modes,
 A root or two, a torus and a node:
 The inverse of my verse, a null domain."
thanks Pete, it worked.
 

Welcome to EDABoard.com

Sponsor

Back
Top