How do you run 2 simultaneous processes in one script?
For example,
$log = _StringEncrypt(1, GUICtrlRead($encryptinputname) & @CRLF & @IPAddress1, $InputPass,$InputLevel)
GUICreate("My GUI Progressbar",220,100, 100,200)
$progressbar1 = GUICtrlCreateProgress (10,40,200,20)
GUICtrlSetColor(-1,32250); not working with Windows XP Style
$progressbar2 = GUICtrlCreateProgress (10,70,200,20,$PBS_SMOOTH)
GUISetState ()
$wait = 20; wait 20ms for next progressstep
$s = 0; progressbar-saveposition
do
$msg = GUIGetMsg()
For $i = $s To 100 Step 1
$i2 = $i/3
GUICtrlSetData ($progressbar1,$i)
GUICtrlSetData ($progressbar2,($i2))
Sleep($wait)
Next
Select
Case $i >100
$1 = 0
For $i = $s To 100 Step 1
GUICtrlSetData ($progressbar1,$i)
Next
Case $i2 = 100
ExitLoop
EndSelect
until $msg = $GUI_EVENT_CLOSE
Like, in this code, ive set the script to encrypt some data, and to run a progress bar at the same time as the encryption. About how the progressbar is going to run, it will be based on a variable calculated by the amount of data to be encrypted etc. But to get it to run during the encryption...i cant do it...