Re: dos wait loop

new topic     » goto parent     » topic index » view thread      » older message » newer message

i mean it has to be possible. how does wait_key() do it?
i want for dos (console) program to wait for a message from windows program.

it would work perfectly if i could simulate keypress, then i could use getc(0)
which would do all three things: 1) wait for a "message" 2) it wouldn slow the
operating system down 3) it would pause its program execution.


Tone Škoda wrote:
> 
> how can i in dos program make it so that following loop won't slow the system
> down:
> 
> while 1 do
> 	-- on every half a second check something
> end while
> 
> in windows i can use timer to achieve this functionality, is there something
> similar
> in dos?
> 
> 
> btw, does anyone know of a library for communication between dos and windows
> program?
> or how it 
> 
> can be done, besides via a file?
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu