--- In [email protected], "brucexs" <[EMAIL PROTECTED]> wrote:
>
> > > I also noticed PP's 100% usage in Process Explorer, however, I've
> 
> What was the for loop content that caused this?  The source just has 
> the event version now.

It was:

for(!mouseleft)
hWnd.move(xmouse - nRect,ymouse - nRect)
dll.call("StretchBlt|ui i i i i ui i i i i ui",;;+
hDC_TT, 0, 0, nRect * 2, nRect * 2,;;+
hDC_SC, xmouse - nRect/nZoom, ymouse - nRect/nZoom,;;+
nRect/nZoom * 2, nRect/nZoom * 2, 0xCC0020)
endfor

IMO, 100% CPU usage doesn't really matter in this case as I've never
experienced any slow-down of the system. The only trouble was that
couldn't do any other PP things concurrently: if I press a PP's
hotkey, it's delayed until the loop ends, then executed. However,
KeyTrap's hotkeys worked concurrently without any delay. Some kind of
multi-threadness stuffs?

> BTW, the colour picker script is very nice. 

Thanks.

> Have you ever considered starting to write plugins ini C or C++?
> This script is almost directly how you would do it in C ;
> after making the dll.calls into straight C, the main change would be
> to use a timer to replace the event.

Alan once asked about it, my answer at that time was no as I thought
that I didn't have a knowledge in C/C++. Then, Alan told me that
programming in them are just a bunch of this and that API calls, with
the usual constructors and syntax. I may try if I can.

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/
 



Reply via email to