Bruce wrote:

b> cl.getpressed returns the currently pressed button, so is only 
b> effective from a bar command.

b> I'll add cl.getlastpressed and cl.getlastmouse which will remember the
b> last button pressed, even if it is now released.

Thanks very much Bruce. That will make a complete set of related commands.

------------------------------------------------

By the way, cl.getpressed lasts after the button is released.
For example I just set a bar button to have the command: .test1

test1.powerpro does this

wait for 10000
;; ten seconds
win.debug(cl.getpressed(cl.getlastbar))
quit

I clicked and quickly released the mouse click, and then I even
clicked on an open window to switch focus. The script returned
the correct index number of the bar button I had pressed and
released ten seconds ago.
I found it is only set to -1 after another user input to Powerpro
such as pressing a hotkey.



Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to