j'ai fait différents tests pour voir comment autoit gérait cela et constatation, les résultats sont catastrophiques. Il est possible que mon code soit pas du tout optimisé alors je suis dans l'attente de conseils
premier test écriture à la ligne (boucle)
Résultat dépasse pas le cap des 260 (l'arrêt est variable, pas toujours le meme nombre)
Code : Tout sélectionner
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("Form2", 378, 494, 193, 123)
$Edit1 = GUICtrlCreateEdit("", 24, 40, 329, 433)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
AdlibEnable("stop")
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
for $i=0 to 280000
GUICtrlSetData($Edit1, $i & @CRLF,1)
Next
WEnd
Func stop()
while 1
$nMsg = GUIGetMsg()
if $nMsg = $GUI_EVENT_CLOSE then
Exit
EndIf
Wend
EndFunc
résultat : On atteint jamais les 1000 et l'arrêt est variable (jamais au même nombre)
Code : Tout sélectionner
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("Form2", 378, 494, 193, 123)
$Edit1 = GUICtrlCreateEdit("", 24, 40, 329, 433)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
AdlibEnable("stop")
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
for $i=0 to 280000
GUICtrlSetData($Edit1, $i)
Next
WEnd
Func stop()
while 1
$nMsg = GUIGetMsg()
if $nMsg = $GUI_EVENT_CLOSE then
Exit
EndIf
Wend
EndFunc



