--- In [email protected], sgp <[EMAIL PROTECTED]> wrote:
> An application that enlarges all or part of the desktop so that
> it's easier to see.
I'm not sure if it's what you want, but here is one anyway. It's just
a quick hack of ColorZoomer. OTOH, it doesn't include the cursor
(including the cursor requires extra manipulations).
---------------------- Magnifier.PowerPro ----------------------------
/* Shift+MouseLeft to quit */
local hWnd,hDC_TT,hDC_SC,ti
local nZ=3 ;; zoom factor
local nW=600/2/nZ ;; width of small rect
local nH=120/2/nZ ;; height of small rect
ti=dll.create_array(10,"i",40)
ti[10]=win.getvaraddr("ti")
hWnd=dll.call("CreateWindowEx|ui s s ui i i i i ui ui ui ui",;;+
8,"tooltips_class32","ColorZoomer",3,0,0,0,0,0,0,0,0)
dll.call("SendMessage|ui ui i a* b",hWnd,1028,0,ti)
dll.call("SendMessage|ui ui i a* v",hWnd,1041,1,ti)
hDC_TT=dll.call("GetDC|ui",hWnd)
hDC_SC=dll.call("GetDC|ui",0)
dll.call("SetStretchBltMode|ui i",hDC_TT,4)
dll.call("SetBrushOrgEx|ui i i ui",hDC_TT,0,0,0)
win.size(hWnd,nZ*nW*2,nZ*nH*2)
event.createms(20,0,;;+
"win.move("++hWnd++",xmouse-"++nZ*nW++",ymouse+"++nH++")"++;;+
"++dll.call(?'StretchBlt|ui i i i i ui i i i i ui',"++;;+
hDC_TT++",0,0,"++nZ*nW*2++","++nZ*nH*2++","++;;+
hDC_SC++",xmouse-"++nW++",ymouse-"++nH++","++nW*2++","++nH*2++","++;;+
0xCC0020++")"++;;+
"++do(if(shift && mouseleft,?`event.destroythis()"++;;+
"++dll.call(?'ReleaseDC|ui ui',0,"++hDC_SC++")"++;;+
"++dll.call(?'ReleaseDC|ui ui',"++hWnd++","++hDC_TT++")"++;;+
"++win.close("++hWnd++")"++"`))")
quit
----------------------------------------------------------------------
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/