Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
msctls_progress32 to function
#1
How can I create msctls_progress32 to this function:

Code:
Copy      Help
function str'archivo ARRAY(str)&encontrados
;ARRAY(str) encontrados
;out filefind("notepad.exe" encontrados)
;int i
;for i 0 encontrados.len

,;out encontrados[i]

str comando
str temp.expandpath("$Temp$")
if(dir("$Temp$\resultados.txt"))
,del "$Temp$\resultados.txt"
ChDir "C:\"
comando.format("/c dir %s /b/s>%s\resultados.txt" archivo temp)
run "%COMSPEC%" comando "" "" 2
;texto
str texto.getfile("$Temp$\resultados.txt")
err
,1
,goto texto
;out texto
encontrados=texto
ret encontrados.len
#2
How would you periodically get % time elapsed? Of course you can easily get it if you know how long the file will be locked.
#3
I don't know to do it.
#4
To use progress bar, you need to know or calculate (approximately) how long the process lasts. Then you can open nonmodal dialog with progress bar, and periodically update it while waiting.
#5
In this case I don't know how long the process lasts.
it cannot become.
?
#6
The function filefind works in Windows Xp but not in Windows 2000.

Do you know why?
#7
temp path contains spaces. Use " or temp.dospath.
#8
Now, it works.

Thanks.


Forum Jump:


Users browsing this thread: 2 Guest(s)