| | |
mouse functions for DOS
![]() |
win32 api GetConsoleCursorInfo()
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
I don't know about .NET, but the Win32 functions are all listed here: Console Functions (MSDN).
You will need to enable mouse input with SetConsoleMode.
You can read it using ReadConsoleInput.
Use GetStdHandle to get a windows handle for the console input.
Use GetNumberOfConsoleInputEvents to poll for any console input, or use the console input handle with one of the wait functions.
Hope this helps.
[EDIT] Alas, AD, the cursor info is for the little blinking square or underline in the output console display.
You will need to enable mouse input with SetConsoleMode.
You can read it using ReadConsoleInput.
Use GetStdHandle to get a windows handle for the console input.
Use GetNumberOfConsoleInputEvents to poll for any console input, or use the console input handle with one of the wait functions.
Hope this helps.
[EDIT] Alas, AD, the cursor info is for the little blinking square or underline in the output console display.
Last edited by Duoas; Jan 21st, 2008 at 7:07 pm.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Here are some example console programs. I have not used to code for a few years, but since its win32 api functions I suppose the programs will work with modern compilers.
Last edited by Ancient Dragon; Jan 21st, 2008 at 8:01 pm.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
•
•
Join Date: Jan 2007
Posts: 15
Reputation:
Solved Threads: 0
•
•
•
•
Here are some example console programs. I have not used to code for a few years, but since its win32 api functions I suppose the programs will work with modern compilers.
Ross
•
•
•
•
Those links don't work for you?
Don't you dare put words in my mouth. If you want to edit your own posts again have fun.
MSDN is FREE for god's sake. www.microsoft.com But I suspect you are talking about the subscriptions which have huge annual fees.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
![]() |
Similar Threads
- i need a calculator too... (Assembly)
- memory management in wndows 2000 (Windows NT / 2000 / XP)
- DECLARATION SYNTAX ERROR (for bc 31 user) (C++)
Other Threads in the C++ Forum
- Previous Thread: Class Movie...error undeclared identifier
- Next Thread: Help on function pointers
| Thread Tools | Search this Thread |
api array based binary bitmap business c++ c/c++ char class classes code codesamplerunwhilecommands coding commentinghelp compile console conversion count decide delete deploy desktop developer directshow dissertation dll download dynamic dynamiccharacterarray email encryption error faq file forms fstream function functions game givemetehcodez graph guess gui hash homeworkhelp homeworkhelper iamthwee ifpug ifstream incrementoperators infinite input int integer java lib linkedlist linker loop looping loops map math matrix memory multiple news node output parameter pointer problem proficiency program programming project python random read recursion reference rpg string strings temperature template test text text-file tree url variable vector video win32 windows winsock wordfrequency wxwidgets






