A barberpole spinner
#10
You are forgetting about inter application messaging in yab.

Change the main loop:



Code:
while(not leavingLoop)
    nCommands = token(message$, msg$(), "|")
    for everyCommand = 1 to nCommands
        if(DEBUG and msg$(everyCommand)<>"") print msg$(everyCommand)
        switch(msg$(everyCommand))
            case "_QuitRequested"
            case "_Scripting:done"
                leavingLoop = true
                break
            default:
                break
        end switch
    next everyCommand
    spin("Barber")
wend

have your application send the_Scripting:done message:

arived = message send "application/x-vnd.barberpole", "done"
Reply


Messages In This Thread
A barberpole spinner - by bbjimmy - 05-05-2016, 10:58 AM
RE: A barberpole spinner - by clasqm - 05-07-2016, 02:57 PM
RE: A barberpole spinner - by bbjimmy - 05-07-2016, 07:21 PM
RE: A barberpole spinner - by clasqm - 05-08-2016, 08:02 AM
RE: A barberpole spinner - by clasqm - 05-08-2016, 09:40 AM
RE: A barberpole spinner - by bbjimmy - 05-08-2016, 12:43 PM
RE: A barberpole spinner - by clasqm - 05-09-2016, 04:40 PM
RE: A barberpole spinner - by bbjimmy - 05-09-2016, 09:46 PM
RE: A barberpole spinner - by clasqm - 05-10-2016, 11:12 AM
RE: A barberpole spinner - by bbjimmy - 05-10-2016, 02:02 PM
RE: A barberpole spinner - by clasqm - 05-10-2016, 03:23 PM
RE: A barberpole spinner - by bbjimmy - 05-11-2016, 09:21 AM
RE: A barberpole spinner - by clasqm - 05-13-2016, 02:08 PM
RE: A barberpole spinner - by clasqm - 05-17-2016, 11:11 AM

Forum Jump:


Users browsing this thread: 6 Guest(s)
Free Web Hosting