Hallo!
Ich bräuchte etwas hilfe bei einem Script.
Es soll anhand einer Eingabe ( VK ), die Mwst., Netto VK, Händler EK errechnet werden. Ich hab per Koda, mal ein kleineres Design erstellt. Wobei später nur der VK Editierbar seien soll.
Per Excel ist das alles kein Problem nur per Autoit mach ich es mir etwas zu schwer.
Hier noch mal die Formeln:
z.b.
5,90€ ist VK /119*19 = Mwst 19% = in dem Fall 0,94€
5,90€ - Mwst. 19% (0,94€) = Netto VK = Hier 4,96€
Netto VK (4,96€) /115*100 = Händler EK = 4,31€
Vielleicht könnte mir jemand Helfen das umzusetzen, tue mich etwas schwer damit.
[autoit]#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 507, 99, 382, 564)
$Vk_eingabe_label = GUICtrlCreateLabel("VK ", 40, 16, 27, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$Vk_eintrag = GUICtrlCreateInput("Vk_eintrag", 16, 40, 81, 21)
$Label1 = GUICtrlCreateLabel("Mwst. (19%)", 128, 16, 85, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$Input1 = GUICtrlCreateInput("Input1", 128, 40, 89, 21)
$Label2 = GUICtrlCreateLabel("Netto VK", 256, 16, 64, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$Input2 = GUICtrlCreateInput("Input2", 256, 40, 81, 21)
$Label3 = GUICtrlCreateLabel("Händel EK", 368, 16, 77, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$Input3 = GUICtrlCreateInput("Input3", 368, 40, 81, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Vielen Dank!!!