--- In [email protected], miinx <[EMAIL PROTECTED]> wrote:
> Ahh, ok. I can't find where you've used 1 second interval, only the
> line that starts:
>
> event.create(1,0,"win.close("++hWnd++")",;;+
> "Ctrl || !win.visible("++hWnd++")",1)
>
> which is last line, but that's not event.createms() .. is that
> where you mean I should change?
Yes, this line:
event.create(1, -> event.createms(250,
> Also Sean, there's a bug whereby if you open a 2nd (or more)
> ColorZoomer window without selecting anything with the 1st already
> open ColorZoomer window, you get an error:
It's not a bug, rather a consequence of declaring ti as a static (:so
have to release it manually before exit). I didn't expect a user to
start a new one while another one is running. Anyway, I think I better
use local. I uploaded a modified one.
Anyway, you may avoid this by checking at the start of the script:
win.class(win.handlefrompoint(xmouse,ymouse)) == "tooltips_class32"
or alike.
> One other thing -- may I request a Feature? :) It would be
> excellent to be able to cancel a Zoomer window with Esc key..?
Unfortunately, no. I'm already on the verge of 530 character limit.
scriptfolder++?"\"++scriptname++ took already precious 32 more :)
Then, I'd have to add another 25 for KeyTrap.GetKeyState(0,27).
I want to make a room for a user to modify the script as (s)he wants.
Now, really remains little room for it. So, I'd like to keep only
essentials in the script.
BTW, all you have to do when cancelling are just:
dll.call("ReleaseDC|ui ui",0,hDC_SC)
dll.call("ReleaseDC|ui ui",hWnd,hDC_TT)
win.close(hWnd)
So, you may add this part into the script after modifying in the event:
mouseleft -> mouseleft || KeyTrap.GetKeyState(0,27)
Sean
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/