Mouse scrolling in QB

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
Master-of-Mischief
Coder
Posts: 14
Joined: Thu Aug 02, 2007 8:53 pm
Location: USA

Mouse scrolling in QB

Post by Master-of-Mischief » Mon Aug 13, 2007 11:36 pm

Is there a way to use that nifty scroll thing on mice in QB? An interrupt or inp or something?

OPRESION
Veteran
Posts: 61
Joined: Tue Jan 16, 2007 4:15 am
Location: Mexico

Post by OPRESION » Tue Aug 14, 2007 9:38 am

Do you mean the mouse wheel?
MY PAGE: http://Qbasic.phatcode.net" target="_blank
(I ONLY USE WINDOWS 98SE YET, BELIEVE IT OR NOT)

Master-of-Mischief
Coder
Posts: 14
Joined: Thu Aug 02, 2007 8:53 pm
Location: USA

Post by Master-of-Mischief » Tue Aug 14, 2007 12:36 pm

Yeah, the mouse wheel.

User avatar
Mentat
Veteran
Posts: 409
Joined: Tue Aug 07, 2007 3:39 pm
Location: NC, US

Post by Mentat » Tue Aug 14, 2007 4:20 pm

You fire the same interupt, but ax has to equal some value (I think. I'm prestty sure about the same interupt though.)
For any grievances posted above, I blame whoever is in charge . . .

Mac
Veteran
Posts: 151
Joined: Mon Aug 06, 2007 2:00 pm

Don't think so

Post by Mac » Wed Aug 15, 2007 3:19 am

I note that in Windows that contain NOTEPAD, Word, IE, etc., the mouse wheel button works to do automatic scrolling.

BUT in Windows running under CMD or Command such as QBasic and Edit, it doesn't work.

My conclusion: there is no way you can get QBasic or any other program running in DOS to recognize the mouse wheel. It is an invention that came after all work on DOS was completed.

IMHO - Mac

User avatar
Mentat
Veteran
Posts: 409
Joined: Tue Aug 07, 2007 3:39 pm
Location: NC, US

Post by Mentat » Wed Aug 15, 2007 6:36 am

Uhhh...You could write it in a running QB program with scrolling and save it to another file; this is the only loop hole I know.
For any grievances posted above, I blame whoever is in charge . . .

Post Reply