Restricting the movement of mouse by c program language
//restrict the x and y coordinate
#include <dos.h>
#include <stdio.h>
int main(){
union REGS i,o;
//show mouse pointer
i.x.ax=1;
int86(0x33,&i,&o);
//x coordinate restriction
i.x.ax=7;
i.x.cx=20;
i.x.dx=300;
int86(0x33,&i,&o);
//y coordinate restriction
i.x.ax=8;
i.x.cx=50;
i.x.dx=250;
int86(0x33,&i,&o);
return 0;
}
No comments:
Post a Comment