Witajcie.
Siedzę już trochę nad tym programem, ale niestety napotkałem problem z odczytaniem liczby.
Zamieszczam ponieżej kod:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
HotKeySet("{END}", "stop")
$FishBot = GUICreate("Program", 264, 245, 192, 124)
GUISetFont(9, 400, 0, "Georgia")
$Label1 = GUICtrlCreateLabel("By Ertam", 0, 224, 260, 18, 0)
GUICtrlSetFont(-1, 8, 400, 0, "Georgia")
$liczba = GUICtrlCreateLabel("Liczba:", 0, 40, 40, 22, 0)
GUICtrlSetFont(-1, 11, 400, 0, "Georgia")
$Input1 = GUICtrlCreateInput("", 40, 40, 65, 23, $GUI_SS_DEFAULT_INPUT)
$Label3 = GUICtrlCreateLabel("Klawisz:", 0, 88, 68, 22, 0)
GUICtrlSetFont(-1, 11, 400, 0, "Georgia")
$klawisz = GUICtrlCreateInput("1", 72, 88, 65, 23, $GUI_SS_DEFAULT_INPUT)
$Start = GUICtrlCreateButton("Start", 152, 176, 89, 33, $BS_NOTIFY)
$Button2 = GUICtrlCreateButton("Zamknij", 0, 176, 97, 33, $BS_NOTIFY)
GUISetState(@SW_SHOW)
$send1=GUICtrlRead($cyfra)
$send2=GUICtrlRead($klawisz)
MsgBox(0,"Test", $cyfra)
MsgBox(0,"Test", $klawisz)
Kod błędnie odczytuje liczbę i klawisz
$liczba = GUICtrlCreateLabel("Liczba:", 0,40, 40, 22, 0)
Zamiast odczytac liczbe np 1, to odczytuje 4
_____________________________________________________________
$klawisz = GUICtrlCreateInput("1", 72, 88, 65, 23, $GUI_SS_DEFAULT_INPUT)
Zamiast odczytac klawisz e , to odczytuje 7