MergBG

This is the place to get technical support and discuss all things to do with MergEXT

Moderators: FourthWorld, heatherlaine, Klaus, robinmiller, monte

Post Reply
hrcap
Posts: 131
Joined: Mon Jan 14, 2019 5:20 pm

MergBG

Post by hrcap » Thu Jan 24, 2019 12:42 pm

Hi Guys

I was wondering if MergBG (or any other method) could be used to allow two scripts to run at the same time.

If for example you have a button with:

on mouseup
Wait 3 seconds
answer "hello"
end mouseup

you cannot click any of the other buttons on the layout until this script has finished running.

Many Thanks

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: MergBG

Post by bogs » Thu Jan 24, 2019 1:19 pm

I don't know about mergBg, and Lc doesn't support actual multi-threading, but maybe this is what your looking for?
Last edited by bogs on Thu Jan 24, 2019 1:21 pm, edited 1 time in total.
Image

Klaus
Posts: 13793
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: MergBG

Post by Klaus » Thu Jan 24, 2019 1:20 pm

Hi hrcap,

this is no question of MerBG or whatever!
A "wait" statement will stop the engine and, as you told it, it will wait the amount of time specified, UNLESS you tell it to take care of everything else in the meantime, too. Do this by adding "with messages":

Code: Select all

on mouseup
  Wait 3 seconds with messges
  answer "hello"
end mouseup
This way, the engine will be able to take care of whatever during this 3 seconds. :D


Best

Klaus

Post Reply

Return to “MergEXT”