News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.

Post Reply  Post Thread 
Starved resources
Author Message
Junior Member

Posts: 9
Group: Registered
Joined: Jul 2008
Status: Offline
Reputation: 0
Post: #1
Starved resources

Looking for a little help...

I have an external process that I am starting that will take a while (enabling a network interface that doesn't return until DHCP returns an address) and want to alert the user that this will take a while.. so I am displaying (or trying to) a message box prior to calling this process:

displayMessage( "this will take a while...);
os.execute( "myExternalScript" );

problem is the message box doesn't pop up until after the os.execute() returns. Is there a way to wait until the message box is up before control is captured by the os.execute()? I tried a short murgaLua.sleep(50) to allow a context switch but that didn't help. Any ideas?

function displayMessage( msg )
window = fltk:Fl_Double_Window(...)
box = fltk:Fl_Box(...)
button = fltk:Fl_Button(...)

03-24-2013 05:37 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
Starved resources - ceeuu - 03-24-2013 05:37 AM
RE: Starved resources - iGame3D - 03-24-2013, 04:21 PM
RE: Starved resources - ceeuu - 03-25-2013, 12:48 AM
RE: Starved resources - mikshaw - 05-24-2013, 04:41 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: