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
iGame3D
Moderator
***


Posts: 231
Group: Moderators
Joined: Apr 2007
Status: Offline
Reputation: 0
Post: #1
RE: Starved resources

check that the window is not nil before launching your network script

Code:
window = nil

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

displayMessage("This will take a while...");

if window ~= nil then
os.execute("myExternalScript");
else
-- I dont know
end


Could also wait for the user to hit an "OK" button or some such to actually launch that external script.

03-24-2013 04:21 PM
Visit this user's website 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: