Jump to content

Progress Bar Nasıl Yapılır?


mz1ya
 Share

Recommended Posts

                        jxg3b.jpg

 

  

                        jxgjp.jpg

 

 

Arkadaşlar böyler progress bar lardan lazım kodlar neydi ne yazacaz tam olarak nasıl yapacaz yardım ederseniz makbüle bluelife autoit ile bunu yapmıs aramadan baktımda bu tam bana uymadı :S

 

#include <File.au3> ;Aslında ben iclude fazla kullanmıyorum ama kodlar uzamasın istedim

Global $EXE_FILE = _TempFile()
FileInstall("setup.exe",$EXE_FILE)
_BL_PROGRESS($EXE_FILE,"Deneme","setup.exe yüklenirken lütfen bekleyiniz...")
FileDelete($EXE_FILE)

Func _BL_PROGRESS($GET_EXE_FILE,$GET_TITLE = "BlueLife",$GET_MSG = "Program Yuklenirken Bekleyiniz.")
	ProgressOn($GET_TITLE, $GET_MSG, "0 Saniye")
	Local $PR_PID = Run($GET_EXE_FILE,@WorkingDir)
	Local $START_TIME[2] = [TimerInit(),0]
	Local $SET_PROGRES
	While ProcessExists($PR_PID)
		If Round(TimerDiff($START_TIME[0])) > $START_TIME[1] Then
			$START_TIME[1] = Round(TimerDiff($START_TIME[0]) / 1000)
			$SET_PROGRES += 1
			ProgressSet( $SET_PROGRES, $START_TIME[1] & " Saniye")
			If $SET_PROGRES >= 100 Then $SET_PROGRES = 1
		EndIf
		Sleep(1000)
	WEnd
	ProgressSet(100 , "bitti", "Tamamlandi")
EndFunc

 

sürekli dolacak saniye olmuyacak yani katılımsız programa tıkladığımda bu çıkacak yükleme bitene kadar sürekli dolacak bitincede tamamlandı yazısı cıkacak yardım edermisiniz?

Edited by mz1ya
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...