Posts: 1,241
Threads: 107
Joined: Feb 2003
i already know how to get the mouse to show up on the screen, but i need to know how to make it so the mouse does something. like maybe when i click on something, it will hilight it or print something. so if you would help me out, that would be such a big help.
the mind is a beautiful thing, use it and make the world a more beautiful place.
Posts: 6,419
Threads: 74
Joined: Mar 2002
There are mouse routines to detect clicks. When a click is detected, you just have to look its coordinates. Depending on where it is, you do something or another.
Which mouse lib are you using?
Posts: 1,241
Threads: 107
Joined: Feb 2003
i dont know, i got the code from a freind. its in machine code and looks like this
Code:
SCREEN 13
ASM$ = ASM$ + CHR$(&HB8) + CHR$(&H01) + CHR$(&H00)
ASM$ = ASM$ + CHR$(&HCD) + CHR$(&H33)
ASM$ = ASM$ + CHR$(&HCB)
DEFSEG = VARSEG(ASM$)
CALL ABSOLUTE (SADD(ASM$))
that just turns it on, i want to know if there is any code to detect a click. no matter the coordinants.
the mind is a beautiful thing, use it and make the world a more beautiful place.
Posts: 6,419
Threads: 74
Joined: Mar 2002
Then look for a complete mouse library. You need functions to show and hide the mouse cursor, and to read status (that means read clicks and coordinates).
I can point you here:
http://www.basicguru.com/abc/mouse.htm
( the almighty ABC packets
)