Gcommer Posted April 15, 2007 Share Posted April 15, 2007 (edited) Though it was made as more of a challenge for me then an actually really useful script(you could just whip out a calculator), my program will automatically turn special comments in your codes into progressSet() functions, determining how much to increment the Progress bar by each time. I hope to add more functions, like:Work for _RazerM's _ProgressSet()More accurate incrementation based on lines between each ProgressSet()Work for normal GUI progressbarsAllow % to be used in messages to show percent completeIt works by going through a script and looking for special comments then replacing them with ProgressSet()s, deciding how much to increment them by along the way.This syntax is used:expandcollapse popup; AProg [_sub(subTextHere)] [_main(mainTextHere)]oÝ÷ ÚËjwfj)Úæè¶)¶*'jV§vz*º^±ªÞçyÖ«¢éݵìm{"u궦æ¯x-é©äºÇ¬Ö)íãë¢ Þ²Ä¶¦ëR¡«¢+ØìAɽ}ÍÕ¡1½¥¹A¥Ì¤(¸¸¸(ìÁɽ}µ¥¸¡±µ½Íн¹¤(¸¸¸(ìÁɽoÝ÷ Ù'+yéâz) ÛiÿøµëZa¢Ú¹ÉµÊ&ý©[ºk?·m·üg(g«ü ±ÊÞÈh¶þ) N¡×ºÚ"µÍÈ]]ÛX]XÈÙÜÜÔÙ] H[Ü[Y[HØÛÛ[YÚ[ÛYH ÑÕRPÛÛÝ[Ë]LÉÝÂÚ[ÛYH Ñ[K]LÉÝÂÚ[ÛYH ÔÝ[Ë]LÉÝÂÌÍÑÜLHHÕRPÜX]J ][ÝÔÙÙÜÔÙ] H]]ÛX]][ÝËÎMN ËÌMÊBÌÍØXÚÝHÕRPÝÜX]PÚXÚØÞ ][ÝÐÜX]HHXÚÝÉ][ÝËM LKLLËMÊBÌÍÙ[UÐÚ[ÙHHÕRPÝÜX]R[] ][ÝÐÎÌLÉ][ÝËL KK ÌÍÑT×ÐUUÒÐÔÓ BÌÍØÝÜÙHHÕRPÝÜX]P]Û ][ÝÐÝÜÙI][ÝËÌ L KK BÌÍÙÛÈHÕRPÝÜX]P]Û ][ÝÉ[ÑÛÉ][ÝË MM ÍKK BÌÍÙ^]HÕRPÝÜX]P]Û ][ÝÉ[Ñ^] ][ÝËMKMM ÍKK BÌÍÚ[HÕRPÝÜX]P]Û ][ÝÉ[Ò[ ][ÝËÍËMM ÍKK BÌÍÜXÈHÕRPÝÜX]TXÊ ][ÝÐÎÌLÔÙÜ[H[ÉÌLÐ]]Ò]ÉÌLÑ^[ÉÌLÑÕRIÌLÛÙÛÍÚY][ÝËÎMMË ÌÍÔÔ×ÓÕQH È ÌÍÕÔ×ÑÔÕT BÕRTÙ]Ý]J BÚ[HBIÌÍÛÙÈHÕRQÙ]ÙÊ BTÙ[XÝBPØÙH ÌÍÛÙÈH ÌÍÑÕRWÑUSÐÓÔÑHÔ ÌÍÛÙÈH ÌÍÙ^]BBQ^]BPØÙH ÌÍÛÙÈH ÌÍÙÛÂBBRY[Q^ÝÊÕRPÝXY ÌÍÙ[UÐÚ[ÙH H H[]]ÔÙÜÜÊ BBPØÙH ÌÍÛÙÈH ÌÍØÝÜÙBBBIÌÍÛ]Ñ[HH[SÜ[X[ÙÊ ][ÝÓÜ[[I][ÝË ][ÝÎÍ LKPQKLLQNNNLÍPLLßI][ÝË ][ÝÐ]]Ò]ØÜÈ ]LÊI][ÝËK ][ÝË]LÉ][ÝÈ BBBQÕRPÝÙ]]J ÌÍÙ[UÐÚ[ÙK ÌÍÛ]Ñ[H BBPØÙH ÌÍÛÙÈH ÌÍÚ[BBSÙÐÞ MÍ ][ÝÔÙÜÜÔÙ] H]]ÛX]][ÝË ][ÝÝÚ[ÛKHÜX]YHØÛÛ[Y][ÝÈ [ÈÔ [ÈÔ [È ][ÝÐ]]ÛX]XØ[H[ÙÙÜÜÔÙ] ÈÚ[YYY I][ÝÈ [ÈÔ [È ][ÝÚ[È]LÈØÜ[ÈÙYÙÙÛÛ[Y[ÈXÙYH[ÝH[HØÜÈ[ ][ÝÈ [ÈÔ [È ][ÝÔÙÜÜÔÙ] H]]ÛX]ÚHÈXÙHHÙÜÜÔÙ] È[Ú]XZ[^[ÝX^ÈÙH [ÈHÝÙYÝ K][ÝÈ [ÈÔ [ÈÔ [È ][ÝÐÛÛ[Y[Þ[^][ÝÈ [ÈÔ [ÈÔ [È ][ÝÎÈTÙÈ×ÜÝXÝX^ WH×ÛXZ[XZ[^ WI][ÝÈ [ÈÔ [ÈÔ [È ][ÝÓÈ][ÝÈYYY[ÜÝXÝX^ H[ÛXZ[XZ[^ KÚXÚHÝÜ[Û[ ][ÝÈ [ÈÔ [È ][ÝØ][ØÛÜÈTHPÑTÔÐTHYÜHÝX[XZ[YÙY IÌÌÎÉ][ÝÊBQ[Ù[XÝÑ[[È]]ÔÙÜÜÊ BIÌÍÙ[UÓÜ[HÕRPÝXY ÌÍÙ[UÐÚ[ÙH BRY][ ÕRPÝXY ÌÍØXÚÝ K ÌÍÑÕRWÐÒPÒÑQ HH ÌÍÑÕRWÐÒPÒÑQ[[PÛÜJ ÌÍÙ[UÓÜ[Ý[ÔXÙJ ÌÍÙ[UÓÜ[ ][ÝË]LÉ][ÝË ][Ý×ØXÚÝ]LÉ][ÝÊH BIÌÍÙ[HH[SÜ[ ÌÍÙ[UÓÜ[ BIÌÍÛ[S[HHÑ[PÛÝ[[Ê ÌÍÙ[UÓÜ[ BIÌÍÜÙÜÜÔÙ]ÈHIÌÍÛHBQ[H ÌÍÛ[ÖÉÌÍÛ[S[JÌLBWÑ[TXYÐ^J ÌÍÙ[UÓÜ[ ÌÍÛ[È BQÜ ÌÍÛHHÈ ÌÍÛ[S[HÝBBRYÝ[Ò[Ý ÌÍÛ[ÖÉÌÍÛK ][ÝÐTÙÉ][ÝËJIÝÌ[ ÌÍÜÙÜÜÔÙ]È ÏHBS^IÌÍØ[[Ý[]HHLÉÌÍÜÙÜÜÔÙ]ÂQ[PÛÜÙJ ÌÍÙ[H BIÌÍÙ[HH[SÜ[ ÌÍÙ[UÓÜ[H BQÜ ÌÍÛHHÈ ÌÍÛ[S[HÝBBWÑ[UÜ]UÓ[J ÌÍÙ[UÓÜ[ ÌÍÛ ][ÝÉ][ÝËH BS^QÜ ÌÍÛHHÈ ÌÍÛ[S[HÝBBRYÝ[Ò[Ý ÌÍÛ[ÖÉÌÍÛK ][ÝÐTÙÉ][ÝÊIÝÌ[BTÝ[ÔXÙJ ÌÍÛ[ÖÉÌÍÛK ][ÝÎÈ ][ÝË ][ÝÎÉ][ÝÊBBTÝ[ÔXÙJ ÌÍÛ[ÖÉÌÍÛK ][ÝÎÈ ][ÝË ][ÝÎÉ][ÝÊBBTÝ[ÔXÙJ ÌÍÛ[ÖÉÌÍÛK ][ÝÎÈ ][ÝË ][ÝÎÉ][ÝÊBBTÝ[ÔXÙJ ÌÍÛ[ÖÉÌÍÛK ][ÝÎÈ ][ÝË ][ÝÎÉ][ÝÊHÈ[ØÙHÙÈX[HÜXÙÈYÜH]]ÔÙÜÜÂBTÝ[ÔXÙJ ÌÍÛ[ÖÉÌÍÛK ][ÝÎÐTÙÉ][ÝË ][ÝÉ][ÝÊBBIÌÍÛÝ]][HH ][ÝÔÙÜÜÔÙ] ][ÝÈ [È ÌÍÛ ÌÍØ[[Ý[]BBRYÝ[Ò[Ý ÌÍÛ[ÖÉÌÍÛK ][Ý×ÜÝX ][ÝËJIÝÌ[BBIÌÍÛÝ]][HH ÌÍÛÝ]][H [È ][ÝË ][ÝÈ [ÈÔÝ[Ð]ÙY[ ÌÍÛ[ÖÉÌÍÛK ][Ý×ÜÝX ][ÝË ][ÝÊI][ÝÈ BBBTÝ[ÔXÙJ ÌÍÛ[ÖÉÌÍÛK ][Ý×ÜÝX ][ÝÈ [ÈÔÝ[Ð]ÙY[ ÌÍÛ[ÖÉÌÍÛK ][Ý×ÜÝX ][ÝË ][ÝÊI][ÝÈ H [È ][ÝÊI][ÝË ][ÝÉ][ÝÊBBQ[ÙHBBIÌÍÛÝ]][HH ÌÍÛÝ]][H [È ][ÝË ][ÝÈ [È ][ÝËLI][ÝÂBQ[YBRYÝ[Ò[Ý ÌÍÛ[ÖÉÌÍÛK ][Ý×ÛXZ[ ][ÝËJIÝÌ[BBIÌÍÛÝ]][HH ÌÍÛÝ]][H [È ][ÝË ][ÝÈ [ÈÔÝ[Ð]ÙY[ ÌÍÛ[ÖÉÌÍÛK ][Ý×ÛXZ[ ][ÝË ][ÝÊI][ÝÈ BBBTÝ[ÔXÙJ ÌÍÛ[ÖÉÌÍÛK ][Ý×ÛXZ[ ][ÝÈ [ÈÔÝ[Ð]ÙY[ ÌÍÛ[ÖÉÌÍÛK ][Ý×ÛXZ[ ][ÝË ][ÝÊI][ÝÈ H [È ][ÝÊI][ÝË ][ÝÉ][ÝÊBBQ[ÙHBBIÌÍÛÝ]][HH ÌÍÛÝ]][H [È ][ÝË ][ÝÈ [È ][ÝËLI][ÝÂBQ[YBIÌÍÛ ÏHBBIÌÍÛÝ]][HH ÌÍÛÝ]][H [È ][ÝÊI][ÝÂBIÌÍÛ[ÖÉÌÍÛHH ÌÍÛÝ]][BBQ[YS^IÌÍÛ[ÖÌHH ][ÝÉ][ÝÂWÑ[UÜ]QÛP^J ÌÍÙ[UÓÜ[ ÌÍÛ[ÊBBQ[PÛÜÙJ ÌÍÙ[H BSÙÐÞ NL ][ÝÑÛIÌÌÎÉ][ÝË ][ÝÔÙÜÜÔÙ] H]]ÛX][ÛÈÛÛ]IÌÌÎÉ][ÝÈ [ÈÔ [ÈÔ [È ][ÝÔXÙHÜÝYÜÈÛHÜ[I][ÝÊB[[ Edited April 15, 2007 by Gcommer Link to comment Share on other sites More sharing options...
BillLuvsU Posted April 16, 2007 Share Posted April 16, 2007 err, I don't mean to be a downer, the code is good, but wouldn't it be easier/ just as easy to do it your self? [center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw Link to comment Share on other sites More sharing options...
Richard Robertson Posted April 16, 2007 Share Posted April 16, 2007 It's a lazy programmer thing. That's why we have tokens such as i++ instead of i = i + 1. Link to comment Share on other sites More sharing options...
BillLuvsU Posted April 16, 2007 Share Posted April 16, 2007 Aw, well that is the fulcrum of lazy. [center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw Link to comment Share on other sites More sharing options...
JohnnyCash Posted April 30, 2007 Share Posted April 30, 2007 Can someone help me with a small problem. I want to send a no command at the end of an install when prompted to restart. The problem is I can't do a timed delay because of the different machines we use so I need it to know when the box pops asking for a restart and have it say no. Thanks for any help. 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