Re: INKEY$ equivalent in Matlab



Thanks for the input!

In the File Exchange I did indeed find what you mentioned.
This program uses the UIWAIT command. I think that with a
few tweeks I can make it do what I want it to do.

Kind regards,
Gajo de Bruin


"Gajo de Bruin" <ikke@xxxxxxxxxx> wrote in message
<fvrl3b$sr9$1@xxxxxxxxxxxxxxxxxx>...
Hi,

I'm trying to create a program that runs every hour or
sooner when a key is pressed.
So far I've been able to create the 1 hour loop with
info
on the screen that says when the program will start
again:

tic
a=toc;
while a<ReRunDelay
clc
display(['The program will restart in ' num2str
(floor(ReRunDelay-a)) ' seconds.'])
pause(1)
a=toc;
end

In my Qbasic times ( I know, a long time ago) I used the
INKEY$ to check for a keypress and break the loop:


DO

"code"

A$ = INKEY$ 'Get Key
IF A$ = CHR$(27) THEN END '<---ESC button

LOOP

Any idea's on how I can do this in Matlab?

Kind regards,
Gajo


.



Relevant Pages

  • INKEY$ equivalent in Matlab
    ... So far I've been able to create the 1 hour loop with info ... In my Qbasic times I used the ... INKEY$ to check for a keypress and break the loop: ... Kind regards, ...
    (comp.soft-sys.matlab)
  • Re: Can I determine in which cell is a listbox postioned?Or how to get the listboxes in a certain ce
    ... RangeFromPoint ... You could loop the ... shapes collection and test the type of shape. ...
    (microsoft.public.excel.programming)
  • Re: fileID Problem (or bug?)
    ... The problem was on the textscan function the 'headerLines', were pointing for a row that it shoudnt. ... However in the next iteraction of the loop I get the new file path but with the same fileID = 3 and I cant retrieve data from the file. ...
    (comp.soft-sys.matlab)
  • Re: OT Kennedy rushd to hospital- breaking news
    ... I need a Toltec calendar with Hebrew glyphs. ... Kind regards, ... I don't see why it warrants the media coverage, ... But MSNBC had a loop that drove me mad and I had to change ...
    (alt.true-crime)
  • Re: SMP - dual/triple/?? processor programming
    ... turn a simple program for example having a loop and doing some ... calculations to take advantage of all the processing units available? ... Kind regards, ...
    (microsoft.public.vc.language)