Guten Abend,
Ich habe momentan dieses Script:
Spoiler anzeigen
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <ListviewConstants.au3>
#include <GuiListView.au3>
Global $x=0
[/autoit] [autoit][/autoit] [autoit]#Region ### START Koda GUI section ### Form=
$Fenster = GUICreate("Server Manager", 810, 330, 275, 234)
$Input_Message = GUICtrlCreateInput("", 30, 55, 200, 20)
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, 0x716F64)
$Button_Send = GUICtrlCreateButton("Send", 250, 55, 40, 20)
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, 0x716F64)
$ListView_Online = GUICtrlCreateListView("Online Users", 32, 100, 90, 200)
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, 0x716F64)
$ListView_Banned = GUICtrlCreateListView("Banned Users", 132, 100, 90, 200)
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, 0x716F64)
$ListView_Verlauf = GUICtrlCreateListView("Von|An|Text", 250, 100, 520, 200)
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, 0x716F64)
GUICtrlCreatePic(@ScriptDir & "\vistatrends_wallpaper_avantzone.jpg", 0, 0, 812, 332, BitOR($SS_NOTIFY, $WS_GROUP, $WS_CLIPSIBLINGS))
GUICtrlCreateLabel("Verlauf", 450, 55, 100, 20, $SS_CENTER)
GUICtrlSetFont(-1, 14, 800, 0, "Arial")
GUICtrlSetColor(-1, 0x27A9FF)
GUICtrlSetBkColor(-1, $gui_bkcolor_transparent)
GUICtrlCreateLabel("AutoIt Server Management", 180, 16, 250, 26, $SS_CENTER)
GUICtrlSetFont(-1, 14, 800, 0, "Arial")
GUICtrlSetColor(-1, 0x27A9FF)
GUICtrlSetBkColor(-1, $gui_bkcolor_transparent)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
GUICtrlCreateListViewItem("Server|Alle|[12:04:34]Jetzt wird ein Packet vom Server an Alle Benutzer die Online sind gesendet",$ListView_Verlauf)
[/autoit] [autoit][/autoit] [autoit]Do
Sleep(10)
$x+=1
ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $x = ' & $x & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console
$msg = GUIGetMsg()
Until $msg == -3
Das Problem ist jetzt: Sobald ich in den "Header" des Fensters klicke oder auf die Scrollbar beim Listview des Verlaufs zählt die Variable $x nicht mehr weiter hoch bzw. die While- Schleife läuft nicht weiter
Hat jemand vielleicht eine Idee, wie ich diese Situation überbrücken kann, damit $x sich ständig hochzählt ?
Vielen Dank im Voraus
Lg, Fabian