> No, the usage model I have in mind is similar to Crosshair.exe,
I looked at this and realized that I was still stick thinking in
win98 graphics mode. With W2K plus, you can use the following
script, which relies on ability to create semi-transparent bars.
You can change color and transparency as you wish. You could also
make it cross hairs bigger than three pixels, if you want (but not
smaller, I think).
Here is revised script.
; -- cross hair for W2K plus
static bShowing,xpos,ypos,ev, xcrosshair, ycrosshair
if (!bShowing) do
//not showing, draw initial cross hair and set up timer
ev = event.createms(100,0,cb("@update"))
bShowing=1
xpos=xmouse
ypos=ymouse
xcrosshair = cl.create("xcrosshair",1)
xcrosshair.newproperties("format=back: 128 128 128 transparent: 64")
xcrosshair.addproperties("format= left: 0 right: "++xscreen)
xcrosshair.addproperties("format= top: "++ypos-1)
xcrosshair.addproperties("format= bottom: "++ypos+1)
ycrosshair = cl.create("ycrosshair", 1)
ycrosshair.newproperties("format=back: 128 128 128 transparent: 64")
ycrosshair.addproperties("format= top: 0 bottom: "++yscreen)
ycrosshair.addproperties("format= left: "++xpos-1)
ycrosshair.addproperties("format= right: "++xpos+1)
bar.show("xcrosshair")
bar.show("ycrosshair")
else //if called when showing,cancels
if (event.exists(ev))
ev=event.destroy(ev)
bar.close("xcrosshair")
bar.close("ycrosshair")
bShowing=0
endif
quit
// call here to query mouse pos and update
@update
static xpos, ypos,bShowing
if (!bShowing) // should never happen
quit
local xnow=xmouse
local ynow=ymouse
if (xnow != xpos || ynow != ypos) do
xpos=xnow
ypos=ynow
win.move("xcrosshair", 0, ypos-1)
win.move("ycrosshair", xpos-1, 0)
endif
quit
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/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/power-pro/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> 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/