Quote from
JnCon on June 22, 2020, 2:44 pm
You have to get the video file size, define a rectangle object to display the progress bar and setup the main parameters:
FileSize "YourVideoFilePath" "[YourVideoFileSize]"
hpwUtilitySetvar "[hpwProgressBarMin]" "0" <- set the minimum value (int)
hpwUtilitySetvar "[hpwProgressBarMax]" "[YourVideoFileSize]" <- set the maximum value (int) to file size
hpwUtilitySetvar "[hpwProgressBarOrientation]" "1" <- vertical or horizontal (int)
.constructor for progress bar:
hpwProgressBarCreate "Rectangle name for progress bar (string)" "initial value (int)"
... After this you can actualize value of progress bar by repeating last command with actual value.
You have to get the video file size, define a rectangle object to display the progress bar and setup the main parameters:
FileSize "YourVideoFilePath" "[YourVideoFileSize]"
hpwUtilitySetvar "[hpwProgressBarMin]" "0" <- set the minimum value (int)
hpwUtilitySetvar "[hpwProgressBarMax]" "[YourVideoFileSize]" <- set the maximum value (int) to file size
hpwUtilitySetvar "[hpwProgressBarOrientation]" "1" <- vertical or horizontal (int)
.constructor for progress bar:
hpwProgressBarCreate "Rectangle name for progress bar (string)" "initial value (int)"
... After this you can actualize value of progress bar by repeating last command with actual value.