C Programming Reference >> C Advance Programming Tutorials >>
Mouse Programming In Cequisite Knowledege
02/01/07 - Views - Ratings : 0 of 5 / Votes
Level - Beginner
In this tutorial you will learn how to do mouse programming through C. Mouse Programming in C is simple and beginners can give it a shot if they undestand carry on otherwise read the basic tutorials first and then comeback and learn how to do Mouse Programming using C. Before we get our hands dirty we begin with a breif intro.
Mouse has revolutionized the Computer World . It was introduced with GUI which stands for Graphical User Interface.
It was a big step forward thrusting computer from command line execution to hot and happening menu driven applications that we see today. Many GUI were based on keyboards but they never outweighed thier opponents based on mouse reason is simple, just imagine your Windows or Linux to be keyboard driven. Nothing less than a nightmare it seems.
Mouse is simple input device which allows you to point and execute interface and is faster than keyboards many times. Mouse generally provide random interface on other hand keyboards provide sequential interface.
This article will act as a complete source of Mouse Programming in C and covers it all aspects. If we still miss something please inform us and we will try to cover it next revised edition.
Mouse Programming is a topic which every c programmer from begginer to professional needs to have in his toolbox to have a cutting edge.
Mouse Programming will be used almost everywhere. It will embeded in games programming to commerical valued applications. So if you aim to easily understand other tutorials in this website you must master this topics and believe me its very easy.
Contents -
1. Requirements
2. Fundamental Knowledge.
3. AX Register
4. Detecting Mouse
5. Showing & Hiding Mouse
6. Detecting Input
7. Mouse Coordinates
8. Restricting Mouse
9. What Next?
1. Requirements
First and Formeost requirement which i believe will surely be satisfyied, you should have a mouse attached to your system.
This tutorial is written Turbo C++ 3.0 IDE and install in folder C:\TC. I recommend to use same IDE and settings to avoid any uncompatibility and even if you face any problem we provide an 24 X 7 Email Support to help you out.
You should have proper mouse driver for your hardware, this is also not a problem because almost 100% of operating System provide them through program MOUSE.COM or WITTYMS.COM.
That is all you need.
Back To Top
2. Fundamental Knowledge
Before we start harcore programming we must first understand some principles on which mouse programming is based.
First thing you must know how to tell a mouse to do anything. In actual we doesnot communicate with mouse directly but through the driver provide. We use interrupts to get access to this driver. Each device provide by computer has its own port and more or less we access these ports.
Each device has a unique port which is a hexadecimal value and value is designed to be machine independent enhancing portability of program.
Mouse has port attached to it 0X33 and similarly keyboard has attach to it port 0X60. We restrict ourself only to mouse port in this tutorial but keyboard is also used extensively in other programs especially ones related to games programming.
We also make use of address registers. These are basically Union of type REGS defined in dos.h. You dont need further knowledge of them for programming. Just remember we use two register to communicate to a device driver using two registers one for input and one for output.
We send value to device driver through the input register and recieve information in it embedded in output register.
Back To Top
3. AX Register
We can access various mouse functions using different values of AX input Register and passing those values to mouse port using a interrupt
The Functions are listed below - Here AX, BX, CX and DX are members of Union REGS and more or less integers.
Input Function Performed Returns
AX = 0 Get Mouse Status Output AX Value = FFFFh if mouse support is available.
Output AX Value = 0 if mouse support is not available.
AX = 1 Show Mouse Pointer Nothing
AX = 2 Hide Mouse Pointer Nothing
AX = 3 Mouse Position CX = Mouse X Coordinate
DX = Mouse Y Coordinate
Ax = 3 Mouse Button Press BX = 0 No Key Is Pressed
BX = 1 Left Button is Pressed
BX = 2 Right Button is Pressed
BX = 3 Centre Button is Pressed
Ax = 7 Set Horizontal Limit Nothing
CX = MaxX1
DX =MaxX2
Ax = 8 Set Vertical Limit Nothing
CX = MaxX1
DX =MaxX2
Now we step by step study each of these services in following sections and build up our combined code.
Back To Top
4. Detect Mouse
Before you start your embed mouse program you should always check wether the mouse programming is supported on not.
If some how mouse fails to initalise you should always make sure that either program terminates or employ a error handling approach that maybe shift to keyboard interface .
To do mouse programming you must include <dos.h>. We use a function called int86 to access interupts.
To detect mouse we use a function name detectmouse which has following code -
#include <dos.h>
union REGS in, out;
void detectmouse ()
{
in.x.ax = 0;
int86 (0X33,&in,&out);
if (out.x.ax == 0)
printf ("\nMouse Fail To Initialize");
else
printf ("\nMouse Succesfully Initialize");
}
int main ()
{
detectmouse ();
getch ();
return 0;
} |
Back To Top
5. Showing and Hiding Mouse
Now first we show mouse on screen .
Mouse works both in text mode and graphic mode.
In text mode it looks like a square while in graphics mode it looks like a pointer.
Here is a screen shot for text mode.

It was produced from adding a function showmousetext to above code so code becomes -
#include <dos.h>
union REGS in, out;
void detectmouse ()
{
in.x.ax = 0;
int86 (0X33,&in,&out);
if (out.x.ax == 0)
printf ("\nMouse Fail To Initialize");
else
printf ("\nMouse Succesfully Initialize");
}
void showmousetext ()
{
in.x.ax = 1;
int86 (0X33,&in,&out);
}
int main ()
{
detectmouse ();
showmouse ();
getch ();
return 0;
} |
Here is a screen shot for graphic mode -
This is achieved using a function showmousegraphic added to above code while removing showmouse text from main.
#include <dos.h>
#include <graphics.h>
union REGS in, out;
void detectmouse ()
{
in.x.ax = 0;
int86 (0X33,&in,&out);
if (out.x.ax == 0)
printf ("\nMouse Fail To Initialize");
else
printf ("\nMouse Succesfully Initialize");
}
void showmousetext ()
{
in.x.ax = 1;
int86 (0X33,&in,&out);
}
void showmousegraphics ()
{
int gdriver = DETECT, gmode, errorcode;
initgraph(&gdriver, &gmode, "c:\\tc\\bgi");
in.x.ax = 1;
int86 (0X33,&in,&out);
getch ();
closegraph ();
}
int main ()
{
detectmouse ();
showmousegraphics ();
getch ();
return 0;
}
|
Next we do realtively simple task of hiding mouse using a function hidemouse as shown below -
#include <dos.h>
#include <graphics.h>
union REGS in, out;
void detectmouse ()
{
in.x.ax = 0;
int86 (0X33,&in,&out);
if (out.x.ax == 0)
printf ("\nMouse Fail To Initialize");
else
printf ("\nMouse Succesfully Initialize");
}
void showmousetext ()
{
in.x.ax = 1;
int86 (0X33,&in,&out);
}
void showmousegraphics ()
{
int gdriver = DETECT, gmode, errorcode;
initgraph(&gdriver, &gmode, "c:\\tc\\bgi");
in.x.ax = 1;
int86 (0X33,&in,&out);
getch ();
closegraph ();
}
void hidemouse ()
{
in.x.ax = 2;
int86 (0X33,&in,&out);
}
int main ()
{
detectmouse ();
showmousegraphics ();
hidemouse ();
getch ();
return 0;
}
|
Back To Top
6. Detect Input
We will now work on a important aspect of mouse programming detecting clicks.
We make use of an aditional function known as kbhit ( ). This functions returns zero till any keypress and when a key is press it returns 1.
We use kbhit to run a infinite while loop.
For detecting mouseclicks we use a function called detect which displays on screen the respective button clicked. Press any keyboad key to exit the loop.
#include <dos.h>
#include <graphics.h>
union REGS in, out;
void detectmouse ()
{
in.x.ax = 0;
int86 (0X33,&in,&out);
if (out.x.ax == 0)
printf ("\nMouse Fail To Initialize");
else
printf ("\nMouse Succesfully Initialize");
}
void showmousetext ()
{
in.x.ax = 1;
int86 (0X33,&in,&out);
}
void showmousegraphics ()
{
int gdriver = DETECT, gmode, errorcode;
initgraph(&gdriver, &gmode, "c:\\tc\\bgi");
in.x.ax = 1;
int86 (0X33,&in,&out);
getch ();
closegraph ();
}
void hidemouse ()
{
in.x.ax = 2;
int86 (0X33,&in,&out);
}
void detect ()
{
while (!kbhit () )
{
in.x.ax = 3;
int86 (0X33,&in,&out);
if (out.x.bx == 1) printf ("Left");
if (out.x.bx == 2) printf ("Right");
if (out.x.bx == 3) printf ("Middle");
delay (100); // Otherwise due to quick computer response 100s of words will get print
}
}
int main ()
{
detectmouse ();
showmousetext ();
detect ();
hidemouse ();
getch ();
return 0;
} |
Back To Top
7. Mouse Coordinates
We can obtain the coordinates of the mouse using same service 3 but using different elments of the union .
This function has a prime use in games programming, application designing and GUI development. Different decisions are taken on same left button click, its the postion of click that matters.
BX element of output registers stores the X Coordinate of the postion of mouse at time of calling function.
CX element of output registers stores the Y Coordinate of the postion of mouse at time of calling function.
Now we demonstrate the use of this function by modifying detect function above to display x,y and y coordinates on screen when left click is pressed.
Code will be as followed -
#include <dos.h>
#include <graphics.h>
union REGS in, out;
void detectmouse ()
{
in.x.ax = 0;
int86 (0X33,&in,&out);
if (out.x.ax == 0)
printf ("\nMouse Fail To Initialize");
else
printf ("\nMouse Succesfully Initialize");
}
void showmousetext ()
{
in.x.ax = 1;
int86 (0X33,&in,&out);
}
void showmousegraphics ()
{
int gdriver = DETECT, gmode, errorcode;
initgraph(&gdriver, &gmode, "c:\\tc\\bgi");
in.x.ax = 1;
int86 (0X33,&in,&out);
getch ();
closegraph ();
}
void hidemouse ()
{
in.x.ax = 2;
int86 (0X33,&in,&out);
}
void detect ()
{
while (!kbhit () )
{
int x,y;
in.x.ax = 3;
int86 (0X33,&in,&out);
if (out.x.bx == 1)
{
x = out.x.cx;
y = out.x.dx;
printf ("\nLeft || X - %d Y - %d", x, y);
}
if (out.x.bx == 2) printf ("\nRight");
if (out.x.bx == 3) printf ("\nMiddle");
delay (10); // Otherwise due to quick computer response 100s of words will get print
}
}
int main ()
{
detectmouse ();
showmousetext ();
detect ();
hidemouse ();
getch ();
return 0;
}
|
Back To Top
8. Restricting Mouse
We now restrict the mouse in particular rectangle .
We create a function called restrict which takes four paramters, two cartesian points each containing one x coordinate and one y coordinate.
First point mentions the top of the rectangle while second point mention the bottom bottom point of rectangle.
This service has limited uses but can be quite handy in special circumstances, for eg - if you want to restrict your mouse in one particular size window in GUI or In Games Programming.
Now i give you final code of the tutorial -
#include <dos.h>
#include <graphics.h>
union REGS in, out;
void restrict (int x1,int y1,int x2, int y2)
{
in.x.ax = 7;
in.x.cx = x1;
in.x.dx = x2;
int86 (0X33,&in,&out);
in.x.ax = 8;
in.x.cx = y1;
in.x.dx = y2;
int86 (0X33,&in,&out);
}
void detectmouse ()
{
in.x.ax = 0;
int86 (0X33,&in,&out);
if (out.x.ax == 0)
printf ("\nMouse Fail To Initialize");
else
printf ("\nMouse Succesfully Initialize");
}
void showmousetext ()
{
in.x.ax = 1;
int86 (0X33,&in,&out);
}
void showmousegraphics ()
{
int gdriver = DETECT, gmode, errorcode;
initgraph(&gdriver, &gmode, "c:\\tc\\bgi");
in.x.ax = 1;
int86 (0X33,&in,&out);
getch ();
closegraph ();
}
void hidemouse ()
{
in.x.ax = 2;
int86 (0X33,&in,&out);
}
void detect ()
{
while (!kbhit () )
{
int x,y;
in.x.ax = 3;
int86 (0X33,&in,&out);
if (out.x.bx == 1)
{
x = out.x.cx;
y = out.x.dx;
printf ("\nLeft || X - %d Y - %d", x, y);
}
if (out.x.bx == 2) printf ("\nRight");
if (out.x.bx == 3) printf ("\nMiddle");
delay (10); // Otherwise due to quick computer response 100s of words will get print
}
}
int main ()
{
detectmouse ();
showmousetext ();
restrict (100,100,500,500); // Change values here to create different mouse movement space.
detect ();
hidemouse ();
getch ();
return 0;
}
|
Back To Top
9. What Next ?
Now first thing you must do is congratulate yourself because you just added a super weapon to you arsenal.
Now there is no stopping you. Let your creativity flow and world class products come out of your computer.
To get you started here what you can do with mouse programming -
1. Games Programming
2. Commercial Applications Development.
3. Graphical User Interface
4. Utitlity Softwares such as Paint, Word Processors , Spread Sheets and so on....
Before you get your hands dirty we recommend you go through our game building and application building Tutorials. Most of them are based mouse programming.
Also if you still want to hone your mouse programming skills further go through our advance tutorials such as mouse cursors, mouse drawing, menu through mouse and more...
Back To Top
Reader Comments -
| Akshat
|
Was Looking for this knowledge all over.
|
| Ahmed
|
Tons Of Knowledge!!!
|
| satyendra singh
|
superb artical
|
| hitesh sharma
|
really very helpful it was.
|
| Sohil Arora
|
Simply a superb article!!! Saved me from going through tons of books on the subject
|
| Sohil Arora
|
Simply a superb article!!! Saved me from going through tons of books on the subject
|
| vishal kedia
|
i have never seen such a lucid language to explain any thing
|
| Mahesh
|
than u.this is very excellent and very useful my project.
|
| mahesh
|
a small mistake in mouse coordinates,in the place of cx and dx u printed it as bx and cx.please modify that one.thanks.
|
| y v satyanarayana r
|
Excellent description . I am very thankful for this description.
|
| daniel rex.p
|
really superb ......i was fed up searching it everywhere..
|
| Shiv Prakash maurya
|
Very useful for beginners .I hope same in future.........................
|
| Sajal Gupta
|
Amazing Amazing Amazing :) That Says it all :)
|
| Rakesh kumar
|
Excellent !!!!!!!! Thanks alot.. i was looking for this stuff ........... thank alotttttttttt
|
| Atul Pal
|
Thnk u very much for this wonderful tute of advanced mouse programming.
|
| saurabh
|
i was looking for this only. tailor made for me. thanks a lot.
|
| alivia
|
THANKS A LOT,IT IS VERY HELPFUL
|
| madhur mehta
|
such powerful and excellent explanation i never had 4m anyone....that made me understand in a single go.....thanx a lot...
|
| akash
|
thanx thanx thanx................u r blessed
|
| venkat ramana
|
its very helpful
|
| sajaya
|
Really it's simply excellent, i have never seen such easy way to understand any program , ihave searched more than one month for this in net , but not get any thing. now i got it
|
| VIVEK SRIVASTAVA
|
WILL HELP ME IN MY MINI PROJECT THANKS
|
| Rehman
|
I was searching such kind of programming I realy like it much
|
| soumi chatterjee
|
it's great.i was searching for the concept.it would help me in my project...thanks a lot.
|
| Le My Canh (From Vietnam)
|
Thanks al lot!!
|
| vikas gupta
|
nice approach!!!!!!!!!!thnx
|
| Dipak Gaire
|
great page ....thankx
|
| Anand
|
It's good to see nice tutorial link this
|
| Manas
|
Amazing, I just got one more item in my belt to use in my project during summer vacations. Thanks to you I might rest assured get full marks in project. How can I thank you! GREAT JOB! YOU ROCK
|
| TRUSIT SHAH
|
This is the best program of using mouse in c. I am so thankful of that man who has made this.
|
| bibhuti
|
thanks for a brilliant totorial.i was looking for this type of prog.
|
| unknown
|
it ws very nice 2 c ur page.... b'coz we really needad it... thanx buddy
|
| the vow
|
cool this is exactlly what i need
|
| vishal
|
outstanding...simply great...like a honey thru your throat...!
|
| gajender singh
|
great programming.thank u i am looking for this type of programming.
|
| Kapoor
|
The product is quite simple for a gud start...!
Gr8 Work, Thnx
|
| Aayush
|
was excellent i was never able to understand mouse programming but here it was so easy
|
| Pulkit
|
Nice, keep it up ~
|
| Ashu
|
Thanx a lot. its really wonderful.
|
| Ramesh
|
Please sent the pgm in my mail Id Ramesh09_soft@yahoo.co.in
|
| pavi
|
its so excellent to learn basic funtions of graphics and its so easy
|
| sukumar
|
it's a helpfull tutorial for the newbie in mouse prpogramming
|
| sudh
|
Great tutorial , i dont think so i can get breif idea about mouse programmng even if refer good ebook
|
| Chidhambaram
|
Nice article for beginners about mouse programming.
|
| parikshit
|
dats really gr8.. dats the thing what i really want niceeeeee. ..
|
| tanmoy
|
its really helps me alot..
|
| Hardik
|
its really very good for the beginners. but it shuld also provide more details regarding advance mouse interaction such as mouse click detection, etc
|
| Anantharaj Manoj
|
it is very good,especially for the beginners. I request to add more and more programs related to it.
|
| Kelvin Mushure
|
it is a leading age technique that has groved my proramming skills to a blue chip level
|
| Rajz
|
WoW! All about mouse handling in C ! Easy to understand
|
| Binu
|
nice tutorial. patient and well explained :)
|
| Binu
|
nice tutorial. patient and well explained :)
|
| Abhinav Rastogi
|
Great tutorial!! Thanks a lot!! Nice and easy does it... -http://thephotoshopper.blogspot.com
|
| NILESH AGNIHOTRI
|
SUPERB MOUSE PROGRAMMING GUIDANCE.
|
| viKAS MEHTA
|
THAT'S NICE THAT I WANT
|
| kailas
|
tell me more knoledge
|
| SANCHIT AGRAWAL
|
THAT'S EASY AND SIMPLE TO UNDERSTAND.
|
| RAJESH KUMAR
|
ITS REALY NICE PROGRAM.
|
| Vaibhav Bhardwaj
|
It's good. Thanks
|
| owenheart
|
Nice code... it helps alot.. please show us more
|
| james
|
helpful program thanks for helping hand
|
| deependra
|
it is very helpfull for every student who wants to know about mouse programming
|
| Abhirup
|
the tutorial is just awesome...i found everything that i was looking for....i was able to write simple graphics programs after reading some helps in C and surfing the net but couldn't use the mouse and that was a big trouble for me.I was thinking to build a project in C and now i can use mouse pointer there.... thank you very much... :)
|
| Pradyot
|
Absolutely Superb Tutorial !! Helped me just in time to have an edge above the others in a National Project Display !! Thanks !!
|
| Yan Parkdey
|
it a good Turtorial Thank you so much
|
| Chiranjib Sur
|
Really excellent work. Has no parallel .
|
| Venkatesh
|
Well explained.More detailed explanation could make this 5/5 rated.
|
| Kaushalendraaaaaaaaaaaaaaaa
|
thanxs a lot buddy
|
| abhinav dhoke
|
samajh nahi aaya
|
| vikas agrawal
|
very funny.........
|
| nikhil
|
will it help in our project??
|
| VIVEK JHAWAR
|
it is very helpful...
|
| RAM NIWAS DHAKAD
|
ACCHA HAI PAR MERE SE JYADA INTELIGGENT AUR ACCHAA NAHI TO FIR RATING KYON DU
|
| JOJO
|
KITNE MISSED CALL MAROGI BHAI??
|
| RAM NIWAS DHAKAD
|
ACCHA HAI PAR MERE SE JYADA INTELIGGENT AUR ACCHAA NAHI TO FIR RATING KYON DU
|
| vicks babzzz
|
i luv vijeta
|
| JOJO
|
KITNE MISSED CALL MAROGI BHAI??
|
| abhinav dhoke
|
MERA MAJAK MAT UDAO
|
| BANDE
|
I LOVE PRATIBHA.....
|
| JOJO
|
KITNE MISSED CALL MAROGI BHAI??
|
| BANDE
|
I LOVE PRATIBHA.....
|
| milind
|
JOJO AUR VICKS BABBZ BHAI BAHAN
|
| DIPSY
|
UPAR KE LOGO ME SE KOI MERA SAR PHODO
|
| BANDE
|
I LOVE PRATIBHA.....
|
| KUNAL AND RUDHIR
|
HUM CHAKKE HAIN
|
| PRIYANKA
|
EK BAAT BATAYEIN NAYAK NAHIN KHALNAYAK HAIN HUM
|
| KUNAL AND RUDHIR
|
HUM CHAKKE HAIN
|
| KUNAL AND RUDHIR
|
HUM CHAKKE HAIN
|
| PRIYANKA
|
EK BAAT BATAYEIN NAYAK NAHIN KHALNAYAK HAIN HUM
|
| JOJO
|
ARE BHAI MUJHE KAHIN SE CALL AAYEGA YA NAHI MBA MAIN......... PLZ ......SUGGEST ME
|
| abhinav dhoke
|
KOI MERE BARE ME TO BOLO
|
| PRIYANKA
|
EK BAAT BATAYEIN NAYAK NAHIN KHALNAYAK HAIN HUM
|
| abhinav dhoke
|
KOI MERE BARE ME TO BOLO
|
| abhinav dhoke
|
KOI MERE BARE ME TO BOLO
|
| MUMMY
|
MERA PHOTO NA LEKAR SAHI NAHI KIYA
|
| PRIYANKA
|
EK BAAT BATAYEIN NAYAK NAHIN KHALNAYAK HAIN HUM
|
| abhinav dhoke
|
KOI MERE BARE ME TO BOLO
|
| abhinav dhoke
|
I LUV KEKRE
|
| MUMMY
|
MERA PHOTO NA LEKAR SAHI NAHI KIYA
|
| abhinav dhoke
|
MAIN BHI BOLUNGA TAB SE SHAANT THA MUJHE KUCHH NAHI BOLNE DIYA
|
| SWATI AND SUPRIYA
|
WE ARE ABNORMAL
|
| bamma
|
MOTA aa gaya reeeeeeeeeeeeee
|
| milind
|
I LUV VOLLYBALL KYONKI MERI PHANTI KHELTI HAI
|
| NIKHIL
|
ARE MUMMY JARA MERA BHI DHYAN RAKH LIYA KARO
|
| SHREYA
|
DOODH DOODH DOODH DOODHHHHHHHHHHHHHHHHHHH
|
| khan sir
|
r u getting or not
|
| nikhil
|
ab meri height wali dhundho
|
| NIKHIL
|
ARE MUMMY JARA MERA BHI DHYAN RAKH LIYA KARO
|
| SHUBHAM
|
MERE KHANDAN MEIN SABHI SHUBHAM RAHENGE
|
| aadi
|
medhak aise kaise has lete hain
|
| nikhil
|
ab meri height wali dhundho
|
| aadi
|
medhak aise kaise has lete hain
|
| nikhil
|
ab meri height wali dhundho
|
| viks bappzzz
|
bande ki maa ka bh****a mummy ko pata liya
|
| aadi
|
medhak aise kaise has lete hain
|
| Teelu
|
its nice par bakwaas hai bas hame taapne ko mila
|
| Anirudh
|
Excellent article. All that u need 2 know bout mouse programming . helped a lot. Thanks
|
| Vikas Verma S.G.S.I.T.S
|
Very nice article. It gives detail about the mouse related programming!! helped a lot. Thank
|
| Nikita cake
|
I LUV U DEEPU MODI
|
| abhinav d
|
very good article,takes time to understand but helpful
|
| Wizard
|
Very Informative tutorials.
|
| yoger
|
Superb article.......Good to learn quickly....
|
| Bill gates
|
Not Exellent... But Good
|
| Siddhant Gupta
|
Very good and easy to understand for a begginer.
|
| Satyendra Kr Sharma
|
Exactly what I needed..... very nicely defined the topic . great Information.....
|
| J@z
|
everything explained very efficiently ........in a very small n simple way............
|
| Neeraj Garg
|
quiet easy to learn & enjoyable ******* 7 star
|
| GAURAV SINGLA
|
Thanks a lot....I am now tutorilized in c hardware intrection mostly in mouse .....Thanks for this ......If u have another tutorial of hardware tutorial Email me .....auspicicious_gaurav@rediffmail.com
|
| piyush
|
this is a very excellent mode of sharing Knowledge.
|
| sparco
|
VERY GOOD BEST TUTorial i have ever found in net!
mouse pogramming for turbo c i hav searched never got this site at all!
|
| Sundarrajan
|
its really nice ! its very useful for me to handle mouse in C programming ! thanks a lot
|
| saumil
|
You should add new programs related to this mouse use.
|
| java
|
it was what i wanted
|
| s.singha
|
its a fantastic example and guide for the beginners ....Execellent site and help.....
|
| google
|
very good and helpful for all
|
| vivek tiwari
|
i m having a serious problem, if mouse is shown in white background colour... mouse becomes invisible what should i do?
|
| kalu ka ladoo
|
mujhe poti jaana hai lekin akale darr lagta hai.plz aap bhi chalo
|
| ansul gupta nitm cs gwalior
|
that was so informable
|
| Senthil
|
Really it is very useful for me. This is great tutorial i ever seen.
|
| mahesh
|
i am very very thankfull to all of yut for giving me code of mouse handling.
|
| ritika
|
it's really helpful to me....
|
| siddharth
|
i love kriti sehgal!!
|
| Gheorghe Matei
|
For this GREAT!!! thing any word is nothing.
|
| deepak
|
Its very useful to me................
|
| Gaurav Sharma
|
A really very nice tutorial Really helped me a lot
Thanks for this and try making ore tutorial like this
The best tutorial i have ever seen
|
| anshul patel
|
it is a nice tutorial .It helped me alot. thanx.
|
| virat
|
thnx really helped me a lot
|
| Niranjan
|
The flow is really simple to understand . thank u
|
| sandip pandey
|
GOOD TUTORIAL
|
| Avdhut Chavan
|
it's nice information. really helped me a lot thanx........
|
| Anoop
|
its ...realy good tutorial
|
| Sree Kumar Mca @ scms kerala
|
really cool and Simple..........
Tanx a lot....
Keep Posting
|
| husna
|
Excellent work!!! Thanks.
|
| amol nikate
|
providing such great information is really great... thanks allout
|
| shruti vyas
|
Thank you for this helping article..
|
| A.Dinakaran B.tech
|
nice .... it is very usefull... thanks
|
| mohit upadhyay
|
very nice . it's hepl me to understand mouse programming
|
| saurabh morchhale
|
very helpful & knowledge-oriented article superb work &thanks....
|
| Amith
|
Pls prepare a tut of advanced C++ apps and their implementation.
Excellent work.
|
| Radhika
|
awsome content.............. quite useful. Thanx !
|
| Akshat Nigam
|
I was thinking for it to add it in my program. Suddenly, i found it. Thanks..........
|
| Akshat Nigam
|
I was thinking for it to add it in my program. Suddenly, i found it. Thanks..........
|
| ABHILASH MISHRA
|
VERY NICE AND TAILOR MADE
|
| arunasuji
|
very good informative
|
| Rajneesh
|
realy nice article...
|
| Dushyant Goswami
|
Keep up the good work.
|
| bishwa
|
thanks for helping......like this way.......it is realy easy to search and read.......and understand......thanks
|
| Saikat
|
Mind blowing description. Thanx a lot.
|
| Mahendra Singh Bisht
|
Thanks a ton, this article is really impressive and handy to digest for computer as well as programmer. thanks
|
| sarvesh
|
superb,mind blowing,fantastic,,,, jai mata di rocks
|
| Israel
|
Very usefull...thank you so much...Dominican Republic...
|
| ishwar chauhan
|
it was excellent , thanku for guiding
|
| sanjay chandrakant salunkhe,virar
|
the information was very helpfull.. thank you so much..
|
| praveen
|
simply outstanding
|
| tormentor
|
superb material.
|
| jr
|
how can i move a rectangle when mouse cursor move in mouse programming in c....??? if u have some idea replay soon......
|
| sreedev
|
good codes..........
|
| sreedev
|
Why mouse pointer is restricted to half screen when i run (I'm not using any restriction function)...first it was working when i try to run it on next day it happened
|
| Priyanka Gosavi
|
Nicely interpreted,and easy to understand
|
| simplysivu
|
I thought mouse programming is tough but you made it as a cake walk. give clearly about int 86, in and out registers
|
| GAZAL
|
Reall an intresting and an useful text fuul of knowledge thanks for providing
|
| k.m.yadeeshkumar
|
sir,it's really excellent sir and i need how to change how cursor,how to draw using mouse.
|
| dheeraj kuamr
|
thanks for providing this useful topic because i realy don't know about this....thanks again....
|
| Kunal
|
thanks it really help me a lot
|
| MANISH
|
EXCELLENT FOR A NOVICE.
|
| Raaj
|
Here is the article for Mouse programming in C. In this link full details are given nicely. http://electrofriends.com/articles/computer-science/c-tutorials/mouse-programming-in-cc/
|
| shiva
|
rajshiva26@YAHOO.COM
|
| Sachin
|
This exercise is very benifitial for me .i learned a lot by this....
|
| kotireddy
|
this tutorial is very good but we need more information about mouse concepts
|
| NIkhil Verma
|
Wow man use of mouse can be so cool in C program.this is excellent.THANKS!!!
|
| NIRMAL [IRTT]ERODE
|
YA ITS NICE .........
|
| ayusgh
|
it is good..thanks for learning me this mouse pro....
|
| ayush
|
hiiiiiii.....info about mouse pro above is very useful....i ll tell my friends to learn frm here.....thanks man...
|
| anupam
|
kuch samajh nahi aa raha hai....................................
|
| anupam
|
kuch samajh nahi aa raha hai....................................
|
| devanplli shridhar
|
nice helped me to recatch all the stuff
|
| prini chakraborty
|
it ws an amazing tool...it fled up my knowledge in mouse programming...thnx a lot..
|
| 56777393
|
cool!!!!!!!! extremely useful
|
| JMako
|
This was great! Thanks a lot!
|
| mangesh gaherwar
|
thank u sir i i was in searching for this from many days
|
| kaushik
|
hey dats xcellent!!! thnks a lot!! u r helpin a lot of ppl!!
|
| MUDDASSIR
|
It is really really.... helpfulll.......nice work done by u people.... but i also hav a query i want to see the tutorial of paint ....but when i click on that it will show nothing but say it protected.... how can i see that tutorial can any one help me.....
THANX ALOT
|
| MUDDASSIR
|
It is really really.... helpfulll.......nice work done by u people.... but i also hav a query i want to see the tutorial of paint ....but when i click on that it will show nothing but say it protected.... how can i see that tutorial can any one help me.....
THANX ALOT
|
| MUDDASSIR
|
It is really really.... helpfulll.......nice work done by u people.... but i also hav a query i want to see the tutorial of paint ....but when i click on that it will show nothing but say it protected.... how can i see that tutorial can any one help me.....
THANX ALOT
|
| shoaib
|
Nice tutorial.. thanx...
|
| Sudhanshu Kumar
|
The contents are really good. As there always exists some improvement, I'd like to say, it'll be better if you add explanation of each line specially the keywords and there argument's list explanation. It'll help every person more effectively. Rest are marvelous. thanx.
|
| Nikhil Pawanikar
|
This is great. Marvelous. Fantabulous.
|
| jayprakash.554@gmail.com
|
This is very good knoledge about mouse handling. thank you alot of.
jayprakash - a software developer in ajsoft company.
|
| Vishal Manwatkar
|
ThankYou
|
| silverox
|
Very well explained. Thanks a lot :)
|
| Samanaya Roy
|
Best website to learn C programming
|
| MITUL
|
THAT WAS INVALUABLE AND GREAT.....A SHEAR CLASS IN ITSELF
|
| geetha
|
its indeed useful............ Thanks a lot!
|
| geetha
|
its indeed useful............ Thanks a lot!
|
| Pramod M
|
Good Programming... Thank U.
|
| Junaid
|
Very Acknowledging......
|
| Avinash Dubey
|
excellent programs
|
| shankar
|
the information is really cool .thanks a lot. it is so simplified and easy to learn
|
| prijilps
|
easy to learn//// it would be more helpful if there is a tutorial for unix...
|
| Niel
|
Very good, except for the showmousegraphic() part... which seemed to rpeatedly give me an error :-/
|
| Harshit
|
need to knw more ...like hover...nd more mouse functions in ansi c...
|
| subash
|
thanks a lot..... its awesome
|
| Tanjil Ahsan
|
Hey sir This article helped me well. But I found some spelling mistake those are:
4. wether=whether ; on= or
|
| Sujay
|
Thanx a lot..............this is the best site regarding programming i have ever visited
|
| Shishir Bhattarai
|
really useful
|
| RAANA SYEDA
|
THATS REALLY GOOD
|
| Rakesh
|
Very AWESOME tutorial!!!! i never knew u could do these in C..
Is there any special thing for C++???
|
| Pradeep k
|
it was a nice tutorial and really usefull.
|
| senjaliya kirit
|
good example got from you
|
| vishnu chebrolu
|
thanq boss
|
| Navi
|
very knowledgable and easy stuff.... damn good work....
|
| richa
|
hey my coodinates are cming for 6 times plz help me out
|
| Sudhanshu Kumar
|
HI, please add one more subsection explaining how can we move mouse pointer through C not using mouse. thanx.
|
| Sathish Kumar Baskar
|
I'm very clear about mouse concepts. This tutorial is extraordinary. I'm going to develop a GUI.
|
| Debashis Mishra
|
Really nice collections... but i ve some more abt mouse using c...if any one want plz cantact on debashis.sw@gmail.com
|
| Nitin Agrawal
|
Really Nice collections... and i want to more information about mouse programming in c language.plz contact me nitin_agrawal_nk@yahoo.co.in
|
| prakash rathi
|
very nice and help full code.
|
| Sukh Sagar
|
NIce thing yar just keep it up with new things..............
|
| akhil gupta004
|
it is the superrb description
|
| Shadakshari
|
nicely explained
|
| richa
|
nice,my doubt is solved
|
| Ann
|
Thanx for the info, very useful and understandable
|
| NITISH SHARMA
|
IT WAS REALLY AMAGING FOR MOUSE PROGRAMMING AND I REALLY IMPRESSED WITH THAT.
|
| noorain
|
wonder what a site wonder wonder wonder
|
| Ramesh Thakulla
|
First of all i would like to congrates this team.this is a great achievement for me...........................
|
| arun kumar choudhary
|
nice thing....
i have being searching for long and found this right now
|
| Bhaskar Verma
|
amazing ! all that hair - pulling stuff solved under one roof. never knew mouse interface is so simples. Thanks team.
|
| NITISH JHA
|
I GOT THE THING WHICH I WAS FINDING FOR A MANY TIMES
|
| anuj chaudhary
|
a million thanks.... great job.
|
| Navas
|
Excellent Excellent Excellent.................. 110% goooooooooooooddddddddddddddd............. Thanks.....................
|
| jagannath puri
|
Excellent Excellent Excellent..................Progrmming.....................................thanks u so much...........................................
|
| dinesh y g v
|
never thought that this is such an easy one thank to the authors
|
| ankit niranjan
|
sir ,, really thanks 4 posting such a wonderful article
|
| dinesh ygv
|
i am facing the following problems please clarify:
error: aggregate `REGS in' has incomplete type and cannot be defined error: aggregate `REGS out' has incomplete type and cannot be defined In function `void detect_mouse()': error: `int86' was not declared in this scope error: storage size of `in' isn't known error: storage size of `out' isn't known My mail id is dinesh.ygv@gmail.com
|
| Shivam
|
ITS GOOD AND HELPFUL FOR STUDENT
|
| Divyansh Singh (AlK!)
|
it ws an amazing tool...it fled up my knowledge in mouse programming...thnx a lot..
|
| samarth
|
the tutorials are really helpful to understand mouse programming...
|
| Praveen Kumar
|
my compiler shows errors: undefined symbol _closegraph in module undefined symbol _initgraph in module
Anyone pkease help me to solve these problems
my e mail id is pravgcet@gmail.com
|
| Harsh
|
Perfect!! Im quite impressed, I found exactly what I was looking for. I must say the content is well presented.
|
| piyush
|
wonderful knowledge.. i was looking for it... thanx
|
| yusuf
|
damn good tutorial... although i havnt gone thru it... but i'll do so soon... :) thanx anyway...
|
| Soumik Guha Roy
|
This article is brief and use full ... Thanks for this.. :-)
|
| Shantanu Sharma
|
thanx alot !!!!!
|
| tushar r.jadhav
|
it,s simply wonderfull .you are great
|
| meha nelson
|
Thanku so much 4 posting dis... its a real help 4 beginners like me! kuddos 2 u !
|
| shashidevendra prakash goyal
|
wow its realy amazzing........aaaaaaaa.......is there any way we can edit the window..........i mean app. like google crome etc. dont have smilar look (title bar) can we edit it......if we can then pls suggest me the right place where i can find that code....tnks
|
| Deep Roy
|
SUPERB... THANX A LOT....
|
| ray
|
hard to understand because I'm only 10
|
| ray
|
hard to understand because I'm only 10
|
| Prateek
|
Even my compiler shows errors: undefined symbol _closegraph in module undefined symbol _initgraph in module
Someone please help me to solve these problems
My email id is edu.prateek@gmail.com
|
| dhanish
|
everything i need is here, thanks a lot
|
| Manohari
|
Really SUPERB!!!!
Thank U so much.......
|
| Manohari
|
Really SUPERB!!!!
Thank U so much.......
|
| rohit
|
was looking for it and now i got......
|
| neha ojha
|
it ia quite a intresting topic..., i really appreciate it!!!!!!!!!! bt i want more than it ..................... DOES IT WORK ONLY ON TURBOC++3.0IDE
|
| Syed amir Hussain
|
I have started mouse programming in c throug this site.....
|
| Nitin Sen
|
Mouse programming become too easy through this site.Really it provide contents in easy way Thank U very much
|
| Mriganka Malick
|
Thnx a lot........Its a wonderful article with a huge knowledge having a clear conception........
|
| faizan
|
gr8 stuff man keep it up.
|
| faizan
|
gr8 stuff man keep it up.
|
| rizwan basha
|
thnx a lot.......................
|
| Krati
|
Really helpful. thanks a lot..
|
| Manish Arya
|
It is very good for me and person as me who want use the mouse on c's input and output.
|
| mahesh
|
thanks to you its my first source to get the info about mouse programming
|
| Don
|
It looks nice, but having everything in italics makes it much more difficult to read. Regular type would be much better.
|
| Manikandan.M
|
so much help me to do my college project And i got 2nd prize in the competition.
|
| Prasad Lodha
|
Simply best ..... easy to understand
|
| Rahul sankhala
|
really nice yaar...........study it..........will not find anywhere else such a good article related to mouse programming
|
| Keshav Saini
|
its very useful for beginers.
|
| sp
|
v nice ... works for c++ 2!!!!
|
| Sarwar Chowdhury
|
I am very happy able to learn this topics.
|
| Prat
|
Bepok......bepok.............
|
| prabin
|
thank you very much..really glad to learn this. The content is really helpful. Enjoyed using it in practice. I wish to learn more about formatting the text.
|
| ganesh shankar
|
i was looking for this way before . Excellent!
|
| The innovator
|
where the union REGS is defined?
|
| robin
|
superabbb....................................
|
| Pramodkumar J Varma
|
only one word
thanx.
|
| Binay
|
Thank u very much !!!! I got it what I was looking for
|
| Vipin Dhama,Sandeep Sharma
|
Thank you very much thats was amazing tutorial we got what we were looking for
|
| Ashwin
|
Hey thanks a lot greatly helped . short n to the point .
|
| Arunkumar
|
it does not work in linux
|
| Arunkumar
|
give me the API to access the mouse property in Linux
|
| deepak
|
thnx alot sir...........:) this tutorial is really helpfull...i tried to save it so that i can read it even when internet is not available....but could not save it......anyways thnx alot for this help..
|
| Pranjal
|
Good explanation. Handy tutorials. Thank you :)
|
| Purav
|
Saaru 6e.. vanchine maja aai. Khali output joine khabar padi :P
|
| vivek bhatt
|
very nice artical......thanxxxxx alot
|
| Arup Kumar Sadhu
|
Thank you very much..
|
| nplbabu(Raju Thapa)
|
thanks. i 'm doing my project on snooker and it i s useful for me. thanks a lot
|
| alteropensource
|
it is very useful for my project in RRsnooker, thanks a lot .
|
| Bp103
|
That was very helpful! But I didn't use this info for mouse support but instead for toggling graphics mode 13h hehe. Now off to figure out the QBasic poke equivalent!
|
| Arun Thakur
|
thanx alot....really awesome thing i got today....i read it in once and learn it in just once and i did implementation at first stroke....thanx again...
|
| Shrish
|
Excellent work. Well done
|
| Yogender Kumar Arya
|
Great job...
|
| Yogesh Darp
|
u make graphics simple.........! Thank u......!
|
| rishi mehta
|
reallyy...osum....
nd very much simplified........
|
| Suraz
|
Nice article ..was helpful
|
| Rizwan basha
|
Superb......... nice article
|
| Swati
|
Awsome article... very helpful.. thank you so very much..
|
| shashi kumar
|
vry gud artical....really helpful
|
| mansi
|
it's really helpful..thanks a lot.
|
| Mohit
|
thanks for this...!! really i need it
|
| fazal
|
this website is MY GURU... WoW!!!
|
| dnyaneshwar
|
wow!it's great!
|
| sandeep
|
its too gud..... really helpful
|
| dhruv
|
it was really helpful
|
| abhishek
|
gud tutorial ......lols.......
|
| PhungCong
|
Thank you very much!
|
| Sangeeta
|
My Web Teacher!!!! thnx!!
|
| Nisha
|
I will suck this programming
|
| musa haidari
|
nice programmes. i
|
| actin
|
amazing article, really this is exactly what i was looking for, in a very clear manner. So how i can thank you?????!! god please you.
|
| shahid ali
|
it really place reader into advance programming in c. programming language is incomplete without hardware interaction, this tutorial helps in understanding the concept of software interrupts. really good work........... thank you
|
| shahid ali
|
it really place reader into advance programming in c. programming language is incomplete without hardware interaction, this tutorial helps in understanding the concept of software interrupts. really good work........... thank you
|
| Talha
|
Veryy Very Very Informative tutorial ..... It helped me alot .. Thanks to Uploder really Thanks Man ..
|
| syam
|
it is a very good programming and thanks to all of u
|
| Bun Jan
|
Great tutorial, thanks you! master.
|
| Hassan
|
This Website is quite helpful Thanks for Your Help
|
| dheeraj dhiman
|
thanx alot........
|
| dheeraj dhiman
|
thanx alot........
|
| King
|
font and text style of website is not good it is not readable easiily please large the fornt size and bold it make good it like your article thankx
|
| M ikram
|
thanks..........................
|
| Ankit Jain
|
Simply Awesome..
|
| RAM BHARAT
|
THIS PROGRAMMING IS A VERY GOOD
|
| RAM
|
THIS PROGRAMMING IS A VERY GOOD
|
| Indravardhan
|
Excellent tutorial , check ur page background color. change it to white n text to black ..
|
| sathish
|
thank you for clearing my doubt
|
| Munish Mittal
|
Really Great.......
|
| Ramprakash
|
Really great.... thanks a lot
|
| Heil
|
An awesome article that explains everything necessary to begin, and also gives a good insight in how to do more yourself. Well explained, for all levels, and a quick intro to everything necessary for mouse programming.
Thank You
|
| Dileep K
|
Its really nice tutorial ;tanx
|
| Vikas K. Bajpai
|
Very helpful,clear & precise
|
| Suresh
|
Thank you so much. But, I have a doubt. Will I be able to change the color of the mouse in C programming? Because, I want a white background for the game that I am developing. Kindly reply me at monni.suresh@gmail.com
|
| nagesh dhope
|
its became easy to learn c because you. . . . . . . . ,
|
| v d v subbu
|
It's really your service is un-Forgettable till today nobody trained like this easiest manner. thanks a lot.
|
| D7
|
Copyright my foot......!!
use "clt + c" to fuck the copy right. but the codes are pretty awesome .....!!
Regards D7
|
| satish
|
please avoid spelling mistakes and thanq for clarifying my doubt
|
| Shounak Katyayan
|
One of the Best Tutorials I have ever learned ...
|
| suraj patel
|
excellent one
|
| Amit Bhatti
|
Really Nice.very Useful Article..............
|
| Saket Joshi
|
gr888888 job dude. hats off!!!! 5*5*5*5*5*5*
|
| abhishek
|
hii, code is nice but while i was type 1st programm of this artical , in Turbo C++ 3.0 it will give error as = undefined symbol "OX33"
so sir , give this problem solution
plz, replay on abhishek.patil44@live.com
|
| naveen
|
i have been searching all over to understand with a code how mouse operations are implemented in c++ , this is the best answer possible. thanx sir!!
|
| Vipul t
|
Waw i through hard to understand it is so easy when i read thanks
|
| Kush
|
Cool tutorial. informative and easy to read. thanks :)
|
| Sanjeev
|
Thank you very much .
|
| waheed
|
i want to read more..........where can I find the next topics and next tutorials from u????
|
| Suresh
|
This article gives an overall view about the mouse programming in C. Using these concepts I have done a project in my college, and got first prize. Thank you, so much. I would feel better if driver programming for even speaker is given.
|
| ashish joshi
|
very informative and simplified tutorial thanx .
|
| Reema
|
it very useful artical for the mouse programming. thank you......
|
| Tarun
|
very nice tutorial ...thank u veryy much!!
|
| Ahsan
|
Excellent. Really Helpfull.
|
| shrawan shinde
|
thanks.....................
|
| Indira gandhi
|
this site sucks. YOU ARE A DEAD WARLOCK!
|
| Rachit
|
The programs had errors but are very helpful. THANKS A LOT
|
| sharayu
|
its very thankfull to you
|
| Esakki
|
This is awesome man thanx a lot
|
| M.Shere
|
Superb..... very good thanks a lot to help.................. its very usefulll
|
| sahil19902
|
what is REGS??
|
| UTTAM SINGH KHARWAR
|
This is a nice artical. It is really a nice,compact,easy and user friendly note for beginers .
|
| khushboo
|
this artical helped me a lot..thank you
|
| Mohammad ILIYAS
|
use karke dekhna padega...
|
| Sidheswar Venkat
|
Thanks a lot :) It helped me in my project :)
|
| mani
|
can i have a program that initialize the botton..please
|
| pikachu
|
this is good but some says this is old thing........if it is then what's new or easier replacement for this ??
|
| Pallav
|
SIMPLY AMAZING. THANX
|
| Lim tyty
|
What amazing you are!
|
| Tushar
|
Pls help me. I am facing problems using Turbo C++ 3.0 in Windows. Can you suggest me some other software which is similar to tirbo c++ ? I tried codeblocks and VC ++ but they have kind of different syntax. :( Pls mail me at Tushar_18121994@yahoo.co.in
|
| ravi suroshe
|
thanks i doesn't know abt that and i know it bcz of your
|
| mahsa
|
thanks that's so good
|
| Dipendra
|
Awesome Excellent Description!
|
| Sankumarsingh
|
Simple, easy to understand and what else I can say .......... just AWESOME.
Tonns of thanks!
|
| pratik
|
covers everything for a good programming
|
|