I don't want to time it, but instead to increase the steps from the code sections (from RunOnceEx or batch files)
I thought at Autoit script, but i have some problems:
1- I don't know how to pass parameters to an active script, so I only managed to run again the same script with new parameters. Last one kills all of them.. not a very good solution.
2- ProgressOn and ProgressSet maintain the process bar window opened only if I add a sleep(ms) line. That wouldn't be a problem if only the batch file that launches the script wouldn't wait too! Where do I do wrong?
Here is the script.
It's a test and I'm not expert, so pardon my programming errors
---------------------------------------------------------------------------------------------------------------------------------
If $CMDLINE[0] = 0 Then
Exit
Else
Dim $Max
Dim $Counter
$Max = $CMDLINE[1]
$Counter = $CMDLINE[2]
ProgressOn("Status","","")
ProgressSet(($Counter/$Max)*100,"","Completed " & ($Counter/$Max)*100 & "%")
; I'd like to avoid this
Sleep(2000)
If $Counter = $Max Then
Sleep(2000)
RunWait(@ComSpec & " /c " & 'taskkill /f /im actbar.exe ', "", @SW_HIDE)
Exit
EndIf
EndIf
----------------------------------------------------------------------------------------------------------------------------------
Example for the file that launches the script (could be in RunOnceEx too):
actbar.exe 10 1
(...some code..)
actbar.exe 10 3
(...some code..)
actbar.exe 10 6
(...some code..)
actbar.exe 10 10
This post has been edited by phaolo: 11 July 2008 - 08:37 AM



Help

Back to top









