Quote: "
Focus = HAS FOCUS()
Returns a result of 1 if the DBPro window has the current focus, or 0 if it doesn't.
"
I just tried the following code:
sync on
sync rate 60
do
set cursor 0,0
cls
print mouseclick()
if has focus()
print "HAS FOCUS"
print mouseclick()
else
print "NO FOCUS"
if mouseclick()=4
print "MIDDLE-CLICK"
endif
endif
sync
loop
I think using mouseclick() you only ever get a result if you click on the screen...
Maybe if you added your user 32 code? If you get it working could you post the code? I'd love to see how to do this!