Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Running multiple loop script all in one
#1
Hi, I was wondering if this was possible to run multiple scripts all within one big script,
the thing is each script need to be in a loop,
;script1
rep
perform xyz action

;script2
rep
perform xyz action

is it possible to have one big script running multiple little scripts running in a loop? or it can only
read line by line and cannot read multiple line at the same time?

id like to know how to make one big script instead of making individual loop script and opening 1 by 1
thank you in advance.
#2
Run multiple scripts at the same time?

Macro Macro1018
Code:
Select All      Help
mac "sub.script1"
mac "sub.script2"


#sub script1
rep
,out 1
,0.5


#sub script2
rep
,out 2
,0.4

;how to stop them? Right click a folder in the "Running items" pane and check "+hidden". Then right click a script there...
#3
Thanks a lot Gintaras, exactly what I wanted Smile
#4
I have one issue, when making an exe file with these multiple scripts the file doesn't seems to work, when I run the file it immediately close itself.
Can I make one exe file for all these scripts or I really need to make an exe file for each of my script?
#5
Macro Macro1049
Code:
Select All      Help
int h1=mac("sub.script1")
int h2=mac("sub.script2")
wait 0 HM h1 h2 ;;this supports up to 4 handles. If need more, use array. More info in QM Help.
out "all threads ended"


#sub script1
rep 5
,out 1
,0.5


#sub script2
rep 4
,out 2
,0.4

;how to stop them? Right click a folder in the "Running items" pane and check "+hidden". Then right click a script there...
#6
thank you it worked Smile


Forum Jump:


Users browsing this thread: 1 Guest(s)