hey..
hatte schon lange nichtmehr mit der gui gearbeitet und bin jetzt eher auf tcp ausgelegt
kann mir jemand sagen wieso das nicht so will wie ich es will?^^
soll ganz einfach ablaufen.
in die 3 inputs werden werte eingetragen
dann soll der wert Label1 mit dem Label2 + genommen werden. Das genauso bei dem anderen.
Diese werte sollen ausgerechnet werden und dann in die liste eingetragen werden.
Vorher hatte ich es so:
[autoit]
$a = InputBox("Angriff","Wieviel Angriff haben sie mit ihrer Waffe?")
$b = InputBox("Angriff","Wieviel ohne Waffe?")
$a1 = int($a*0.3)
$a2 = int($a*0.6)
$a3 = int($a*0.9)
$a4 = int($a*1.2)
$a5 = int($a*1.5)
$a6 = int($a*1.8)
$a7 = int($a*2.1)
$b1 = int($b*0.3)
$b2 = int($b*0.6)
$b3 = int($b*0.9)
$b4 = int($b*1.2)
$b5 = int($b*1.5)
$b6 = int($b*1.8)
$b7 = int($b*2.1)
ToolTip("Bei 1 Person: "&$a1& " "&$b1&" schaden "&@CRLF& "Bei 2 Personen:"&$a2& " "&$b2&" schaden"&@CRLF& "Bei 3 Personen:"&$a3& " "&$b3&" schaden"&@CRLF& "Bei 4 Personen:"&$a4& " "&$b4&" schaden"&@CRLF& "Bei 5 Personen:"&$a5& " "&$b5&" schaden"&@CRLF& "Bei 6 Personen:"&$a6& " "&$b6&" schaden"&@CRLF&"Bei 7 Personen:"&$a7& " "&$b7&" schaden"&@CRLF,10,100)
While 1
Sleep(100)
Wend
und hier mein aktuelles fehlerscript^^
[autoit]
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 339, 249, 193, 113)
GUICtrlCreateInput("", 8, 8, 33, 21)
GUICtrlCreateInput("", 8, 38, 33, 21)
GUICtrlCreateInput("", 8, 68, 33, 21)
$Label1 = GUICtrlCreateLabel("Raumjäger", 48, 8, 80, 40)
$Label2 = GUICtrlCreateLabel("Angriff mit Waffe", 48, 38, 80, 40)
$Label3 = GUICtrlCreateLabel("Angriff ohne Waffe", 48, 68, 100, 40)
$Button1 = GUICtrlCreateButton("Button1", 8, 100, 75, 25)
$List1 = GUICtrlCreateList("", 168, 8, 161, 123)
$Pic1 = GUICtrlCreatePic("C:\Users\Dennis\Desktop\darkfleet.jpg", 8, 152, 324, 84)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
GUICtrlSetData ($List1,"")
$a = GuiCtrlRead($Label1)
$ax = GuiCtrlRead($Label2)
$b = GuiCtrlRead($Label3)
$a = $a+$ax
$a1 = int($a*0.3)
$a2 = int($a*0.6)
$a3 = int($a*0.9)
$a4 = int($a*1.2)
$a5 = int($a*1.5)
$a6 = int($a*1.8)
$a7 = int($a*2.1)
$b1 = int($b*0.3)
$b2 = int($b*0.6)
$b3 = int($b*0.9)
$b4 = int($b*1.2)
$b5 = int($b*1.5)
$b6 = int($b*1.8)
$b7 = int($b*2.1)
GUICtrlSetData ($List1,"1Person: "&$a1&" "&$b1&@CRLF&"2Personen: "&$a2&" "&$b2&@CRLF&"3Personen: "&$a3&" "&$b3&@CRLF&"4Personen: "&$a4&" "&$b4&@CRLF&"5Personen: "&$a5&" "&$b5&@CRLF&"6Personen: "&$a6&" "&$b6&@CRLF&"7Personen: "&$a7&" "&$b7&@CRLF)
EndSwitch
WEnd