1. How to check for Keystrokes within a Loop

How do I check for Keystrokes inside a loop.
In windows. (I know how in DOS).

for x=1 to 1000 do
  aWholeBunchOfStuff()
  --check for keysroke here
end for


I know this probably a stupid question but I would appreciate any help.

don cole 
SF

new topic     » topic index » view message » categorize

2. Re: How to check for Keystrokes within a Loop

don cole wrote:
> 
> How do I check for Keystrokes inside a loop.
> In windows. (I know how in DOS).
> 
> }}}
<eucode>
> for x=1 to 1000 do
>   aWholeBunchOfStuff()
>   --check for keysroke here
> end for
> </eucode>
{{{

> 
> I know this probably a stupid question but I would appreciate any help.
> 
> don cole 
> SF
> 

I'd create a w32HKeyDown (etc) event and execute doEvents(0) regularly.

Regards, Alexander Toresson

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu