-
Mouse Interrupts
How do i create mouse interrupts in C????????????
i wanted to create a program that would prevent my computer from falling asleep, the problem is, the BIOS looks for mouse interrupts, not just the mouse moving. So, i want to create a program that will use a interrupt to move the mouse to random locations until the user presses a hot key (or at least do somthing similar).
PLEASE help me
-
Are you doing this in DOS or in a Windows program? You can't do it in DOS, but it can be easily done with a Windows program. You just handle the correct message.
--Garfield
-
yes i'd say that DOS and windows are pretty much independant of eachother... also, judging by your name, you're a linux man, right? any more information?
-
My OS
i am working on this program for DOS,win 3.1, and win ME (for testing of program)
but i also work on linux(only when linux's compiler works ;))
-
I'm 99.9% sure that you can't do mouse interrupts with DOS. It is a shell to Windows, so I'm sure there is a loop-hole somewhere. It isn't an OS, but a VM.
--Garfield
-
>mouse interrupts with DOS
on the contrary, 0x33 has interrupt functions for DOS mouse control... search for Ralph Brown's Interrupt List has a complete listing of these interrupt functions, as well as all others in the interrupt vector table [including reserved... it is just about mostly complete, the best reference you can get anywhere...]
oh, and this seems silly... but maybe you can disable your computers ASPI auto-sleep option in your bios, as well as it in your OS system...
-
um well that depends if he's actually working on DOS or the MS-DOS VM there, garf.
And there is a way in pure DOS: http://www.c-for-dummies.com/lessons/bonus/06/
I've also tested that compiling in DJGPP and it worked in a DOS console window. (I think it did, can't remember...) It won't compile in MSVC, though.
-
Get into Windows programming :D
-
>Get into Windows programming
ahhh shaat appp!!! :)
good option, but again, is he a linuxman? and also, does he have the preq knowledge about programming to enter into a multitasking programming environment...? etc.
-
Are you with Linux?? You should visit the Linux forum, then. We don't really have much knowledge of the Linux GUI.