searchresult Posted November 13, 2007 Share Posted November 13, 2007 If I use _HexToString or _StringToHex and want to have process bar to show me how much more is there to do, how can I find out the time it will take to convert hex to string or string to hex so it can be putted in a for loop? thanks Link to comment Share on other sites More sharing options...
enaiman Posted November 13, 2007 Share Posted November 13, 2007 $begin = TimerInit() _StringToHex ... $time_needed = TimerDiff($begin) MsgBox(0, "Time for conversion", $time_needed) SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
Achilles Posted November 13, 2007 Share Posted November 13, 2007 (edited) Since _HexToString and _StringToHex both are open source you could edit the code to include a progress bar. They both have For Next loops so it should be fairly easy. You'll need to rename them something different (or not include the String.au3), like _HexToStringEx... EDIT: In case you don't know how to do a ProgressBar look at ProgressOn, ProgressOff, and ProgressSet Edited November 13, 2007 by Piano_Man My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
searchresult Posted November 13, 2007 Author Share Posted November 13, 2007 (edited) Since _HexToString and _StringToHex both are open source you could edit the code to include a progress bar. They both have For Next loops so it should be fairly easy. You'll need to rename them something different (or not include the String.au3), like _HexToStringEx...EDIT: In case you don't know how to do a ProgressBar look at ProgressOn, ProgressOff, and ProgressSetI know how to do a progress it's just that i didn't know how could i find out time needed but I'll try with timediff or could try your way, if I get stuck I'll write again.thanksEDIT: I added the code to string.au3 renamed it to stringp.au3 and works fine thanks Edited November 13, 2007 by searchresult Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now