Kleines Problem

10/08/2010 20:35 Belur#1
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

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"625426192124)
$Button1 GUICtrlCreateButton("Button2"48888129410)
$Button2 GUICtrlCreateButton("Button1"48832129410)
$Button3 GUICtrlCreateButton("Button3"488200129410)
$Button4 GUICtrlCreateButton("Button4"488144129410)
$Button5 GUICtrlCreateButton("Button5"488256129410)
$Combo1 GUICtrlCreateCombo("Combo1"644025725)
GUICtrlSetData(-1"F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Combo2 GUICtrlCreateCombo("Combo2"649625725)
GUICtrlSetData(-1"F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Combo3 GUICtrlCreateCombo("Combo1"6415225725)
GUICtrlSetData(-1"F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Combo4 GUICtrlCreateCombo("Combo1"6420825725)
GUICtrlSetData(-1"F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Combo5 GUICtrlCreateCombo("Combo1"6426425725)
GUICtrlSetData(-1"F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Group1 GUICtrlCreateGroup("Taste"1616385305)
$Group3 GUICtrlCreateGroup("Interwall"400241297)
GUICtrlCreateGroup("", -99, -9911)
GUICtrlCreateGroup("", -99, -9911)
$Group2 GUICtrlCreateGroup("Start"47216153305)
GUICtrlCreateGroup("", -99, -9911)
$Input1 GUICtrlCreateInput("Input1"408965721)
$Input2 GUICtrlCreateInput("Input1"4082645721)
$Input3 GUICtrlCreateInput("Input1"4081525721)
$Input4 GUICtrlCreateInput("Input1"4082085721)
$Input5 GUICtrlCreateInput("Input1"408485721)
$Group4 GUICtrlCreateGroup("Interwall"4001673305)
GUICtrlCreateGroup("", -99, -9911)
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 
Freu mich über jede Hilfe.

Lg

Niklas
10/08/2010 22:26 maxi39#2
so hab erstmal dein script in ordnung gebracht, ich sag dir gleich ne lösung


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"625426192124)

$Button1 GUICtrlCreateButton("1"48832129410)
$Button2 GUICtrlCreateButton("2"48888129410)

$Button3 GUICtrlCreateButton("3"488144129410)
$Button4 GUICtrlCreateButton("4"488200129410)
$Button5 GUICtrlCreateButton("5"488256129410)


$Combo1 GUICtrlCreateCombo("Combo1"644025725)
GUICtrlSetData(-1"F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Combo2 GUICtrlCreateCombo("Combo2"649625725)
GUICtrlSetData(-1"F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Combo3 GUICtrlCreateCombo("Combo1"6415225725)
GUICtrlSetData(-1"F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Combo4 GUICtrlCreateCombo("Combo1"6420825725)
GUICtrlSetData(-1"F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Combo5 GUICtrlCreateCombo("Combo1"6426425725)
GUICtrlSetData(-1"F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Group1 GUICtrlCreateGroup("Taste"1616385305)
$Group3 GUICtrlCreateGroup("Interwall"400241297)
GUICtrlCreateGroup("", -99, -9911)
GUICtrlCreateGroup("", -99, -9911)
$Group2 GUICtrlCreateGroup("Start"47216153305)

$Input1 GUICtrlCreateInput("1"408485721)
GUICtrlCreateGroup("", -99, -9911)
$Input2 GUICtrlCreateInput("2"408965721)
$Input3 GUICtrlCreateInput("3"4081525721)
$Input4 GUICtrlCreateInput("4"4082085721)
$Input5 GUICtrlCreateInput("5"4082645721)


$Group4 GUICtrlCreateGroup("Interwall"4001673305)
GUICtrlCreateGroup("", -99, -9911)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

        Case 
$Button1
            _send
()



    EndSwitch

WEnd


Func _send
()



    While 
1
         
If GUICtrlRead($Combo1) = "F1" Then ControlSend("FLYFF""""""{F1}")
        
Sleep(GUICtrlRead($Input1))


    
WEnd



EndFunc   
;==>_send 

Spontan würd ich deinen script so schreiben:


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"625426192124)

$Button1 GUICtrlCreateButton("1"48832129410)
$Button2 GUICtrlCreateButton("2"48888129410)

$Button3 GUICtrlCreateButton("3"488144129410)
$Button4 GUICtrlCreateButton("4"488200129410)
$Button5 GUICtrlCreateButton("5"488256129410)


Global 
$Combo1 GUICtrlCreateCombo("Combo1"644025725)
GUICtrlSetData(-1"F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Combo2 GUICtrlCreateCombo("Combo2"649625725)
GUICtrlSetData(-1"F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Combo3 GUICtrlCreateCombo("Combo1"6415225725)
GUICtrlSetData(-1"F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Combo4 GUICtrlCreateCombo("Combo1"6420825725)
GUICtrlSetData(-1"F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Combo5 GUICtrlCreateCombo("Combo1"6426425725)
GUICtrlSetData(-1"F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Group1 GUICtrlCreateGroup("Taste"1616385305)
$Group3 GUICtrlCreateGroup("Interwall"400241297)
GUICtrlCreateGroup("", -99, -9911)
GUICtrlCreateGroup("", -99, -9911)
$Group2 GUICtrlCreateGroup("Start"47216153305)

$Input1 GUICtrlCreateInput("1"408485721)
GUICtrlCreateGroup("", -99, -9911)
$Input2 GUICtrlCreateInput("2"408965721)
$Input3 GUICtrlCreateInput("3"4081525721)
$Input4 GUICtrlCreateInput("4"4082085721)
$Input5 GUICtrlCreateInput("5"4082645721)


$Group4 GUICtrlCreateGroup("Interwall"4001673305)
GUICtrlCreateGroup("", -99, -9911)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

        Case 
$Button1
            _send
()



    EndSwitch

WEnd


Func _send
()

$
1=GUICtrlRead($Combo1)

    While 
1
         ControlSend
("FLYFF""""""{"&$1&"}")
        
Sleep(GUICtrlRead($Input1))
if 
GUICtrlRead($Combo1) <> "F1" then ExitLoop

    WEnd



EndFunc   
;==>_send 

hiermiet kommste ganz sauber aus der schleife raus wenn du die hotkeys änderst

Code:
Func _send()

$1=GUICtrlRead($Combo1)

    [B]While 1[/B]
         ControlSend("FLYFF", "", "", "{"&$1&"}")
        Sleep(GUICtrlRead($Input1))
[B]if GUICtrlRead($Combo1) <> "F1" then ExitLoop[/B]

   [B] WEnd[/B]



EndFunc   ;==>_send
aus der while schleife versteht sich
10/08/2010 22:32 dacx#3
Kannst du mir bitte verraten, wo der Fehler war?
10/08/2010 22:36 maxi39#4
Quote:
Originally Posted by 4LPH4! View Post
Kannst du mir bitte verraten, wo der Fehler war?
guck dir doch erstma die Variabeln an:

bsp:

PHP Code:
$Input1 GUICtrlCreateInput("Input1"408965721
PHP Code:
$Button1 GUICtrlCreateButton("Button2"48888129410

PHP Code:
Case $Button2
            
While 1=1
            
If GUICtrlRead($Combo1) = "F1" Then ControlSend("FLYFF""""""{F1}")
            
Sleep (GUICtrlRead($Input1)) 
10/08/2010 22:46 maxi39#5
ich habe ma dein script vollendet:

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"625426192124)

$Button1 GUICtrlCreateButton("1"48832129410)
$Button2 GUICtrlCreateButton("2"48888129410)

$Button3 GUICtrlCreateButton("3"488144129410)
$Button4 GUICtrlCreateButton("4"488200129410)
$Button5 GUICtrlCreateButton("5"488256129410)


Global 
$Combo1 GUICtrlCreateCombo("Combo1"644025725)
GUICtrlSetData(-1"F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Combo2 GUICtrlCreateCombo("Combo2"649625725)
GUICtrlSetData(-1"F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Combo3 GUICtrlCreateCombo("Combo1"6415225725)
GUICtrlSetData(-1"F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Combo4 GUICtrlCreateCombo("Combo1"6420825725)
GUICtrlSetData(-1"F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Combo5 GUICtrlCreateCombo("Combo1"6426425725)
GUICtrlSetData(-1"F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Group1 GUICtrlCreateGroup("Taste"1616385305)
$Group3 GUICtrlCreateGroup("Interwall"400241297)
GUICtrlCreateGroup("", -99, -9911)
GUICtrlCreateGroup("", -99, -9911)
$Group2 GUICtrlCreateGroup("Start"47216153305)

$Input1 GUICtrlCreateInput("1"408485721)
GUICtrlCreateGroup("", -99, -9911)
$Input2 GUICtrlCreateInput("2"408965721)
$Input3 GUICtrlCreateInput("3"4081525721)
$Input4 GUICtrlCreateInput("4"4082085721)
$Input5 GUICtrlCreateInput("5"4082645721)


$Group4 GUICtrlCreateGroup("Interwall"4001673305)
GUICtrlCreateGroup("", -99, -9911)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

        Case 
$Button1
        _send1
()
        case 
$Button2
        _send2
()
        Case 
$Button3
        _send3
()
        case 
$Button4
        _send4
()
        case 
$Button5
        _send5
()


    EndSwitch

WEnd


Func _send1
()

$
1=GUICtrlRead($Combo1)

    While 
1
         MsgBox
(0,"","")
        
Sleep(GUICtrlRead($Input1))
if 
GUICtrlRead($Combo1) <> "F1" then ExitLoop

    WEnd

Return

EndFunc   ;==>_send





Func _send2
()

$
1=GUICtrlRead($Combo2)

    While 
1
         MsgBox
(0,"","")
        
Sleep(GUICtrlRead($Input2))
if 
GUICtrlRead($Combo2) <> "F1" then ExitLoop

    WEnd



EndFunc   
;==>_send

Func _send3
()

$
1=GUICtrlRead($Combo3)

    While 
1
         MsgBox
(0,"","")
        
Sleep(GUICtrlRead($Input3))
if 
GUICtrlRead($Combo3) <> "F1" then ExitLoop

    WEnd



EndFunc   
;==>_send

Func _send4
()

$
1=GUICtrlRead($Combo4)

    While 
1
         MsgBox
(0,"","")
        
Sleep(GUICtrlRead($Input4))
if 
GUICtrlRead($Combo4) <> "F1" then ExitLoop

    WEnd



EndFunc   
;==>_send

Func _send5
()

$
1=GUICtrlRead($Combo5)

    While 
1
         MsgBox
(0,"","")
        
Sleep(GUICtrlRead($Input5))
if 
GUICtrlRead($Combo5) <> "F1" then ExitLoop

    WEnd



EndFunc   
;==>_send 

jetzt stellt sich nur noch die frage: willst du das alle funktionen gleichzeitig laufen???
10/08/2010 22:47 Belur#6
Danke erstmal. Ich versteh nur nicht so ganz, was an meinem falsch war, da F1 ja gesendet wird.

Wenn ich aber F1 ersetze passiert nichts mehr :<
10/08/2010 22:52 maxi39#7
Quote:
Originally Posted by Belur View Post
Danke erstmal. Ich versteh nur nicht so ganz, was an meinem falsch war, da F1 ja gesendet wird.

Wenn ich aber F1 ersetze passiert nichts mehr :<
du hattes ja ne While schliefe

Quote:
While 1=1
If GUICtrlRead($Combo1) = "F1" Then ControlSend("FLYFF", "", "", "{F1}")
Sleep (GUICtrlRead($Input1))
WEnd
d.h das das script nur die ganze zeit nur f1 drückt,wenn du jetzt die taste änderst bemerkt das das script nicht sozusagen, da du nicht reingeschireben hast, was passieren soll wenn du was änderst am gui

das wäre das hier z.b damit das script merkt das du was ändern willst :
Quote:
if GUICtrlRead($Combo1) <> "F1" then ExitLoop
Mit worten : WEnn die combobox nicht mehr die variable F1 besitzt, soll die While schliefe mit Exitloop verlassen werden
10/08/2010 23:03 Belur#8
Ahh Verstehe. Danke dir.

Nur wo soll das Return hin?
10/08/2010 23:14 maxi39#9
Quote:
Originally Posted by Belur View Post
Ahh Verstehe. Danke dir.

Nur wo soll das Return hin?
du hast den befehl zu funktion _send1 gegeben nach dem du auf button 1 gedrückt hast:

PHP Code:
 Case $Button1
        _send1
() 
die funktion steht irgen wo unter deinem gui:

Code:
Func _send1()

$1=GUICtrlRead($Combo1)

    While 1
         MsgBox(0,"","")
        Sleep(GUICtrlRead($Input1))
if GUICtrlRead($Combo1) <> "F1" then ExitLoop

    WEnd

[COLOR="Red"]Return[/COLOR]

EndFunc   ;==>_send
und das return muss natürlich immer unter die while schleife, da du mit ExitLoop
aus der schleife raus gehst und mit return die funktion beendest

du muss dir das vorstellen wie eine machschine die alles schritt für schritt abarbeitet

wenn du dir den post genauer angesehen hättes , dann hättes du es wahrscheinlich gemerkt:

Quote:
Originally Posted by maxi39 View Post
ich habe ma dein script vollendet:

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"625426192124)

$Button1 GUICtrlCreateButton("1"48832129410)
$Button2 GUICtrlCreateButton("2"48888129410)

$Button3 GUICtrlCreateButton("3"488144129410)
$Button4 GUICtrlCreateButton("4"488200129410)
$Button5 GUICtrlCreateButton("5"488256129410)


Global 
$Combo1 GUICtrlCreateCombo("Combo1"644025725)
GUICtrlSetData(-1"F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Combo2 GUICtrlCreateCombo("Combo2"649625725)
GUICtrlSetData(-1"F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Combo3 GUICtrlCreateCombo("Combo1"6415225725)
GUICtrlSetData(-1"F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Combo4 GUICtrlCreateCombo("Combo1"6420825725)
GUICtrlSetData(-1"F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Combo5 GUICtrlCreateCombo("Combo1"6426425725)
GUICtrlSetData(-1"F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
$Group1 GUICtrlCreateGroup("Taste"1616385305)
$Group3 GUICtrlCreateGroup("Interwall"400241297)
GUICtrlCreateGroup("", -99, -9911)
GUICtrlCreateGroup("", -99, -9911)
$Group2 GUICtrlCreateGroup("Start"47216153305)

$Input1 GUICtrlCreateInput("1"408485721)
GUICtrlCreateGroup("", -99, -9911)
$Input2 GUICtrlCreateInput("2"408965721)
$Input3 GUICtrlCreateInput("3"4081525721)
$Input4 GUICtrlCreateInput("4"4082085721)
$Input5 GUICtrlCreateInput("5"4082645721)


$Group4 GUICtrlCreateGroup("Interwall"4001673305)
GUICtrlCreateGroup("", -99, -9911)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

        Case 
$Button1
        _send1
()
        case 
$Button2
        _send2
()
        Case 
$Button3
        _send3
()
        case 
$Button4
        _send4
()
        case 
$Button5
        _send5
()


    EndSwitch

WEnd


Func _send1
()

$
1=GUICtrlRead($Combo1)

    While 
1
         MsgBox
(0,"","")
        
Sleep(GUICtrlRead($Input1))
if 
GUICtrlRead($Combo1) <> "F1" then ExitLoop

    WEnd



EndFunc   
;==>_send





Func _send2
()

$
1=GUICtrlRead($Combo2)

    While 
1
         MsgBox
(0,"","")
        
Sleep(GUICtrlRead($Input2))
if 
GUICtrlRead($Combo2) <> "F1" then ExitLoop

    WEnd



EndFunc   
;==>_send

Func _send3
()

$
1=GUICtrlRead($Combo3)

    While 
1
         MsgBox
(0,"","")
        
Sleep(GUICtrlRead($Input3))
if 
GUICtrlRead($Combo3) <> "F1" then ExitLoop

    WEnd



EndFunc   
;==>_send

Func _send4
()

$
1=GUICtrlRead($Combo4)

    While 
1
         MsgBox
(0,"","")
        
Sleep(GUICtrlRead($Input4))
if 
GUICtrlRead($Combo4) <> "F1" then ExitLoop

    WEnd



EndFunc   
;==>_send

Func _send5
()

$
1=GUICtrlRead($Combo5)

    While 
1
         MsgBox
(0,"","")
        
Sleep(GUICtrlRead($Input5))
if 
GUICtrlRead($Combo5) <> "F1" then ExitLoop

    WEnd



EndFunc   
;==>_send 

jetzt stellt sich nur noch die frage: willst du das alle funktionen gleichzeitig laufen???
10/08/2010 23:20 Belur#10
:D Stehe ganz am Anfang in AutoIt. Bin im Moment der totale Noob :>

Wollte das mal zum üben machen. Sobald ich das erstmal hab, werd ich vllt mal versuchen Start / Stop einzubauen ;) In den Ferien bisschen dahinterklemmen besser mit AutoIt klarzukommen.
10/08/2010 23:24 maxi39#11
Quote:
Originally Posted by Belur View Post
:D Stehe ganz am Anfang in AutoIt. Bin im Moment der totale Noob :>

Wollte das mal zum üben machen. Sobald ich das erstmal hab, werd ich vllt mal versuchen Start / Stop einzubauen ;) In den Ferien bisschen dahinterklemmen besser mit AutoIt klarzukommen.
start + stop kennste ja jetzt :)
Naja ich würd dir empfehlen ersteinmal die grund kenntnisse mit einen guten tutorial zu füllen
10/08/2010 23:33 PenGuin :O#12
Das Return wird am Funktionsende nicht benötigt, streich das mal raus.
Return ist nur zum Übergeben von Rückgabeparameter!
10/08/2010 23:39 maxi39#13
Quote:
Originally Posted by pinguin94 View Post
Das Return wird am Funktionsende nicht benötigt, streich das mal raus.
Return ist nur zum Übergeben von Rückgabeparameter!
ah ja stimmt, nachdem die while schleife beendet wird kommt ja nichts, also wird funktion von alleine beendet, hatte nen denkfehler^^
10/09/2010 00:26 lolkop#14
ähm immer wenn etwas mehrmals ähnlich gemacht wird, sollte man das ganze in einer schleife realisieren.

desweiteren wird in den hier geposteten wegen immer eine verkettung von endlosschleifen genutzt, was auf jeden fall verhindert werden sollte. Dazu kommt noch das auch jedes der geposteten beispiele mit sleep arbeitet, wodurch immer der rest vom script blockiert wird.

hier mal der code wie ich ihn aufbauen würde (mal abgesehn vom gui, welches vom ersten post übernommen wurde):
Code:
Dim $btn[5], $combo[5], $input[5], $timer[5], $go[5], $name[2] = ['Stop', 'Start']
GUICreate("gui", 625, 426)
For $i=0 To 4
	$go[$i] = False
	$btn[$i] = GUICtrlCreateButton('Start', 488, 32+56*$i, 129, 41)
	$combo[$i] = GUICtrlCreateCombo("F1", 64, 40+56*$i, 257, 25)
	GUICtrlSetData(-1, "F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12")
	$input[$i] = GUICtrlCreateInput(1000, 408, 48+56*$i, 57, 21)
Next
GUICtrlCreateGroup("Taste", 16, 16, 385, 305)
GUICtrlCreateGroup("Start/Stop", 472, 16, 153, 305)
GUICtrlCreateGroup("Intervall", 400, 16, 73, 305)
GUISetState(@SW_SHOW)

While 1
	$msg = GUIGetMsg()
	If $msg=-3 Then Exit
	For $i=0 To 4
		If $msg=$btn[$i] Then
			GUICtrlSetData($btn[$i], $name[$go[$i]])
			$go[$i] = Not $go[$i]
		EndIf
		If $go[$i] And TimerDiff($timer[$i]) > GUICtrlRead($input[$i]) Then
			ControlSend("FLYFF", "", "", '{'&GUICtrlRead($combo[$i])&'}')
			$timer[$i] = TimerInit()
		EndIf
	Next
WEnd
Edit:
hab mal der übersicht halber den buttontext jeweils auf Start bzw Stop geändert.
10/09/2010 01:19 Belur#15
Vllt blick ich den Code in einer Woche xD Ist noch viel Unbekanntes drin.