Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mouse-Cursor
#1
What you need:
GetMousePosition - Plugin
+ Your Screen Resolution & LCD-Resolution
+ a Picture of your Mouse 5*5Pixel (you won't need more)

What you get:
a little Mouse-Cursor that behaves like the big one on your big Screen

CODE

#Header
%DefVar(X,Local=0)
%DefVar(Y,Local=0)
%DefVar(Xreal,Local=1024) /Real X-dimension/
%DefVar(Yreal,Local=768)  /Real Y-dimension/
%DefVar(Xlcd,Local=200)   /LCD X-dimension/
%DefVar(Ylcd,Local=64)    /LCD Y-dimension/

%DefFunc(Mouse,Local=
 %Graph.Rect(%X(),%Y(),%Inc(%X(),5),%Inc(%Y(),5),0,0)
 %Assign(X, %UsePlugin('getmousepos\getmousepos.dll','x'))
 %Assign(Y, %UsePlugin('getmousepos\getmousepos.dll','y'))

 %Assign(X,%Round(%Mul(%X(), %lcdX())))
 %Assign(Y,%Round(%Mul(%Y(), %lcdY())))
 %Graph.LoadBitmap('Mouse.bmp',%X(),%Y(),0,0,5,5,0,XOR)
)#EndHeader

#GfxMode
 %Mouse()
#EndGfxMode


Forum Jump:


Users browsing this thread: 1 Guest(s)