help-octave
[Top][All Lists]
Advanced

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

Re: Problem while using waitforbuttonpress function


From: Giox79
Subject: Re: Problem while using waitforbuttonpress function
Date: Sat, 5 Jun 2010 03:44:29 -0700 (PDT)

Thanks for your help.
I checked the suggested link, and I tried installing Octave in a different
PC (Windows XP, Octave 3.2.4, BUT WITHOUT ANY OCTAVE FORGE PACKAGE) and I
have the same problem, 

A=waitforbuttonpress()

doesn't react.

Then I installed Octave 3.2 on Ubuntu 9, and over there everything works
fine: as soon as I press a key in the window generated by the Przemek
Klosowski.

figure()

command, the 

A=waitforbuttonpress();

exit with the right A value. 

Any idea?

Thanks again for your help, any suggestion will be appreciated.
Gio



Tatsuro MATSUOKA-2 wrote:
> 
> Hello
> 
> Seeing the code of waitforbuttonpress.m, I found
>   [x, y, k] = ginput (1);
> 
> ginput is used.
> 
> Please see
> http://wiki.octave.org/wiki.pl?OctaveForWindows
> 1. Standalone ports
>   1.1. Octave 3.2.4 for Windows MinGW32
>     Additional important topics found after the release:
> 
> I hope the information the above is helpful for you.
> 
> Regards
> 
> Tatsuro
> --- Giox79  wrote:
> 
>> 
>> Hi,
>> first thanks a lot for your help.
>> I'm using a Windows XP system.
>> No, as soon as the windows generated by the figure command pops up, I
>> don't
>> change the focus and simply try to click or type character.
>> I'm quite happy that in Fedora works fine, may be is simple a Windows
>> version issue (or that I misunderstood your question about changing
>> focus).
>> 
>> The same problem happens if I write:
>> 
>>     figure(); A=waitforbuttonpress();
>> 
>> on the Octave interface.
>> If I press a keyboard key (or a mouse button) nothing happens and the
>> Octave
>> locks waiting for a button press.
>> If I press CTRL-C to unlock Octave, looking at A value I get:
>>     error: `A' undefined near line 1 column 1
>> 
>> What happens on Fedora?
>> Thanks again,
>> Giovanni
>> 
>> 
>> 
>> Przemek Klosowski-7 wrote:
>> > 
>> > On 06/03/2010 05:14 AM, Giovanni Parodi wrote:
>> >> Good morning,
>> >> I'm trying to use the waitforbuttonpress method in my .m file but it
>> >> seems that it doesn't work (Octave-3.2.4).
>> > 
>> > Well, I just tried your code in 3.2.4 on Fedora 13 and it ran through
>> > the loop, printing
>> > TEST_2
>> >   TEST_0
>> >   TEST_1
>> > when I typed a character (and just TEST_2 and TEST_1 when clicked).
>> > Do you change focus to the image window when you do your 
>> > typing/clicking? What OS are you using?
>> > 
>> >>     warning: implicit conversion from real matrix to real scalar
>> >>     warning: implicit conversion from real matrix to real scalar
>> >>     warning: implicit conversion from real matrix to real scalar
>> >>     warning: implicit conversion from real matrix to real scalar
>> > 
>> > These errors are from ginput(), which calls
>> > 
>> > stream = get (f, "__plot_stream__");
>> > ...
>> > fprintf(stream....
>> > 
>> > and the property __plot_stream__ has multiple values. I think this 
>> > should be changed to
>> > 
>> > stream = get (f, "__plot_stream__")(1);
>> > _______________________________________________
>> > Help-octave mailing list
>> > address@hidden
>> > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>> > 
>> > 
>> 
>> -- 
>> View this message in context:
>>
> http://octave.1599824.n4.nabble.com/Problem-while-using-waitforbuttonpress-function-tp2241404p2242058.html
>> Sent from the Octave - General mailing list archive at Nabble.com.
>> _______________________________________________
>> Help-octave mailing list
>> address@hidden
>> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>> 
> 
> 
> --------------------------------------
> 2010 FIFA World Cup News [Yahoo!Sports/sportsnavi]
> http://pr.mail.yahoo.co.jp/southafrica2010/
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
> 
> 
-- 
View this message in context: 
http://octave.1599824.n4.nabble.com/Problem-while-using-waitforbuttonpress-function-tp2241404p2244165.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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