Ich arbeite geradé an dem programm was im anhang ist ^^
Der Code sieht so aus:
Ich hab das ja mit Progress`s gemacht,und ich wollte wissen wie ich das mache das,wenn ich z.b. auf Angreifen drücke er 20 von den 100 abzieht vom Progress und wenn ich nochmal draufdrücke er nochmal 20 abzieht?
Der Code sieht so aus:
Code:
#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 625, 443, 261, 153)
GUISetBkColor(0xFF0000)
$Pic1 = GUICtrlCreatePic("untitled.bmp", 88, 24, 129, 121)
$Pic2 = GUICtrlCreatePic("untitled2.bmp", 360, 32, 129, 113)
$Label1 = GUICtrlCreateLabel("Son Goku (DBZ)", 96, 160, 83, 17)
$Label2 = GUICtrlCreateLabel("vs", 280, 160, 15, 17)
$Label3 = GUICtrlCreateLabel("Yugi Muto (Yu-gi-oh)", 368, 160, 100, 17)
$Progress1 = GUICtrlCreateProgress(80, 192, 145, 17)
GUICtrlSetData (-1,100)
$Progress2 = GUICtrlCreateProgress(352, 192, 145, 17)
GUICtrlSetData (-1,100)
$Button1 = GUICtrlCreateButton("Angriff", 80, 232, 145, 25, 0)
$Button2 = GUICtrlCreateButton("Angriff", 352, 232, 153, 25, 0)
$Button3 = GUICtrlCreateButton("Kame-Hame-Ha", 80, 264, 145, 25, 0)
$Button4 = GUICtrlCreateButton("Verteidigen", 80, 296, 145, 25, 0)
$Button5 = GUICtrlCreateButton("Black Magican holen", 352, 264, 153, 25, 0)
$Button6 = GUICtrlCreateButton("Verteidigen", 352, 296, 153, 25, 0)
$Button7 = GUICtrlCreateButton("Beenden", 232, 360, 121, 33, 0)
$Button8 = GUICtrlCreateButton("Mehr Anime Kaempfe", 232, 400, 121, 33, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$msg=GuiGetMsg()
If $msg=$Button1 then b1()
If $msg=$Button2 then b2()
If $msg=$Button3 then b3()
If $msg=$Button4 then b4()
If $msg=$Button5 then b5()
If $msg=$Button6 then b6()
If $msg=$Button7 then b7()
If $msg=$Button8 then b8()
WEnd
Func b1()
EndFunc
Func b2()
EndFunc
Func b3()
EndFunc
Func b4()
EndFunc
Func b5()
EndFunc
Func b6()
EndFunc
Func b7()
Exit
EndFunc
Func b8()
Exit
EndFunc