вообщем запускаю скрипт и нужно чтобы он при повторном запуске не выполнялся, пока первый запущеный скрипт не окончит свое действие...
кому несложно подскажите
как сделать чтобы запущенный скрипт.....
Moderators: Murderator+, Murderator
-
- Junior Expert
- Posts: 3221
- Joined: 2004-06-24 22:08:56
Code: Select all
sub sc1()
if not uo.getGlobal("runnging")
...
некий скрипт
...
endif
endsub
sub sc2()
uo.setGlobal("running",true)
...
некий скрипт
...
uo.setGlobal("running",false)
endsub
Так?
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
Profile wrote:хм. Незнаю. У меня не 2 макроса, а один. Нужно чтобы если он еще выполняет свои действия, то вторный запуск откладывается то момента когда первый запуск окончется
Тогда вот. Script1 запустится одновременно только 1 раз.
Code: Select all
sub main()
uo.setGlobal("running",1)
end sub
sub script1()
if val(uo.getGlobal("running"))==1 then
uo.setGlobal("running",2)
..................................................................
uo.setGlobal("running",1)
endif
endsub
-
- Junior Expert
- Posts: 3221
- Joined: 2004-06-24 22:08:56
Re: как сделать чтобы запущенный скрипт.....
Profile wrote:вообщем запускаю скрипт и нужно чтобы он при повторном запуске не выполнялся, пока первый запущеный скрипт не окончит свое действие...
кому несложно подскажите
Profile wrote:У меня не 2 макроса, а один
Из певого поста следует, что их два, из второго твоего поста следует что он один.
Учись задавать вопрсы понятно, имхо

YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
-
- Junior Expert
- Posts: 3221
- Joined: 2004-06-24 22:08:56
flake wrote:Дистракшен, вчитайся в первый пост.
Он имеет ввиду тот же скрипт, запущенный второй раз.
Это он должен писать, чтобы было сразу все понятно.
ИМХО!
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom