--- In [email protected], "dleidinger" <dleidin...@...> wrote:
>
> Hi Sheri,
> 
> > You need to keep holding those keys down until the scripted test for CTRL, 
> > SHIFT, etc. is completed. If you just hold them down while clicking, that 
> > is not long enough. Alt may seem to be working for you because in some 
> > contexts that particular key acts as a toggle (press and release once and 
> > the alt key is down, press and release again and it is up).
> 
> Thanks for the tip, but doesn't work for me. I assigned the following 
> mini-script to the left-click of a button. Tried again and again to hold CTRL 
> or SHIFT longer - no success. 
>  
> if(ctrl)do
>   win.debug("ctrl")    //doesn't work
> elseif(shift)do 
>   win.debug("shift")   //doesn't work
> elseif(win)do 
>   win.debug("win")     //ok, but taskbar
> elseif(alt)do 
>   win.debug("alt")     //fine
> else
>   win.debug("else")    //fine
> endif  
> 
> 

It was on menu items, not bar buttons, that I actually used CTRL and SHIFT 
tests in scripts called in left and right command list items. Bruce says 
shift+left on a bar button is the same as Middle click. There is no Middle 
click on menu items, so maybe that's why it works there to test for CTRL or 
SHIFT. ?

Regards,
Sheri

Reply via email to