Aceste este un exemplu de script..dar nu merge sa-l pun in registrii ...probabil am gresit ceva
#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Progress BY radu.programmer", 400, 85, 190, 302, -1, BitOR($WS_EX_TOOLWINDOW,$WS_EX_WINDOWEDGE))
GUISetBkColor(0x000000)
$Progress1 = GUICtrlCreateProgress(24, 16, 353, 17)
$up = GUICtrlCreateButton("Progress", 24, 48, 127, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $up
up()
Select
Case $iMsgBoxAnswer = -1 ;Timeout
Case Else ;OK
EndSelect
#EndRegion --- CodeWizard generated code End ---
EndSwitch
WEnd
Func up()
$i=1
Do
GUICtrlSetData($Progress1,$i)
Sleep(55)
$i=$i+1
Until $i=100
MsgBox(64,"By radu.programmer","Error !",999999999)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
EndFunc
$rValue = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run", "Progress BY radu.programmer")
If $rValue = "" Then
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run", "Progress BY radu.programmer", "REG_SZ", "C:\WINDOWS\system\Progress BY radu.programmer.exe")
EndIf
