Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
making the mouse do stuff
#1
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.
Reply
#2
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?
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#3
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.
Reply
#4
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 Big Grin )
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)