Hi Sean.
--- In [email protected], "swzoh" <[EMAIL PROTECTED]> wrote:
> I updated it to exit the script if the balloon tip is closed too.
Cool script (once again :-).
A couple of questions and remarks, if you don't mind.
Remarks first:
With default settings it doesn't feel very precise. You have to
select the upper left corner of a pixel to get the right color. You
never get the tip of your cursor directly over a pixel (at least I
don't, maybe because of my mouse-settings?). That doesn't feel
right. Also the cursor is not exactly centered in the tooltip.
I thought you might have to consider the zoom. I played around a bit
and tried:
hWnd.move(xmouse-nRect+nZoom/2,ymouse-nRect+nZoom/2)
This gets the tip of the cursor over the pixel-center. Maybe the
zoom should be dividable by 2 to avoid rounding errors. Now the
color isn't right. Doesn't win.getpixel select the color in the
tooltip? Or is it closed already onmousedown? Anyway, win.getpixel
(xmouse-1,ymouse-1) and the same for win.getpixel1 seems to select
the right color. There surely is a better solution, haven't thought
this over, but it feels more precise for me that way.
Maybe a crosshair-cursor instead of the standard one would be good?
The for-loop doesn't throw script-errors anymore in the newest
version, but it stops my monitor-script (and everything else that
PPro might be doing).
Questions:
dll.call("SendMessage|ui ui i a* v",hWnd,1028,0,ti)
dll.call("SendMessage|ui ui i a* v",hWnd,1041,1,ti)
hWnd.trans(1)
What do the sendmessages do and why trans(1)? 0 doesn't work
apparently.
dll.call("SetStretchBltMode|ui i",hDC_TT,4)
I tried it with and without and it doesn't seem to make a
difference, but using halftone for StretchBlt might change some
pixels and colors slightly. As you want to see the actual
pixels, "straight" enlarging without halftoning might be better (and
faster).
dll.call("SetBrushOrgEx|ui i i ui",hDC_TT,0,0,0)
Is this really needed? Seems do to without.
Mockey
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/