Hi,
habe nen prob mit meinem dicken fetten script, wie ich finde.
Kurze erklärung was der teil machen soll der nicht geht:
Ich habe eine GUI in der ist ein GUICtrlCreateInput da soll z.B. ein name rein.
[autoit]$Group3 = GUICtrlCreateGroup("Send Kiss", 8, 816, 297, 113)
$Label36 = GUICtrlCreateLabel("U would kiss someone?", 72, 840, 167, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$Label37 = GUICtrlCreateLabel("Kiss:", 32, 888, 32, 20)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$Label38 = GUICtrlCreateLabel("In the free field u put in a name of a player.", 56, 864, 205, 17)
$name = GUICtrlCreateInput("", 64, 886, 193, 21)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
In $name = GUICtrlCreateInput("", 64, 886, 193, 21) kommt dann der name rein.
Und wenn ich dann den hotkey drücke soll das passieren
[autoit]Func _kiss()
WinActivate("Dekaron", "")
WinWaitActive("Dekaron")
Opt("SendKeyDelay", 0)
Send ("{ENTER}Kiss " & $Kiss & ":-x")
EndFunc
Nur leider kommt immer diese Fehler meldung
H:\Games\2Moons Tools\MultiAccount using\Start.au3(164,31) : WARNING: $Kiss: possibly used before declaration.
Send ("{ENTER}Kiss " & $Kiss &
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
H:\Games\2Moons Tools\MultiAccount using\Start.au3(164,31) : ERROR: $Kiss: undeclared global variable.
Send ("{ENTER}Kiss " & $Kiss &
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
H:\Games\2Moons Tools\MultiAccount using\Start.au3 - 1 error(s), 1 warning(s)
Hat vllt einer eine idee wie ich es umsetzen kann, dass es im spiel enter drückt dann aus der GUI den namen vom user und nen bisl text schreibt.