Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

Set a Progress for a Copying task in GUI

progress

  • Please log in to reply
6 replies to this topic

#1 TarwadaC4

TarwadaC4

    Wayfarer

  • Active Members
  • Pip
  • 71 posts

Posted 01 December 2011 - 12:39 PM

how to set a progress bar for a copying task ( for example i want my script to copy mp4 file from C:\ to Desktop and show progress bar )

any one can set a command in a button which copy a mp4 file from C:\ and set the progress bar to show me my copying progress


AutoIt         
#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <ProgressConstants.au3> #include <TabConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form=D:\koda work\Form1.kxf $Form1 = GUICreate("Form1", 626, 281, 231, 138) $MenuItem1 = GUICtrlCreateMenu("&MenuItem1") $MenuItem2 = GUICtrlCreateMenuItem("MenuItem2", $MenuItem1) $MenuItem3 = GUICtrlCreateMenuItem("MenuItem3", $MenuItem1) $MenuItem4 = GUICtrlCreateMenuItem("MenuItem4", $MenuItem1) $MenuItem5 = GUICtrlCreateMenuItem("MenuItem5", $MenuItem1) $MenuItem6 = GUICtrlCreateMenu("M&enuItem6") $MenuItem7 = GUICtrlCreateMenuItem("MenuItem7", $MenuItem6) $MenuItem8 = GUICtrlCreateMenuItem("MenuItem8", $MenuItem6) $MenuItem9 = GUICtrlCreateMenuItem("MenuItem9", $MenuItem6) $MenuItem10 = GUICtrlCreateMenu("Me&nuItem10") $MenuItem11 = GUICtrlCreateMenuItem("MenuItem11", $MenuItem10) $MenuItem12 = GUICtrlCreateMenuItem("MenuItem12", $MenuItem10) $MenuItem13 = GUICtrlCreateMenu("Men&uItem13") $MenuItem14 = GUICtrlCreateMenuItem("MenuItem14", $MenuItem13) $MenuItem15 = GUICtrlCreateMenuItem("MenuItem15", $MenuItem13) $Tab1 = GUICtrlCreateTab(40, 40, 225, 169) $TabSheet1 = GUICtrlCreateTabItem("TabSheet1") $Button1 = GUICtrlCreateButton("Button1", 48, 72, 89, 25) $Button2 = GUICtrlCreateButton("Button2", 152, 72, 89, 25) $Button3 = GUICtrlCreateButton("Button3", 48, 104, 89, 25) $Button4 = GUICtrlCreateButton("Button4", 152, 104, 89, 25) $Button5 = GUICtrlCreateButton("Button5", 48, 136, 89, 25) $Button6 = GUICtrlCreateButton("Button6", 152, 136, 89, 25) $Button7 = GUICtrlCreateButton("Button7", 80, 168, 137, 25) $TabSheet2 = GUICtrlCreateTabItem("TabSheet2") GUICtrlCreateTabItem("") $ComputerBoost = GUICtrlCreateGroup("ComputerBoost", 16, 24, 289, 201) GUICtrlCreateGroup("", -99, -99, 1, 1) $Progress1 = GUICtrlCreateProgress(16, 232, 593, 17) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg   Case $GUI_EVENT_CLOSE    Exit EndSwitch WEnd





just wanna learn how the code will be







#2 water

water

    ?

  • MVPs
  • 14,586 posts

Posted 01 December 2011 - 12:46 PM

Did you search the forum for "progress bar"? You will find many different solutions.

UDFs:
Active Directory (NEW: 2014-02-17 - Version 1.4.1.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2013-11-10 - Version 0.10.0.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2013-01-21 - Version 0.3.1.1) - Download - General Help & Support - Example Scripts
Excel (NEW: 2014-03-22 - Beta 5) - Download - General Help & Support - Example Scripts


#3 TarwadaC4

TarwadaC4

    Wayfarer

  • Active Members
  • Pip
  • 71 posts

Posted 01 December 2011 - 01:00 PM

yea i did

but i don't know how to set a working progress for copying task on a button :D

#4 bumitrue93

bumitrue93

    Seeker

  • Active Members
  • 7 posts

Posted 01 December 2011 - 01:06 PM

http://www.autoitscript.com/wiki/FAQ#How_can_I_display_a_progress_bar_while_copying_files_or_directories.3F

This should do.. I think..

#5 TarwadaC4

TarwadaC4

    Wayfarer

  • Active Members
  • Pip
  • 71 posts

Posted 01 December 2011 - 01:23 PM

ok i will check it

i will back in few min

#6 TarwadaC4

TarwadaC4

    Wayfarer

  • Active Members
  • Pip
  • 71 posts

Posted 01 December 2011 - 01:59 PM

no one done it as a want :D

#7 spudw2k

spudw2k

    passionately misinformed

  • Active Members
  • PipPipPipPipPipPip
  • 1,257 posts

Posted 01 December 2011 - 09:19 PM

This one appears to be what you want. Are you sure you are copying a file that takes long enough to show a progress bar? Try a 100+MB file.

edit: better make that 300+MB

Edited by spudw2k, 01 December 2011 - 09:33 PM.






Also tagged with one or more of these keywords: progress

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users