hi,
ich hab mir grad die neue autoit version geladen und jetzt funktioniert mein beispielscript nicht mehr, das aber vorher gelaufen ist....
Spoiler anzeigen
#include <GUIConstants.au3>
#include <GuiEdit.au3>
opt('MustDeclareVars', 1)
[/autoit] [autoit][/autoit] [autoit]Dim $myedit, $Status, $msg, $Btn_GET
Dim $s_text = "AutoIt v3 is a freeware BASIC-like scripting language" & @CRLF & _
"designed for automating the Windows GUI." & @CRLF & _
"It uses a combination of simulated keystrokes," & @CRLF & _
"mouse movement and window/control manipulation" & @CRLF & _
"in order to automate tasks in a way not possible" & @CRLF & _
"or reliable with other languages (e.g. VBScript and SendKeys)."
GUICreate("Edit Get Line", 392, 254)
[/autoit] [autoit][/autoit] [autoit]$myedit = GUICtrlCreateEdit($s_text, 140, 32, 121, 97, BitOR($ES_AUTOVSCROLL, $ES_AUTOHSCROLL, $WS_VSCROLL, $WS_HSCROLL, $ES_MULTILINE))
GUICtrlSetLimit($myedit, 1500)
$Status = GUICtrlCreateLabel("", 0, 234, 392, 20, BitOR($SS_SUNKEN, $SS_CENTER))
$Btn_GET = GUICtrlCreateButton("Get Line 2", 150, 130, 90, 40, $BS_MULTILINE)
GUISetState()
[/autoit] [autoit][/autoit] [autoit]; Run the GUI until the dialog is closed
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $Btn_GET
Local $line = _GUICtrlEditGetLine($myedit, 2)
If @error == $EC_ERR Then
GUICtrlSetData($Status, "Line: Invalid")
Else
GUICtrlSetData($Status, "Line: " & $line)
EndIf
EndSelect
WEnd
GUIDelete()
Ich bekomme jetzt diese schöne fehlermeldung:
Spoiler anzeigen
D:\Dokumente und Einstellungen\Danny\Desktop\test2.au3(33,57) : ERROR: _GUICtrlEditGetLine(): undefined function.
Local $line = _GUICtrlEditGetLine($myedit, 2)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Dokumente und Einstellungen\Danny\Desktop\test2.au3 - 1 error(s), 0 warning(s)
Ich hoffe dass das bei meinen anderen scripten nicht auch so ist
....kleine kritik am rande
gruß