Nabend,
ich möchte das nachdem mein Text abgesendet wurde, das Script im Editfeld eine Zeile runterspringt. Aber iwie möchte er nicht..
führt das Script am Besten aus, dann wisst ihr was ich meine
[autoit]#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <TreeViewConstants.au3>
#include <StaticConstants.au3>
#include <misc.au3>
$dll = DllOpen("user32.dll")
global $User = "Kev"
GUICreate("Chatomatic",600,300)
GUICtrlCreateListView("Angemeldete User",475,0,130,300)
$chatbox = GuictrlcreateEdit("",0,0,475,250)
$inhalt = GuictrlcreateInput("",10,260,350,25)
$send = GuictrlcreateButton("Senden",370,260,100,25)
GUISetState(@SW_SHOW)
While 1
$msg = GUIGetMsg()
switch $msg
case $send
sende()
Endswitch
If _IsPressed("0D", $dll) Then
sende()
EndIf
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
DllClose($dll)
func sende()
Guictrlsetdata($chatbox,$User & ": " & Guictrlread($inhalt) & @crlf)
sleep(150) ;timeout da sonst leere übergabe
Guictrlsetdata($inhalt,"")
Endfunc