sandman Posted April 8, 2007 Share Posted April 8, 2007 (edited) I haven't posted many finished scripts here. Well, for that fact, the only one other than this is GetMousePosition.. I wouldn't even call that a script. This is an update application that I will be implementing in HolyMacro (see my signature). It has probably been done before, but probably not shown to the public. I just want to demonstrate this.Update code:expandcollapse popup#include <GUIConstants.au3> #include <XSkinGradient.au3> $checkversion = IniRead("hmoption.ini", "Settings", "version", "") $updatewin = GUICreate("HolyMacro Free Version - v1.0.1 Updater", 378, 87, 0, 0, $WS_POPUP) XSkinGradient($updatewin, 000000, 0xC0DCC0) ;~ GUISetBkColor(0xC0DCC0, $updatewin) GUISetState(@SW_SHOW, $updatewin) WinSetTrans("HolyMacro Free Version - v1.0.1 Updater", "", 175) If $checkversion = "1.0.1" Then GUICtrlCreateLabel("You already have the latest update of HMF. Exiting...", 10, 60, 253, 17) GUICtrlSetBKColor(-1, $GUI_BKCOLOR_TRANSPARENT) Sleep(4000) Exit Else $progress = GUICtrlCreateProgress(10, 10, 360, 17) GUICtrlSetData($progress, 0) If ProcessExists("hm.exe") Then ProcessClose("hm.exe") If WinActive("HolyMacro - Free Version") Then WinClose("HolyMacro - Free Version") $step1 = GUICtrlCreateLabel("Creating Dir 'splash'", 10, 60, 102, 17) DirCreate("splash") GUICtrlSetData($progress, 5) GUICtrlDelete($step1) $step2 = GUICtrlCreateLabel("Extracting 'hm.exe'", 10, 60, 92, 17) FileInstall("hm.exe", "hm.exe", 1) GUICtrlSetData($progress, 10) GUICtrlDelete($step2) $step3 = GUICtrlCreateLabel("Extracting 'option.exe'", 10, 60, 107, 17) FileInstall("option.exe", "option.exe", 1) GUICtrlSetData($progress, 15) GUICtrlDelete($step3) $step4 = GUICtrlCreateLabel("Extracting 'hm.ico'", 10, 60, 89, 17) FileInstall("hm.ico", "hm.ico", 1) GUICtrlSetData($progress, 20) GUICtrlDelete($step4) $step5 = GUICtrlCreateLabel("Extracting 'splash\splash1.jpg'", 10, 60, 146, 17) FileInstall("splash\splash1.jpg", "splash\splash1.jpg") GUICtrlSetData($progress, 25) GUICtrlDelete($step5) $step6 = GUICtrlCreateLabel("Extracting 'splash\splash2.jpg'", 10, 60, 146, 17) FileInstall("splash\splash2.jpg", "splash\splash2.jpg") GUICtrlSetData($progress, 30) GUICtrlDelete($step6) $step7 = GUICtrlCreateLabel("Extracting 'splash\splash3.jpg'", 10, 60, 146, 17) FileInstall("splash\splash3.jpg", "splash\splash3.jpg") GUICtrlSetData($progress, 35) GUICtrlDelete($step7) $step8 = GUICtrlCreateLabel("Extracting 'splash\splash4.jpg'", 10, 60, 146, 17) FileInstall("splash\splash4.jpg", "splash\splash4.jpg") GUICtrlSetData($progress, 40) GUICtrlDelete($step8) $step9 = GUICtrlCreateLabel("Extracting 'splash\splash5.jpg'", 10, 60, 146, 17) FileInstall("splash\splash5.jpg", "splash\splash5.jpg") GUICtrlSetData($progress, 45) GUICtrlDelete($step9) $step10 = GUICtrlCreateLabel("Extracting 'splash\splash6.jpg'", 10, 60, 146, 17) FileInstall("splash\splash6.jpg", "splash\splash6.jpg") GUICtrlSetData($progress, 50) GUICtrlDelete($step10) $step11 = GUICtrlCreateLabel("Extracting 'splash\splash7.jpg'", 10, 60, 146, 17) FileInstall("splash\splash7.jpg", "splash\splash7.jpg") GUICtrlSetData($progress, 55) GUICtrlDelete($step11) $step12 = GUICtrlCreateLabel("Extracting 'splash\splash8.jpg'", 10, 60, 146, 17) FileInstall("splash\splash8.jpg", "splash\splash8.jpg") GUICtrlSetData($progress, 60) GUICtrlDelete($step12) $step13 = GUICtrlCreateLabel("Extracting 'splash\splash9.jpg'", 10, 60, 146, 17) FileInstall("splash\splash9.jpg", "splash\splash9.jpg") GUICtrlSetData($progress, 65) GUICtrlDelete($step13) $step14 = GUICtrlCreateLabel("Extracting 'splash\splash10.jpg'", 10, 60, 146, 17) FileInstall("splash\splash10.jpg", "splash\splash10.jpg") GUICtrlSetData($progress, 70) GUICtrlDelete($step14) $step15 = GUICtrlCreateLabel("Extracting 'splash\splash11.jpg'", 10, 60, 146, 17) FileInstall("splash\splash11.jpg", "splash\splash11.jpg") GUICtrlSetData($progress, 75) GUICtrlDelete($step15) $step16 = GUICtrlCreateLabel("Extracting 'splash\splash12.jpg'", 10, 60, 146, 17) FileInstall("splash\splash12.jpg", "splash\splash12.jpg") GUICtrlSetData($progress, 80) GUICtrlDelete($step16) $step17 = GUICtrlCreateLabel("Extracting 'splash\splash13.jpg'", 10, 60, 146, 17) FileInstall("splash\splash13.jpg", "splash\splash13.jpg") GUICtrlSetData($progress, 85) GUICtrlDelete($step17) $step18 = GUICtrlCreateLabel("Extracting 'splash\splash14.jpg'", 10, 60, 146, 17) FileInstall("splash\splash14.jpg", "splash\splash14.jpg") GUICtrlSetData($progress, 90) GUICtrlDelete($step18) $step19 = GUICtrlCreateLabel("Extracting 'splash\splash15.jpg'", 10, 60, 146, 17) FileInstall("splash\splash15.jpg", "splash\splash15.jpg") GUICtrlSetData($progress, 95) GUICtrlDelete($step19) $step20 = GUICtrlCreateLabel("Writing new version into INI file", 10, 60, 150, 17) IniWrite("hmoption.ini", "Settings", "version", "1.0.1") GUICtrlSetData($progress, 100) GUICtrlCreateLabel("Update to v1.0.1 complete", 10, 60, 146, 17) Sleep(5000) Exit Else $step1 = GUICtrlCreateLabel("Creating Dir 'splash'", 10, 60, 102, 17) DirCreate("splash") GUICtrlSetData($progress, 5) GUICtrlDelete($step1) $step2 = GUICtrlCreateLabel("Extracting 'hm.exe'", 10, 60, 92, 17) FileInstall("hm.exe", "hm.exe", 1) GUICtrlSetData($progress, 10) GUICtrlDelete($step2) $step3 = GUICtrlCreateLabel("Extracting 'option.exe'", 10, 60, 107, 17) FileInstall("option.exe", "option.exe", 1) GUICtrlSetData($progress, 15) GUICtrlDelete($step3) $step4 = GUICtrlCreateLabel("Extracting 'hm.ico'", 10, 60, 89, 17) FileInstall("hm.ico", "hm.ico", 1) GUICtrlSetData($progress, 20) GUICtrlDelete($step4) $step5 = GUICtrlCreateLabel("Extracting 'splash\splash1.jpg'", 10, 60, 146, 17) FileInstall("splash\splash1.jpg", "splash\splash1.jpg") GUICtrlSetData($progress, 25) GUICtrlDelete($step5) $step6 = GUICtrlCreateLabel("Extracting 'splash\splash2.jpg'", 10, 60, 146, 17) FileInstall("splash\splash2.jpg", "splash\splash2.jpg") GUICtrlSetData($progress, 30) GUICtrlDelete($step6) $step7 = GUICtrlCreateLabel("Extracting 'splash\splash3.jpg'", 10, 60, 146, 17) FileInstall("splash\splash3.jpg", "splash\splash3.jpg") GUICtrlSetData($progress, 35) GUICtrlDelete($step7) $step8 = GUICtrlCreateLabel("Extracting 'splash\splash4.jpg'", 10, 60, 146, 17) FileInstall("splash\splash4.jpg", "splash\splash4.jpg") GUICtrlSetData($progress, 40) GUICtrlDelete($step8) $step9 = GUICtrlCreateLabel("Extracting 'splash\splash5.jpg'", 10, 60, 146, 17) FileInstall("splash\splash5.jpg", "splash\splash5.jpg") GUICtrlSetData($progress, 45) GUICtrlDelete($step9) $step10 = GUICtrlCreateLabel("Extracting 'splash\splash6.jpg'", 10, 60, 146, 17) FileInstall("splash\splash6.jpg", "splash\splash6.jpg") GUICtrlSetData($progress, 50) GUICtrlDelete($step10) $step11 = GUICtrlCreateLabel("Extracting 'splash\splash7.jpg'", 10, 60, 146, 17) FileInstall("splash\splash7.jpg", "splash\splash7.jpg") GUICtrlSetData($progress, 55) GUICtrlDelete($step11) $step12 = GUICtrlCreateLabel("Extracting 'splash\splash8.jpg'", 10, 60, 146, 17) FileInstall("splash\splash8.jpg", "splash\splash8.jpg") GUICtrlSetData($progress, 60) GUICtrlDelete($step12) $step13 = GUICtrlCreateLabel("Extracting 'splash\splash9.jpg'", 10, 60, 146, 17) FileInstall("splash\splash9.jpg", "splash\splash9.jpg") GUICtrlSetData($progress, 65) GUICtrlDelete($step13) $step14 = GUICtrlCreateLabel("Extracting 'splash\splash10.jpg'", 10, 60, 146, 17) FileInstall("splash\splash10.jpg", "splash\splash10.jpg") GUICtrlSetData($progress, 70) GUICtrlDelete($step14) $step15 = GUICtrlCreateLabel("Extracting 'splash\splash11.jpg'", 10, 60, 146, 17) FileInstall("splash\splash11.jpg", "splash\splash11.jpg") GUICtrlSetData($progress, 75) GUICtrlDelete($step15) $step16 = GUICtrlCreateLabel("Extracting 'splash\splash12.jpg'", 10, 60, 146, 17) FileInstall("splash\splash12.jpg", "splash\splash12.jpg") GUICtrlSetData($progress, 80) GUICtrlDelete($step16) $step17 = GUICtrlCreateLabel("Extracting 'splash\splash13.jpg'", 10, 60, 146, 17) FileInstall("splash\splash13.jpg", "splash\splash13.jpg") GUICtrlSetData($progress, 85) GUICtrlDelete($step17) $step18 = GUICtrlCreateLabel("Extracting 'splash\splash14.jpg'", 10, 60, 146, 17) FileInstall("splash\splash14.jpg", "splash\splash14.jpg") GUICtrlSetData($progress, 90) GUICtrlDelete($step18) $step19 = GUICtrlCreateLabel("Extracting 'splash\splash15.jpg'", 10, 60, 146, 17) FileInstall("splash\splash15.jpg", "splash\splash15.jpg") GUICtrlSetData($progress, 95) GUICtrlDelete($step19) $step20 = GUICtrlCreateLabel("Writing new version into INI file", 10, 60, 150, 17) IniWrite("hmoption.ini", "Settings", "version", "1.0.1") GUICtrlSetData($progress, 100) GUICtrlCreateLabel("Update to v1.0.1 complete", 10, 60, 146, 17) Sleep(5000) Exit EndIf Else $step1 = GUICtrlCreateLabel("Creating Dir 'splash'", 10, 60, 102, 17) DirCreate("splash") GUICtrlSetData($progress, 5) GUICtrlDelete($step1) $step2 = GUICtrlCreateLabel("Extracting 'hm.exe'", 10, 60, 92, 17) FileInstall("hm.exe", "hm.exe", 1) GUICtrlSetData($progress, 10) GUICtrlDelete($step2) $step3 = GUICtrlCreateLabel("Extracting 'option.exe'", 10, 60, 107, 17) FileInstall("option.exe", "option.exe", 1) GUICtrlSetData($progress, 15) GUICtrlDelete($step3) $step4 = GUICtrlCreateLabel("Extracting 'hm.ico'", 10, 60, 89, 17) FileInstall("hm.ico", "hm.ico", 1) GUICtrlSetData($progress, 20) GUICtrlDelete($step4) $step5 = GUICtrlCreateLabel("Extracting 'splash\splash1.jpg'", 10, 60, 146, 17) FileInstall("splash\splash1.jpg", "splash\splash1.jpg") GUICtrlSetData($progress, 25) GUICtrlDelete($step5) $step6 = GUICtrlCreateLabel("Extracting 'splash\splash2.jpg'", 10, 60, 146, 17) FileInstall("splash\splash2.jpg", "splash\splash2.jpg") GUICtrlSetData($progress, 30) GUICtrlDelete($step6) $step7 = GUICtrlCreateLabel("Extracting 'splash\splash3.jpg'", 10, 60, 146, 17) FileInstall("splash\splash3.jpg", "splash\splash3.jpg") GUICtrlSetData($progress, 35) GUICtrlDelete($step7) $step8 = GUICtrlCreateLabel("Extracting 'splash\splash4.jpg'", 10, 60, 146, 17) FileInstall("splash\splash4.jpg", "splash\splash4.jpg") GUICtrlSetData($progress, 40) GUICtrlDelete($step8) $step9 = GUICtrlCreateLabel("Extracting 'splash\splash5.jpg'", 10, 60, 146, 17) FileInstall("splash\splash5.jpg", "splash\splash5.jpg") GUICtrlSetData($progress, 45) GUICtrlDelete($step9) $step10 = GUICtrlCreateLabel("Extracting 'splash\splash6.jpg'", 10, 60, 146, 17) FileInstall("splash\splash6.jpg", "splash\splash6.jpg") GUICtrlSetData($progress, 50) GUICtrlDelete($step10) $step11 = GUICtrlCreateLabel("Extracting 'splash\splash7.jpg'", 10, 60, 146, 17) FileInstall("splash\splash7.jpg", "splash\splash7.jpg") GUICtrlSetData($progress, 55) GUICtrlDelete($step11) $step12 = GUICtrlCreateLabel("Extracting 'splash\splash8.jpg'", 10, 60, 146, 17) FileInstall("splash\splash8.jpg", "splash\splash8.jpg") GUICtrlSetData($progress, 60) GUICtrlDelete($step12) $step13 = GUICtrlCreateLabel("Extracting 'splash\splash9.jpg'", 10, 60, 146, 17) FileInstall("splash\splash9.jpg", "splash\splash9.jpg") GUICtrlSetData($progress, 65) GUICtrlDelete($step13) $step14 = GUICtrlCreateLabel("Extracting 'splash\splash10.jpg'", 10, 60, 146, 17) FileInstall("splash\splash10.jpg", "splash\splash10.jpg") GUICtrlSetData($progress, 70) GUICtrlDelete($step14) $step15 = GUICtrlCreateLabel("Extracting 'splash\splash11.jpg'", 10, 60, 146, 17) FileInstall("splash\splash11.jpg", "splash\splash11.jpg") GUICtrlSetData($progress, 75) GUICtrlDelete($step15) $step16 = GUICtrlCreateLabel("Extracting 'splash\splash12.jpg'", 10, 60, 146, 17) FileInstall("splash\splash12.jpg", "splash\splash12.jpg") GUICtrlSetData($progress, 80) GUICtrlDelete($step16) $step17 = GUICtrlCreateLabel("Extracting 'splash\splash13.jpg'", 10, 60, 146, 17) FileInstall("splash\splash13.jpg", "splash\splash13.jpg") GUICtrlSetData($progress, 85) GUICtrlDelete($step17) $step18 = GUICtrlCreateLabel("Extracting 'splash\splash14.jpg'", 10, 60, 146, 17) FileInstall("splash\splash14.jpg", "splash\splash14.jpg") GUICtrlSetData($progress, 90) GUICtrlDelete($step18) $step19 = GUICtrlCreateLabel("Extracting 'splash\splash15.jpg'", 10, 60, 146, 17) FileInstall("splash\splash15.jpg", "splash\splash15.jpg") GUICtrlSetData($progress, 95) GUICtrlDelete($step19) $step20 = GUICtrlCreateLabel("Writing new version into INI file", 10, 60, 150, 17) IniWrite("hmoption.ini", "Settings", "version", "1.0.1") GUICtrlSetData($progress, 100) GUICtrlCreateLabel("Update to v1.0.1 complete", 10, 60, 146, 17) Sleep(5000) Exit EndIf EndIf While 1 Sleep(1) WEndoÝ÷ ØwöËÞ¯)h$ÚÞ¥æyÛaçg¬ëm+"²;¬µªk¢Ú-ÊÅ©©êjezg§µ«b¢x§¶§jZºÚ"µÍÌÍÛØYHÕRPÜX]J ][ÝÒÛSXXÜÈHYHÚ[Û][ÝË L LKLK ÌÍÕÔ×ÔÔT BÕRTÙ]XÛÛ ][ÝÚKXÛÉ][ÝËLK ÌÍÛØYBÔ[ÛHXÈØÜRSIÌÌÎÉÌÌÎÂÌÍÜ[ÛHH[ÛJKMJBÌÍÚ[H[ ÌÍÜ[ÛJBÕRPÝÜX]TXÊ ][ÝÜÜÚ ÌLÜÜÚ ][ÝÈ [È ÌÍÚ[ [È ][ÝËÉ][ÝË L BÌÍÜÙÜÜÈHÕRPÝÜX]TÙÜÜÊ LMË ÌÍÔ×ÔÓSÓÕ BÕRTÙ]Ý]JÕ×ÔÒÕÊBÕRPÝÙ]]J ÌÍÜÙÜÜË BÈ[ÈÛXXÚÝ[]Ù] ][ÝÚËÚÛ[XXÜË]ZÜÝÛÛKÚKÝ]K^I][ÝË ][ÝÝ]K^I][ÝÊBYÜ[IÌÍÜ[ØÚXÚÈH[Ê ][ÝÚËÝÝÝËÛÛÙÛKÛÛI][ÝÊBRY ÌÍÜ[ØÚXÚÈH[BSÙÐÞ ][ÝÕZ[Ú ÌÌÎÉ][ÝË ][ÝÑÜÝÛØY[ÈH]H[N[ÝHHÝÛÛXÝYÈH[]Ú[IÌÌÎÉ][ÝË BBQ^]Q[ÙRY ÌÍÜ[ØÚXÚÈ ÝÈ[BSÙÐÞ ][ÝÕZ[Ú ÌÌÎÉ][ÝË ][ÝÑÜÝÛØY[ÈH]H[NHÝÛØYÙX^H]HÜÚYÜÛÛY][Ë]]ÛÌÎNÝ[][ÈÛÛÙ[È[ÝÛÛ][ÝHÚ[ÝHXHÈ^ÈÛ[ÝÝÛ[ÝÝÛYÝÜX^WØÛÛZ[ÜX[]ÌXZÛËÛÛK][ÝË BBQ^]Q[Y[YÛY L B[ ][ÝÝ]K^I][ÝÊBy the way, this update window is what I wanted to have the transparency gradient with.Here is the exe, if you want to test it out and tell me what you think.Note: I had do use a hosting site because this update has 3 MB of files! O_O Unzip the ZIP archive into a safe folder.. because it'll be extracting 20 files into that folder. http://www.fastdump.net/975266-update.zip Edited April 8, 2007 by sandman [center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center] Link to comment Share on other sites More sharing options...
GEOSoft Posted April 9, 2007 Share Posted April 9, 2007 I haven't posted many finished scripts here. Well, for that fact, the only one other than this is GetMousePosition.. I wouldn't even call that a script. This is an update application that I will be implementing in HolyMacro (see my signature). It has probably been done before, but probably not shown to the public. I just want to demonstrate this. Update code:expandcollapse popup#include <GUIConstants.au3> #include <XSkinGradient.au3> $checkversion = IniRead("hmoption.ini", "Settings", "version", "") $updatewin = GUICreate("HolyMacro Free Version - v1.0.1 Updater", 378, 87, 0, 0, $WS_POPUP) XSkinGradient($updatewin, 000000, 0xC0DCC0) ;~ GUISetBkColor(0xC0DCC0, $updatewin) GUISetState(@SW_SHOW, $updatewin) WinSetTrans("HolyMacro Free Version - v1.0.1 Updater", "", 175) If $checkversion = "1.0.1" Then GUICtrlCreateLabel("You already have the latest update of HMF. Exiting...", 10, 60, 253, 17) GUICtrlSetBKColor(-1, $GUI_BKCOLOR_TRANSPARENT) Sleep(4000) Exit Else $progress = GUICtrlCreateProgress(10, 10, 360, 17) GUICtrlSetData($progress, 0) If ProcessExists("hm.exe") Then ProcessClose("hm.exe") If WinActive("HolyMacro - Free Version") Then WinClose("HolyMacro - Free Version") $step1 = GUICtrlCreateLabel("Creating Dir 'splash'", 10, 60, 102, 17) DirCreate("splash") GUICtrlSetData($progress, 5) GUICtrlDelete($step1) $step2 = GUICtrlCreateLabel("Extracting 'hm.exe'", 10, 60, 92, 17) FileInstall("hm.exe", "hm.exe", 1) GUICtrlSetData($progress, 10) GUICtrlDelete($step2) $step3 = GUICtrlCreateLabel("Extracting 'option.exe'", 10, 60, 107, 17) FileInstall("option.exe", "option.exe", 1) GUICtrlSetData($progress, 15) GUICtrlDelete($step3) $step4 = GUICtrlCreateLabel("Extracting 'hm.ico'", 10, 60, 89, 17) FileInstall("hm.ico", "hm.ico", 1) GUICtrlSetData($progress, 20) GUICtrlDelete($step4) $step5 = GUICtrlCreateLabel("Extracting 'splash\splash1.jpg'", 10, 60, 146, 17) FileInstall("splash\splash1.jpg", "splash\splash1.jpg") GUICtrlSetData($progress, 25) GUICtrlDelete($step5) $step6 = GUICtrlCreateLabel("Extracting 'splash\splash2.jpg'", 10, 60, 146, 17) FileInstall("splash\splash2.jpg", "splash\splash2.jpg") GUICtrlSetData($progress, 30) GUICtrlDelete($step6) $step7 = GUICtrlCreateLabel("Extracting 'splash\splash3.jpg'", 10, 60, 146, 17) FileInstall("splash\splash3.jpg", "splash\splash3.jpg") GUICtrlSetData($progress, 35) GUICtrlDelete($step7) $step8 = GUICtrlCreateLabel("Extracting 'splash\splash4.jpg'", 10, 60, 146, 17) FileInstall("splash\splash4.jpg", "splash\splash4.jpg") GUICtrlSetData($progress, 40) GUICtrlDelete($step8) $step9 = GUICtrlCreateLabel("Extracting 'splash\splash5.jpg'", 10, 60, 146, 17) FileInstall("splash\splash5.jpg", "splash\splash5.jpg") GUICtrlSetData($progress, 45) GUICtrlDelete($step9) $step10 = GUICtrlCreateLabel("Extracting 'splash\splash6.jpg'", 10, 60, 146, 17) FileInstall("splash\splash6.jpg", "splash\splash6.jpg") GUICtrlSetData($progress, 50) GUICtrlDelete($step10) $step11 = GUICtrlCreateLabel("Extracting 'splash\splash7.jpg'", 10, 60, 146, 17) FileInstall("splash\splash7.jpg", "splash\splash7.jpg") GUICtrlSetData($progress, 55) GUICtrlDelete($step11) $step12 = GUICtrlCreateLabel("Extracting 'splash\splash8.jpg'", 10, 60, 146, 17) FileInstall("splash\splash8.jpg", "splash\splash8.jpg") GUICtrlSetData($progress, 60) GUICtrlDelete($step12) $step13 = GUICtrlCreateLabel("Extracting 'splash\splash9.jpg'", 10, 60, 146, 17) FileInstall("splash\splash9.jpg", "splash\splash9.jpg") GUICtrlSetData($progress, 65) GUICtrlDelete($step13) $step14 = GUICtrlCreateLabel("Extracting 'splash\splash10.jpg'", 10, 60, 146, 17) FileInstall("splash\splash10.jpg", "splash\splash10.jpg") GUICtrlSetData($progress, 70) GUICtrlDelete($step14) $step15 = GUICtrlCreateLabel("Extracting 'splash\splash11.jpg'", 10, 60, 146, 17) FileInstall("splash\splash11.jpg", "splash\splash11.jpg") GUICtrlSetData($progress, 75) GUICtrlDelete($step15) $step16 = GUICtrlCreateLabel("Extracting 'splash\splash12.jpg'", 10, 60, 146, 17) FileInstall("splash\splash12.jpg", "splash\splash12.jpg") GUICtrlSetData($progress, 80) GUICtrlDelete($step16) $step17 = GUICtrlCreateLabel("Extracting 'splash\splash13.jpg'", 10, 60, 146, 17) FileInstall("splash\splash13.jpg", "splash\splash13.jpg") GUICtrlSetData($progress, 85) GUICtrlDelete($step17) $step18 = GUICtrlCreateLabel("Extracting 'splash\splash14.jpg'", 10, 60, 146, 17) FileInstall("splash\splash14.jpg", "splash\splash14.jpg") GUICtrlSetData($progress, 90) GUICtrlDelete($step18) $step19 = GUICtrlCreateLabel("Extracting 'splash\splash15.jpg'", 10, 60, 146, 17) FileInstall("splash\splash15.jpg", "splash\splash15.jpg") GUICtrlSetData($progress, 95) GUICtrlDelete($step19) $step20 = GUICtrlCreateLabel("Writing new version into INI file", 10, 60, 150, 17) IniWrite("hmoption.ini", "Settings", "version", "1.0.1") GUICtrlSetData($progress, 100) GUICtrlCreateLabel("Update to v1.0.1 complete", 10, 60, 146, 17) Sleep(5000) Exit Else $step1 = GUICtrlCreateLabel("Creating Dir 'splash'", 10, 60, 102, 17) DirCreate("splash") GUICtrlSetData($progress, 5) GUICtrlDelete($step1) $step2 = GUICtrlCreateLabel("Extracting 'hm.exe'", 10, 60, 92, 17) FileInstall("hm.exe", "hm.exe", 1) GUICtrlSetData($progress, 10) GUICtrlDelete($step2) $step3 = GUICtrlCreateLabel("Extracting 'option.exe'", 10, 60, 107, 17) FileInstall("option.exe", "option.exe", 1) GUICtrlSetData($progress, 15) GUICtrlDelete($step3) $step4 = GUICtrlCreateLabel("Extracting 'hm.ico'", 10, 60, 89, 17) FileInstall("hm.ico", "hm.ico", 1) GUICtrlSetData($progress, 20) GUICtrlDelete($step4) $step5 = GUICtrlCreateLabel("Extracting 'splash\splash1.jpg'", 10, 60, 146, 17) FileInstall("splash\splash1.jpg", "splash\splash1.jpg") GUICtrlSetData($progress, 25) GUICtrlDelete($step5) $step6 = GUICtrlCreateLabel("Extracting 'splash\splash2.jpg'", 10, 60, 146, 17) FileInstall("splash\splash2.jpg", "splash\splash2.jpg") GUICtrlSetData($progress, 30) GUICtrlDelete($step6) $step7 = GUICtrlCreateLabel("Extracting 'splash\splash3.jpg'", 10, 60, 146, 17) FileInstall("splash\splash3.jpg", "splash\splash3.jpg") GUICtrlSetData($progress, 35) GUICtrlDelete($step7) $step8 = GUICtrlCreateLabel("Extracting 'splash\splash4.jpg'", 10, 60, 146, 17) FileInstall("splash\splash4.jpg", "splash\splash4.jpg") GUICtrlSetData($progress, 40) GUICtrlDelete($step8) $step9 = GUICtrlCreateLabel("Extracting 'splash\splash5.jpg'", 10, 60, 146, 17) FileInstall("splash\splash5.jpg", "splash\splash5.jpg") GUICtrlSetData($progress, 45) GUICtrlDelete($step9) $step10 = GUICtrlCreateLabel("Extracting 'splash\splash6.jpg'", 10, 60, 146, 17) FileInstall("splash\splash6.jpg", "splash\splash6.jpg") GUICtrlSetData($progress, 50) GUICtrlDelete($step10) $step11 = GUICtrlCreateLabel("Extracting 'splash\splash7.jpg'", 10, 60, 146, 17) FileInstall("splash\splash7.jpg", "splash\splash7.jpg") GUICtrlSetData($progress, 55) GUICtrlDelete($step11) $step12 = GUICtrlCreateLabel("Extracting 'splash\splash8.jpg'", 10, 60, 146, 17) FileInstall("splash\splash8.jpg", "splash\splash8.jpg") GUICtrlSetData($progress, 60) GUICtrlDelete($step12) $step13 = GUICtrlCreateLabel("Extracting 'splash\splash9.jpg'", 10, 60, 146, 17) FileInstall("splash\splash9.jpg", "splash\splash9.jpg") GUICtrlSetData($progress, 65) GUICtrlDelete($step13) $step14 = GUICtrlCreateLabel("Extracting 'splash\splash10.jpg'", 10, 60, 146, 17) FileInstall("splash\splash10.jpg", "splash\splash10.jpg") GUICtrlSetData($progress, 70) GUICtrlDelete($step14) $step15 = GUICtrlCreateLabel("Extracting 'splash\splash11.jpg'", 10, 60, 146, 17) FileInstall("splash\splash11.jpg", "splash\splash11.jpg") GUICtrlSetData($progress, 75) GUICtrlDelete($step15) $step16 = GUICtrlCreateLabel("Extracting 'splash\splash12.jpg'", 10, 60, 146, 17) FileInstall("splash\splash12.jpg", "splash\splash12.jpg") GUICtrlSetData($progress, 80) GUICtrlDelete($step16) $step17 = GUICtrlCreateLabel("Extracting 'splash\splash13.jpg'", 10, 60, 146, 17) FileInstall("splash\splash13.jpg", "splash\splash13.jpg") GUICtrlSetData($progress, 85) GUICtrlDelete($step17) $step18 = GUICtrlCreateLabel("Extracting 'splash\splash14.jpg'", 10, 60, 146, 17) FileInstall("splash\splash14.jpg", "splash\splash14.jpg") GUICtrlSetData($progress, 90) GUICtrlDelete($step18) $step19 = GUICtrlCreateLabel("Extracting 'splash\splash15.jpg'", 10, 60, 146, 17) FileInstall("splash\splash15.jpg", "splash\splash15.jpg") GUICtrlSetData($progress, 95) GUICtrlDelete($step19) $step20 = GUICtrlCreateLabel("Writing new version into INI file", 10, 60, 150, 17) IniWrite("hmoption.ini", "Settings", "version", "1.0.1") GUICtrlSetData($progress, 100) GUICtrlCreateLabel("Update to v1.0.1 complete", 10, 60, 146, 17) Sleep(5000) Exit EndIf Else $step1 = GUICtrlCreateLabel("Creating Dir 'splash'", 10, 60, 102, 17) DirCreate("splash") GUICtrlSetData($progress, 5) GUICtrlDelete($step1) $step2 = GUICtrlCreateLabel("Extracting 'hm.exe'", 10, 60, 92, 17) FileInstall("hm.exe", "hm.exe", 1) GUICtrlSetData($progress, 10) GUICtrlDelete($step2) $step3 = GUICtrlCreateLabel("Extracting 'option.exe'", 10, 60, 107, 17) FileInstall("option.exe", "option.exe", 1) GUICtrlSetData($progress, 15) GUICtrlDelete($step3) $step4 = GUICtrlCreateLabel("Extracting 'hm.ico'", 10, 60, 89, 17) FileInstall("hm.ico", "hm.ico", 1) GUICtrlSetData($progress, 20) GUICtrlDelete($step4) $step5 = GUICtrlCreateLabel("Extracting 'splash\splash1.jpg'", 10, 60, 146, 17) FileInstall("splash\splash1.jpg", "splash\splash1.jpg") GUICtrlSetData($progress, 25) GUICtrlDelete($step5) $step6 = GUICtrlCreateLabel("Extracting 'splash\splash2.jpg'", 10, 60, 146, 17) FileInstall("splash\splash2.jpg", "splash\splash2.jpg") GUICtrlSetData($progress, 30) GUICtrlDelete($step6) $step7 = GUICtrlCreateLabel("Extracting 'splash\splash3.jpg'", 10, 60, 146, 17) FileInstall("splash\splash3.jpg", "splash\splash3.jpg") GUICtrlSetData($progress, 35) GUICtrlDelete($step7) $step8 = GUICtrlCreateLabel("Extracting 'splash\splash4.jpg'", 10, 60, 146, 17) FileInstall("splash\splash4.jpg", "splash\splash4.jpg") GUICtrlSetData($progress, 40) GUICtrlDelete($step8) $step9 = GUICtrlCreateLabel("Extracting 'splash\splash5.jpg'", 10, 60, 146, 17) FileInstall("splash\splash5.jpg", "splash\splash5.jpg") GUICtrlSetData($progress, 45) GUICtrlDelete($step9) $step10 = GUICtrlCreateLabel("Extracting 'splash\splash6.jpg'", 10, 60, 146, 17) FileInstall("splash\splash6.jpg", "splash\splash6.jpg") GUICtrlSetData($progress, 50) GUICtrlDelete($step10) $step11 = GUICtrlCreateLabel("Extracting 'splash\splash7.jpg'", 10, 60, 146, 17) FileInstall("splash\splash7.jpg", "splash\splash7.jpg") GUICtrlSetData($progress, 55) GUICtrlDelete($step11) $step12 = GUICtrlCreateLabel("Extracting 'splash\splash8.jpg'", 10, 60, 146, 17) FileInstall("splash\splash8.jpg", "splash\splash8.jpg") GUICtrlSetData($progress, 60) GUICtrlDelete($step12) $step13 = GUICtrlCreateLabel("Extracting 'splash\splash9.jpg'", 10, 60, 146, 17) FileInstall("splash\splash9.jpg", "splash\splash9.jpg") GUICtrlSetData($progress, 65) GUICtrlDelete($step13) $step14 = GUICtrlCreateLabel("Extracting 'splash\splash10.jpg'", 10, 60, 146, 17) FileInstall("splash\splash10.jpg", "splash\splash10.jpg") GUICtrlSetData($progress, 70) GUICtrlDelete($step14) $step15 = GUICtrlCreateLabel("Extracting 'splash\splash11.jpg'", 10, 60, 146, 17) FileInstall("splash\splash11.jpg", "splash\splash11.jpg") GUICtrlSetData($progress, 75) GUICtrlDelete($step15) $step16 = GUICtrlCreateLabel("Extracting 'splash\splash12.jpg'", 10, 60, 146, 17) FileInstall("splash\splash12.jpg", "splash\splash12.jpg") GUICtrlSetData($progress, 80) GUICtrlDelete($step16) $step17 = GUICtrlCreateLabel("Extracting 'splash\splash13.jpg'", 10, 60, 146, 17) FileInstall("splash\splash13.jpg", "splash\splash13.jpg") GUICtrlSetData($progress, 85) GUICtrlDelete($step17) $step18 = GUICtrlCreateLabel("Extracting 'splash\splash14.jpg'", 10, 60, 146, 17) FileInstall("splash\splash14.jpg", "splash\splash14.jpg") GUICtrlSetData($progress, 90) GUICtrlDelete($step18) $step19 = GUICtrlCreateLabel("Extracting 'splash\splash15.jpg'", 10, 60, 146, 17) FileInstall("splash\splash15.jpg", "splash\splash15.jpg") GUICtrlSetData($progress, 95) GUICtrlDelete($step19) $step20 = GUICtrlCreateLabel("Writing new version into INI file", 10, 60, 150, 17) IniWrite("hmoption.ini", "Settings", "version", "1.0.1") GUICtrlSetData($progress, 100) GUICtrlCreateLabel("Update to v1.0.1 complete", 10, 60, 146, 17) Sleep(5000) Exit EndIf EndIf While 1 Sleep(1) WEndoÝ÷ ØwöËÞ¯)h$ÚÞ¥æyÛaçg¬ëm+"²;¬µªk¢Ú-ÊÅ©©êjezg§µ«b¢x§¶§jZºÚ"µÍÌÍÛØYHÕRPÜX]J ][ÝÒÛSXXÜÈHYHÚ[Û][ÝË L LKLK ÌÍÕÔ×ÔÔT BÕRTÙ]XÛÛ ][ÝÚKXÛÉ][ÝËLK ÌÍÛØYBÔ[ÛHXÈØÜRSIÌÌÎÉÌÌÎÂÌÍÜ[ÛHH[ÛJKMJBÌÍÚ[H[ ÌÍÜ[ÛJBÕRPÝÜX]TXÊ ][ÝÜÜÚ ÌLÜÜÚ ][ÝÈ [È ÌÍÚ[ [È ][ÝËÉ][ÝË L BÌÍÜÙÜÜÈHÕRPÝÜX]TÙÜÜÊ LMË ÌÍÔ×ÔÓSÓÕ BÕRTÙ]Ý]JÕ×ÔÒÕÊBÕRPÝÙ]]J ÌÍÜÙÜÜË BÈ[ÈÛXXÚÝ[]Ù] ][ÝÚËÚÛ[XXÜË]ZÜÝÛÛKÚKÝ]K^I][ÝË ][ÝÝ]K^I][ÝÊBYÜ[IÌÍÜ[ØÚXÚÈH[Ê ][ÝÚËÝÝÝËÛÛÙÛKÛÛI][ÝÊBRY ÌÍÜ[ØÚXÚÈH[BSÙÐÞ ][ÝÕZ[Ú ÌÌÎÉ][ÝË ][ÝÑÜÝÛØY[ÈH]H[N[ÝHHÝÛÛXÝYÈH[]Ú[IÌÌÎÉ][ÝË BBQ^]Q[ÙRY ÌÍÜ[ØÚXÚÈ ÝÈ[BSÙÐÞ ][ÝÕZ[Ú ÌÌÎÉ][ÝË ][ÝÑÜÝÛØY[ÈH]H[NHÝÛØYÙX^H]HÜÚYÜÛÛY][Ë]]ÛÌÎNÝ[][ÈÛÛÙ[È[ÝÛÛ][ÝHÚ[ÝHXHÈ^ÈÛ[ÝÝÛ[ÝÝÛYÝÜX^WØÛÛZ[ÜX[]ÌXZÛËÛÛK][ÝË BBQ^]Q[Y[YÛY L B[ ][ÝÝ]K^I][ÝÊ By the way, this update window is what I wanted to have the transparency gradient with. Here is the exe, if you want to test it out and tell me what you think. Note: I had do use a hosting site because this update has 3 MB of files! O_O Unzip the ZIP archive into a safe folder.. because it'll be extracting 20 files into that folder. http://www.fastdump.net/975266-update.zipThe concept is good but why are you creating so many labels overtop of one another instead of using GUICtrlSetData()? George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
sandman Posted April 9, 2007 Author Share Posted April 9, 2007 Hmm.. good question. I will fix that. Wow.. I feel stupid now. P.S. please remove the quote of my post from your reply... it doubles this page's size. [center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center] Link to comment Share on other sites More sharing options...
Skrip Posted April 9, 2007 Share Posted April 9, 2007 You should use arrays instead of repeating so much. But otherwise goodjob. [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left] 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