I wrote:
A> Here, cl.getpressed always returns -1
On further testing, it remembers the last pressed button
but only briefly.
For example if I left click a button on "Infobar" and then
use my hotkey Win+Z to run a script which does:
win.debug(cl.getpressed("Infobar"))
then it returns -1
If I left click a button on "Infobar" which runs the script which does:
win.debug(cl.getpressed("Infobar"))
then it returns the correct item number.
Because a hotkey is not a bar button (of course), maybe
it would be better if it remembers the most recent bar button
pressed, and pressing a hotkey does not clear it to -1
______________________________________________
Another point:
These three new functions are very useful when used in various
combinations: cl.getpressed(barname) cl.getlastbar lastbuttontype
To make the set complete, can you make a new function
cl.getpressedClick(barname) [or maybe lastbuttonClick]
which returns "L" or "M" or "R"
to indicate which mouse button was used on the most recently
pressed bar button?
thanks,
Alan
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/