Hey E*pvpers
Hab grad versucht einen kleinen Bot für Flyff zu machen, der F1-F12 in bestimmten Interwallen senden sollte.
Mit F1 klappt das auch auch alles, doch sobald ich etwas andres als F1 senden will, passiert einfach nichts.
Ich poste mal ein paar Zeilen, vllt seht ihr den Fehler
Freu mich über jede Hilfe.
Lg
Niklas
Hab grad versucht einen kleinen Bot für Flyff zu machen, der F1-F12 in bestimmten Interwallen senden sollte.
Mit F1 klappt das auch auch alles, doch sobald ich etwas andres als F1 senden will, passiert einfach nichts.
Ich poste mal ein paar Zeilen, vllt seht ihr den Fehler
PHP Code:
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 625, 426, 192, 124)
$Button1 = GUICtrlCreateButton("Button2", 488, 88, 129, 41, 0)
$Button2 = GUICtrlCreateButton("Button1", 488, 32, 129, 41, 0)
$Button3 = GUICtrlCreateButton("Button3", 488, 200, 129, 41, 0)
$Button4 = GUICtrlCreateButton("Button4", 488, 144, 129, 41, 0)
$Button5 = GUICtrlCreateButton("Button5", 488, 256, 129, 41, 0)
$Combo1 = GUICtrlCreateCombo("Combo1", 64, 40, 257, 25)
GUICtrlSetData(-1, "F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Combo2 = GUICtrlCreateCombo("Combo2", 64, 96, 257, 25)
GUICtrlSetData(-1, "F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Combo3 = GUICtrlCreateCombo("Combo1", 64, 152, 257, 25)
GUICtrlSetData(-1, "F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Combo4 = GUICtrlCreateCombo("Combo1", 64, 208, 257, 25)
GUICtrlSetData(-1, "F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Combo5 = GUICtrlCreateCombo("Combo1", 64, 264, 257, 25)
GUICtrlSetData(-1, "F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Group1 = GUICtrlCreateGroup("Taste", 16, 16, 385, 305)
$Group3 = GUICtrlCreateGroup("Interwall", 400, 24, 1, 297)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group2 = GUICtrlCreateGroup("Start", 472, 16, 153, 305)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Input1 = GUICtrlCreateInput("Input1", 408, 96, 57, 21)
$Input2 = GUICtrlCreateInput("Input1", 408, 264, 57, 21)
$Input3 = GUICtrlCreateInput("Input1", 408, 152, 57, 21)
$Input4 = GUICtrlCreateInput("Input1", 408, 208, 57, 21)
$Input5 = GUICtrlCreateInput("Input1", 408, 48, 57, 21)
$Group4 = GUICtrlCreateGroup("Interwall", 400, 16, 73, 305)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button2
While 1=1
If GUICtrlRead($Combo1) = "F1" Then ControlSend("FLYFF", "", "", "{F1}")
Sleep (GUICtrlRead($Input1))
WEnd
Case $Button2
While 1=1
If GUICtrlRead($Combo1) = "F2" Then ControlSend("FLYFF", "", "", "{F2}")
Sleep (GUICtrlRead($Input1))
WEnd
EndSwitch
WEnd
Lg
Niklas