ich habe für ein MMO Spiel folgende idee.
Ich möchte wenn ich zb die Taste F2 drücke das eine Fähigkeit aktiviert wird mit send, 2
und eine Progress bar startet die in 30 sekunden voll ist.
Nun habe ich folgendes gefunden, jedoch wenn ich zb F3 drücke startet die 2. Bar und die erste hört auf was gemäß code auch logisch ist aber wie kann ich das ändern?
Der erste balken soll ganz normal weiterlaufen unabhängig davon ob ich F3 drücke oder F2 drücke.
Code: Select all
Gui,1:Add,Progress, x10 y10 w400 h20 vPRBAR cFF7200
Gui,1:Add,Text, cBlack x10 y10 w400 h20 +0x200 +Center +BackgroundTrans vText22, ;here empty
Gui,1:Add,Progress, x10 y40 w400 h20 vPRBAR1 cFF7200
Gui,1:Add,Text, cBlack x10 y40 w400 h20 +0x200 +Center +BackgroundTrans vText33, ;here empty
Gui,1:Show, w400 h200 ,
F2::
GuiControl,, PRBAR, 0
loop, 100
{
GuiControl,, PRBAR, +1
GuiControl,1:,Text22,%A_Index% ;to fill progressbar later
sleep, 60
}
Return
F3::
GuiControl,, PRBAR1, 0
loop, 100
{
GuiControl,, PRBAR1, +1
GuiControl,1:,Text33,%A_Index% ;to fill progressbar later
sleep, 60
}
Return