MSFN Forum: AutoIt Code Question - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

AutoIt Code Question Rate Topic: -----

#1 User is offline   cmonkedo 

  • if it aint broke fix it anyways
  • Pip
  • Group: Members
  • Posts: 74
  • Joined: 03-April 08

Posted 01 September 2010 - 08:58 PM

I am creating a script to run my silent installer files from a specific location i.e. network folder and I would like to create a progress bar with autoit. this is my current script:
; Run the installer
RunWait("Dot_Net2_3_3.5.exe")
RunWait("firefox36.exe")
RunWait("avg90.exe")
RunWait("flashax10.exe")
RunWait("flashplug10.exe")
RunWait("java621.exe")
RunWait("reader93.exe")
RunWait("shockwave115.exe")
RunWait("cdbxp43.exe")
RunWait("klite630.exe")
RunWait("openoffice321.exe")
MsgBox(0+48, "Silent Installer", "Complete!")

Can anyone tell me how i could create a progress display such as: installing 1 of 11, 2 of 11 and so on?


#2 User is offline   allen2 

  • Not really Newbie
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,379
  • Joined: 13-January 06

Posted 02 September 2010 - 01:46 PM

I think the function ProgressOn should do.

#3 User is offline   iamtheky 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 833
  • Joined: 11-November 08

Posted 02 September 2010 - 02:48 PM

yup i would recommend something like

$n = <number of items>
$e = 100 / $n
progresson ("running", "")
progressSet ($e * 1 , "im doing step 1 of " & $n)
runwait ......
progressSet ($e * 2, "im doing step 2 of " & $n)       
runwait ......

This post has been edited by iamtheky: 02 September 2010 - 02:49 PM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy