help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

idle-time processing within octave


From: Richard KIrk
Subject: idle-time processing within octave
Date: Wed, 5 Jun 2013 02:21:17 -0700 (PDT)

Hi.

I have modified my image viewer so it periodically looks for commands when
it is idle. This means I can get Octave to write an image and then post an
instruction to get the viewer to read it, and things like that. I would now
like to do the trick the other way around - to get Octave to look inputs
when it is idle, so I can pick up UI changes such as moved sliders, and
stuff like that.

I would imagine some general command like...

whenidle(command_string, seconds);

...where...

whenidle('my_command;', 2) would cause 'my_command;'' to be executed after
2, 4, 6 seconds after octave stopped processing the last keyboard command. I
would assume this process would be invisible to the user if the command
generated no input, so the command number would not be incremented.

whenidle('my_command;', 0) would turn this off.

whenidle(0, 0) might turn all idle time commands off.

I had a look at the archives, and it seems there was no feature like this
back in 2011. This is not a blocker for me as I can call my refresh commands
by hand, and I haven't yet got the nerve (or the time) to hack the octave
source. But it would potentially solve a whole class of requests for people
who want octave to respond to their UI changes, or other such stuff. 

Cheers.
Richard Kirk







--
View this message in context: 
http://octave.1599824.n4.nabble.com/idle-time-processing-within-octave-tp4653734.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]