Originally Posted by
Ni3ls
HI all.
I would like to know how to do an action of a certain menu is opened but no button is pressed.
Code:
for(;;)
{
self waittill("menuresponse", menu, response);
This wait till a button is pressed. I want to do it the same with a waittill if thats possible. Because the other solution should be a normal loop. DOnt know if thats buggy?
The "menuresponse" notification tells you if the menu is open without any further action being necessary because part of its parameters is the menu that has just opened. So, all you have to do is:
PHP Code:
for(;;)
{
self waittill( "menuresponse", menu, response );
if( menu == "themenuyouwanttomonitor" )
{
self dostuff();
}
}