Yoko

All sides of Injection
It is currently 2025-12-27 18:36:41

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: 2005-06-08 00:45:29 
Offline

Joined: 2005-04-18 22:39:27
Posts: 10
вообщем запускаю скрипт и нужно чтобы он при повторном запуске не выполнялся, пока первый запущеный скрипт не окончит свое действие...
кому несложно подскажите


Top
   
 Post subject:
PostPosted: 2005-06-09 21:17:29 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Code:
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.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2005-06-11 03:24:48 
Offline

Joined: 2005-04-18 22:39:27
Posts: 10
хм. Незнаю :D . У меня не 2 макроса, а один. Нужно чтобы если он еще выполняет свои действия, то вторный запуск откладывается то момента когда первый запуск окончется


Top
   
 Post subject:
PostPosted: 2005-06-11 08:42:51 
Offline
User avatar

Joined: 2005-05-21 07:12:12
Posts: 163
Location: DRW
Profile wrote:
хм. Незнаю :D . У меня не 2 макроса, а один. Нужно чтобы если он еще выполняет свои действия, то вторный запуск откладывается то момента когда первый запуск окончется

Тогда вот. Script1 запустится одновременно только 1 раз.
Code:
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


Top
   
PostPosted: 2005-06-17 05:03:21 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Profile wrote:
вообщем запускаю скрипт и нужно чтобы он при повторном запуске не выполнялся, пока первый запущеный скрипт не окончит свое действие...
кому несложно подскажите

Profile wrote:
У меня не 2 макроса, а один

Из певого поста следует, что их два, из второго твоего поста следует что он один.

Учись задавать вопрсы понятно, имхо :evil:

_________________
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.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2005-06-17 12:09:20 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
Дистракшен, вчитайся в первый пост.
Он имеет ввиду тот же скрипт, запущенный второй раз.


Top
   
 Post subject:
PostPosted: 2005-06-19 08:43:32 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
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.
Skype: d119060


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited