IonicWind Software

Creative Basic => GUI Programs => Topic started by: GWS on February 27, 2008, 12:01:16 PM

Title: Mouse DLL
Post by: GWS on February 27, 2008, 12:01:16 PM
Here's another DLL 'port' from EB to CB to add to the mouse features currently available.

(One of these days, they might get included properly ..  ;))

These are the three mouse routines:

Mouse(button)      -  which returns 1 (True) if the mouse 'button number' (1,2,3..4) is clicked.
Mouse_x()            -  which gives the cursor x-position (in Pixels) on the screen.
Mouse_y()            -  which gives the cursor y-position (in Pixels) on the screen.

(I had to use the underscore names to avoid name clash in EB)

(I just realised that the mouse position is already covered by system variables @mousex and @mousey - so the Mouse_x() and Mouse_y() funcitons are only another way to get the position of the mouse.)

The attached zip includes the DLL, a test program, and the code used in EB to create the DLL.

best wishes, :)

Graham

Title: Re: Mouse DLL
Post by: pistol350 on February 27, 2008, 06:20:25 PM
Hi graham!
You forgot to attach the file
Title: Re: Mouse DLL
Post by: GWS on February 28, 2008, 01:13:40 AM
Oops ..  :-[

Graham :)