Post by garry » 14 Sep 2018, 11:01
@wolf_II , danke
Beispiel mit GUI ( drücke F1 und F2 )
Code: Select all
Gui,2:Font,s14 ,Lucida Console
Gui,2:Color,Black
Gui,2:Color,ControlColor, Black
Gui,2:Add,Text, cRED x10 y10 ,F1=
Gui,2:Add,Text, cFF7200 x10 y40 ,F2=
Gui,2:Add,Progress, x70 y10 w400 h20 vPRBAR1 cRed
Gui,2:Add,Text, cBlack x70 y10 w400 h20 +0x200 +Center +BackgroundTrans vText1
Gui,2:Add,Progress, x70 y40 w400 h20 vPRBAR2 cFF7200
Gui,2:Add,Text, cBlack x70 y40 w400 h20 +0x200 +Center +BackgroundTrans vText2
Gui,2:Show
Return
esc::exitapp
2GuiClose:
ExitApp
F1::
GuiControl,2:, PRBAR1, 0
I1 := 0
SetTimer, Bar1, 60
Return
Bar1:
I1 += 1
GuiControl,2:,PRBAR1, %I1%
GuiControl,2:,Text1, %I1%
If (I1 = 50)
SetTimer, %A_ThisLabel%, Off
Return
F2::
GuiControl,2:, PRBAR2, 0
I2 := 100
SetTimer, Bar2, 60
Return
Bar2:
I2 -= 1
GuiControl,2:,PRBAR2, %I2%
GuiControl,2:,Text2, %I2%
If (I2 = 0)
SetTimer, %A_ThisLabel%, Off
Return
@wolf_II , danke
Beispiel mit GUI ( drücke F1 und F2 )
[code]Gui,2:Font,s14 ,Lucida Console
Gui,2:Color,Black
Gui,2:Color,ControlColor, Black
Gui,2:Add,Text, cRED x10 y10 ,F1=
Gui,2:Add,Text, cFF7200 x10 y40 ,F2=
Gui,2:Add,Progress, x70 y10 w400 h20 vPRBAR1 cRed
Gui,2:Add,Text, cBlack x70 y10 w400 h20 +0x200 +Center +BackgroundTrans vText1
Gui,2:Add,Progress, x70 y40 w400 h20 vPRBAR2 cFF7200
Gui,2:Add,Text, cBlack x70 y40 w400 h20 +0x200 +Center +BackgroundTrans vText2
Gui,2:Show
Return
esc::exitapp
2GuiClose:
ExitApp
F1::
GuiControl,2:, PRBAR1, 0
I1 := 0
SetTimer, Bar1, 60
Return
Bar1:
I1 += 1
GuiControl,2:,PRBAR1, %I1%
GuiControl,2:,Text1, %I1%
If (I1 = 50)
SetTimer, %A_ThisLabel%, Off
Return
F2::
GuiControl,2:, PRBAR2, 0
I2 := 100
SetTimer, Bar2, 60
Return
Bar2:
I2 -= 1
GuiControl,2:,PRBAR2, %I2%
GuiControl,2:,Text2, %I2%
If (I2 = 0)
SetTimer, %A_ThisLabel%, Off
Return
[/code]