| | |
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 build c++ c++intmain() c/c++ char class classes client code coding compile console conversion count counttheoccurenceofanintegerinthe10inputs delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption environment error file forms fstream function functions game givemetehcodez graph gui homeworkassignment homeworkhelp homeworkhelper i/o iamthwee ifstream input int integer java jni lib linkedlist linker loop looping loops map math matrix memory multiple multipledimensionarray news node numbers output parameter pointer problem program programming project python radix random read recursion reference rpg string strings temperature template test text text-file tree url variable vector video vtk win32 windows winsock wordfrequency wxwidgets






