supplierdeeply

should the Alt key be disabled while a script is active ?

  • 21 Replies
  • 3681 Views
*

Offline reyalp

  • ******
  • 11541
Re: should the Alt key be disabled while a script is active ?
« Reply #20 on: 30 / August / 2013, 18:25:56 »
Advertisements
I guess it's clear that there is little support for disabling the <ALT> key while a script is running.
I think the current mostly unspecified behavior is not useful. I'm not sure yet what the specified behavior should be. Some options:
  • define the current behavior as the specified behavior ;)
  • pause the script
  • ignored, key just goes to script
  • bring up a menu, as described earlier
  • abort the script (makes accidental presses worse, but frees up shutter)
  • script controllable, from some mix of the above. With #3, you could implement most of the other options, but that would make ignoring it the default
  • user configurable
Pretty much any of these except #1 is a change to the existing behavior, so we should think about what we want.
Quote
That being the case,  I wonder what people think about keyboard handling when a script is running outside of <ALT> mode?
Unspecified.
Quote
Working on something today,  I realized that when I accidentally exited <ALT> with a script running,  both the Canon firmware and my script were receiving the same key presses. 
Yes. I don't think this isn't particularly desirable. If you could choose which keys passed through, that would be a different story. The other effect of this is that the script can't send key presses, though you could post levents instead...
Don't forget what the H stands for.

Re: should the Alt key be disabled while a script is active ?
« Reply #21 on: 30 / August / 2013, 18:30:29 »
script controllable, from some mix of the above.
I'm leaning this way - for the shutter button question too - in part because nothing changes for the user unless he/she runs a script that changes things - caveat emptor at that point.

The other effect of this is that the script can't send key presses, though you could post levents instead...
You would still need a mechanism for the script to know you had exited <ALT>.  Can't think of an easy way right now.   I guess you'd have to use levents for every keypress in your script if you wanted to be covered.
« Last Edit: 30 / August / 2013, 18:36:24 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics