Paulie Posted October 18, 2006 Share Posted October 18, 2006 (edited) Can someone tell me why I get an unterminated string error with this code? #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form=c:\documents and settings\administrator\desktop\toolbar.kxf $Toolbar = GUICreate("QuickRef Function Poster", 201, 801, 1047, 93, -1, BitOR($WS_EX_TOOLWINDOW,$WS_EX_TOPMOST)) GUISetBkColor(0x716F64) $List = GUICtrlCreateList("", 15, 120, 170, 538, BitOR($LBS_SORT,$LBS_STANDARD,$WS_VSCROLL,$WS_BORDER), $WS_EX_STATICEDGE) GUICtrlSetData(-1, "Abs|ACos|AdlibDisable|AdlibEnable|Asc|ASin|Assign|ATan|AutoItSetOption|AutoItWinGetTitle|AutoItWinSetTitle|Beep|BinaryString|BitAND|BitNOT|BitOR |BitRotate|BitShift |BitXOR|BlockInput|Break |Call|CDTray|Ceiling|Chr|ClipGet |ClipPut|ConsoleRead |ConsoleWrite|ConsoleWriteError |ControlClick |ControlCommand |ControlDisable |ControlEnable |ControlFocus |ControlGetFocus |ControlGetHandle |ControlGetPos |ControlGetText |ControlHide |ControlListView |ControlMove |ControlSend |ControlSetText |ControlShow |Cos |Dec |DirCopy |DirCreate|DirGetSize |DirMove |DirRemove |DllCall |DllClose |DllOpen |DllStructCreate |DllStructGetData|DllStructGetPtr|DllStructGetSize|DllStructSetData|DriveGetDrive|DriveGetFileSystem|DriveGetLabel|DriveGetSerial|DriveGetType|DriveMapAdd|DriveMapDel|DriveMapGet|DriveSetLabel|DriveSpaceFree|DriveSpaceTotal|DriveStatus|EnvGet |EnvSet |EnvUpdate |Eval |Execute |Exp |FileChangeDir |FileClose |FileCopy |FileCreateNTFSLink |FileCreateShortcut |FileDelete |FileExists |FileFindFirstFile |FileFindNextFile |FileGetAttrib |FileGetLongName |FileGetShortcut |FileGetShortName |FileGetSize |FileGetTime |FileGetVersion |FileInstall |FileMove |FileOpen |FileOpenDialog |FileRead |FileReadLine |FileRecycle |FileRecycleEmpty |FileSaveDialog |FileSelectFolder |FileSetAttrib |FileSetTime |FileWrite |FileWriteLine |Floor |FtpSetProxy |GUICreate |GUICtrlCreateAvi |GUICtrlCreateButton |GUICtrlCreateCheckbox |GUICtrlCreateCombo |GUICtrlCreateContextMenu |GUICtrlCreateDate |GUICtrlCreateDummy |GUICtrlCreateEdit |GUICtrlCreateGraphic |GUICtrlCreateGroup |GUICtrlCreateIcon |GUICtrlCreateInput |GUICtrlCreateLabel |GUICtrlCreateList |GUICtrlCreateListView|GUICtrlCreateListViewItem|GUICtrlCreateMenu|GUICtrlCreateMenuitem|GUICtrlCreateMonthCal"& _ "|GUICtrlCreateObj|GUICtrlCreatePic|GUICtrlCreateProgress|GUICtrlCreateRadio|GUICtrlCreateSlider|GUICtrlCreateTab|GUICtrlCreateTabItem|GUICtrlCreateTreeView|GUICtrlCreateTreeViewItem|GUICtrlCreateUpdown|GUICtrlDelete|GUICtrlGetHandle|GUICtrlGetState|GUICtrlRead|GUICtrlRecvMsg|GUICtrlRegisterListViewSort|GUICtrlSendMsg|GUICtrlSendToDummy|GUICtrlSetBkColor|GUICtrlSetColor |GUICtrlSetCursor |GUICtrlSetData |GUICtrlSetFont |GUICtrlSetGraphic |GUICtrlSetImage |GUICtrlSetLimit |GUICtrlSetOnEvent |GUICtrlSetPos |GUICtrlSetResizing |GUICtrlSetState |GUICtrlSetStyle |GUICtrlSetTip |GUIDelete |GUIGetCursorInfo |GUIGetMsg |GUIRegisterMsg|GUISetBkColor|GUISetCoord|GUISetCursor|GUISetFont|GUISetHelp|GUISetIcon|GUISetOnEvent|GUISetState|GUIStartGroup|GUISwitch|Hex|HotKeySet|HttpSetProxy|HWnd |InetGet|InetGetSize|IniDelete|IniRead|IniReadSection|IniReadSectionNames |IniRenameSection |IniWrite |InputBox |Int |IsAdmin |IsArray |IsBinaryString |IsBool |IsDeclared |IsFloat |IsHWnd |IsInt |IsKeyword |IsNumber |IsObj |IsString |Log |MemGetStats |Mod |MouseClick |MouseClickDrag |MouseDown |MouseGetCursor |MouseGetPos |MouseMove |MouseUp |MouseWheel |MsgBox |Number |ObjCreate |ObjEvent |ObjGet |ObjName |Ping |PixelChecksum |PixelGetColor |PixelSearch |ProcessClose |ProcessExists |ProcessList |ProcessSetPriority |ProcessWait |ProcessWaitClose |ProgressOff |ProgressOn |ProgressSet |Random |RegDelete |RegEnumKey |RegEnumVal |RegRead |RegWrite |Round |Run |RunAsSet |RunWait |Send |SetError |SetExtended |Shutdown |Sin |Sleep |SoundPlay |SoundSetWaveVolume |SplashImageOn |SplashOff |SplashTextOn |Sqrt |StatusbarGetText |StderrRead |StdinWrite |StdoutRead |String |StringAddCR|StringFormat|StringInStr|StringIsAlNum|StringIsAlpha|StringIsASCII|StringIsDigit"& _ "|StringIsFloat|StringIsInt|StringIsLower|StringIsSpace|StringIsUpper|StringIsXDigit|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringStripCR|StringStripWS|StringTrimLeft|StringTrimRight|StringUpper|Tan|TCPAccept|TCPCloseSocket|TCPConnect|TCPListen|TCPNameToIP |TCPRecv|TCPSend|TCPShutdown, UDPShutdown|TCPStartup, UDPStartup |TimerDiff |TimerInit |ToolTip |TrayCreateItem |TrayCreateMenu |TrayGetMsg |TrayItemDelete |TrayItemGetHandle |TrayItemGetState |TrayItemGetText |TrayItemSetOnEvent |TrayItemSetState |TrayItemSetText |TraySetClick |TraySetIcon |TraySetOnEvent |TraySetPauseIcon|TraySetState|TraySetToolTip|TrayTip|UBound |UDPBind |UDPCloseSocket |UDPOpen|UDPRecv|UDPSend |WinActivate |WinActive|WinClose|WinExists|WinFlash|WinGetCaretPos|WinGetClassList|WinGetClientSize|WinGetHandle |WinGetPos|WinGetProcess |WinGetState |WinGetText |WinGetTitle |WinKill |WinList |WinMenuSelectItem |WinMinimizeAll |WinMinimizeAllUndo |WinMove |WinSetOnTop |WinSetState |WinSetTitle |WinSetTrans |WinWait |WinWaitActive |WinWaitClose |WinWaitNotActive") GUICtrlSetFont(-1, 8, 800, 0, "Rockwell") GUICtrlSetBkColor(-1, 0xD4D0C8) GUICtrlCreateInput("", 15, 96, 170, 22) GUICtrlSetFont(-1, 9, 800, 0, "Rockwell") $Accept = GUICtrlCreateButton("Add To Clipboard", 15, 688, 170, 30, 0) GUICtrlCreateLabel("QuickRef Function Poster", 2, 16, 194, 22) GUICtrlSetFont(-1, 11, 800, 0, "Rockwell") GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, 0x716F64) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd It says the really long string is unterminated, and i don't see where, Are the whitespaces screwing it up? EDIT: wow it looks like crap all condensed on a page like this Edited October 18, 2006 by Paulie Link to comment Share on other sites More sharing options...
GaryFrost Posted October 18, 2006 Share Posted October 18, 2006 (edited) hmmmm, looks good in scite, but copy and pasting in here I think the string is toooooooo lonh think the string is too long why not read all that in from a file? Edited October 18, 2006 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted October 18, 2006 Share Posted October 18, 2006 (edited) string length is 4805 white space stripped out 4373 exceeds 4096 Edited October 18, 2006 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted October 18, 2006 Share Posted October 18, 2006 expandcollapse popup#include <GUIConstants.au3> $s_text = "Abs|ACos|AdlibDisable|AdlibEnable|Asc|ASin|Assign|ATan|AutoItSetOption|AutoItWinGetTitle|" & _ "AutoItWinSetTitle|Beep|BinaryString|BitAND|BitNOT|BitOR |BitRotate|BitShift |BitXOR|BlockInput|Break |Call|CDTray|" & _ "Ceiling|Chr|ClipGet |ClipPut|ConsoleRead |ConsoleWrite|ConsoleWriteError |ControlClick |ControlCommand |ControlDisable |" & _ "ControlEnable |ControlFocus |ControlGetFocus |ControlGetHandle |ControlGetPos |ControlGetText |ControlHide |" & _ "ControlListView |ControlMove |ControlSend |ControlSetText |ControlShow |Cos |Dec |DirCopy |DirCreate|DirGetSize |" & _ "DirMove |DirRemove |DllCall |DllClose |DllOpen |DllStructCreate |DllStructGetData|DllStructGetPtr|DllStructGetSize|" & _ "DllStructSetData|DriveGetDrive|DriveGetFileSystem|DriveGetLabel|DriveGetSerial|DriveGetType|DriveMapAdd|DriveMapDel|" & _ "DriveMapGet|DriveSetLabel|DriveSpaceFree|DriveSpaceTotal|DriveStatus|EnvGet |EnvSet |EnvUpdate |Eval |Execute |Exp |" & _ "FileChangeDir |FileClose |FileCopy |FileCreateNTFSLink |FileCreateShortcut |FileDelete |FileExists |" & _ "FileFindFirstFile |FileFindNextFile |FileGetAttrib |FileGetLongName |FileGetShortcut |FileGetShortName |FileGetSize |" & _ "FileGetTime |FileGetVersion |FileInstall |FileMove |FileOpen |FileOpenDialog |FileRead |FileReadLine |" & _ "FileRecycle |FileRecycleEmpty |FileSaveDialog |FileSelectFolder |FileSetAttrib |FileSetTime |FileWrite |" & _ "FileWriteLine |Floor |FtpSetProxy |GUICreate |GUICtrlCreateAvi |GUICtrlCreateButton |GUICtrlCreateCheckbox |" _DebugPrint($s_text) $s_text &= "GUICtrlCreateCombo |GUICtrlCreateContextMenu |GUICtrlCreateDate |GUICtrlCreateDummy |GUICtrlCreateEdit |" & _ "GUICtrlCreateGraphic |GUICtrlCreateGroup |GUICtrlCreateIcon |GUICtrlCreateInput |GUICtrlCreateLabel |" & _ "GUICtrlCreateList |GUICtrlCreateListView|GUICtrlCreateListViewItem|GUICtrlCreateMenu|GUICtrlCreateMenuitem|GUICtrlCreateMonthCal" & _ "|GUICtrlCreateObj|GUICtrlCreatePic|GUICtrlCreateProgress|GUICtrlCreateRadio|GUICtrlCreateSlider|GUICtrlCreateTab|" & _ "GUICtrlCreateTabItem|GUICtrlCreateTreeView|GUICtrlCreateTreeViewItem|GUICtrlCreateUpdown|GUICtrlDelete|GUICtrlGetHandle|" & _ "GUICtrlGetState|GUICtrlRead|GUICtrlRecvMsg|GUICtrlRegisterListViewSort|GUICtrlSendMsg|GUICtrlSendToDummy|GUICtrlSetBkColor|" & _ "GUICtrlSetColor |GUICtrlSetCursor |GUICtrlSetData |GUICtrlSetFont |GUICtrlSetGraphic |GUICtrlSetImage |" & _ "GUICtrlSetLimit |GUICtrlSetOnEvent |GUICtrlSetPos |GUICtrlSetResizing |GUICtrlSetState |GUICtrlSetStyle |GUICtrlSetTip |" & _ "GUIDelete |GUIGetCursorInfo |GUIGetMsg |GUIRegisterMsg|GUISetBkColor|GUISetCoord|GUISetCursor|GUISetFont|GUISetHelp|" & _ "GUISetIcon|GUISetOnEvent|GUISetState|GUIStartGroup|GUISwitch|Hex|HotKeySet|HttpSetProxy|HWnd |InetGet|InetGetSize|IniDelete|" & _ "IniRead|IniReadSection|IniReadSectionNames |IniRenameSection |IniWrite |InputBox |Int |IsAdmin |IsArray |" & _ "IsBinaryString |IsBool |IsDeclared |IsFloat |IsHWnd |IsInt |IsKeyword |IsNumber |IsObj |IsString |Log |MemGetStats |" & _ "Mod |MouseClick |MouseClickDrag |MouseDown |MouseGetCursor |MouseGetPos |MouseMove |MouseUp |MouseWheel |MsgBox |" _DebugPrint($s_text) $s_text &= "Number |ObjCreate |ObjEvent |ObjGet |ObjName |Ping |PixelChecksum |PixelGetColor |PixelSearch |ProcessClose |" & _ "ProcessExists |ProcessList |ProcessSetPriority |ProcessWait |ProcessWaitClose |ProgressOff |ProgressOn |" & _ "ProgressSet |Random |RegDelete |RegEnumKey |RegEnumVal |RegRead |RegWrite |Round |Run |RunAsSet |RunWait |" & _ "Send |SetError |SetExtended |Shutdown |Sin |Sleep |SoundPlay |SoundSetWaveVolume |SplashImageOn |SplashOff |" & _ "SplashTextOn |Sqrt |StatusbarGetText |StderrRead |StdinWrite |StdoutRead |String |StringAddCR|StringFormat|" & _ "StringInStr|StringIsAlNum|StringIsAlpha|StringIsASCII|StringIsDigit|StringIsFloat|StringIsInt|StringIsLower|StringIsSpace|" & _ "StringIsUpper|StringIsXDigit|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringStripCR|" & _ "StringStripWS|StringTrimLeft|StringTrimRight|StringUpper|Tan|TCPAccept|TCPCloseSocket|TCPConnect|TCPListen|TCPNameToIP |" & _ "TCPRecv|TCPSend|TCPShutdown, UDPShutdown|TCPStartup, UDPStartup |TimerDiff |TimerInit |ToolTip |TrayCreateItem |" & _ "TrayCreateMenu |TrayGetMsg |TrayItemDelete |TrayItemGetHandle |TrayItemGetState |TrayItemGetText |TrayItemSetOnEvent |" & _ "TrayItemSetState |TrayItemSetText |TraySetClick |TraySetIcon |TraySetOnEvent |TraySetPauseIcon|TraySetState|" & _ "TraySetToolTip|TrayTip|UBound |UDPBind |UDPCloseSocket |UDPOpen|UDPRecv|UDPSend |WinActivate |WinActive|WinClose|" _DebugPrint($s_text) $s_text &= "WinExists|WinFlash|WinGetCaretPos|WinGetClassList|WinGetClientSize|WinGetHandle |WinGetPos|WinGetProcess |WinGetState |" & _ "WinGetText |WinGetTitle |WinKill |WinList |WinMenuSelectItem |WinMinimizeAll |WinMinimizeAllUndo |WinMove |" & _ "WinSetOnTop |WinSetState |WinSetTitle |WinSetTrans |WinWait |WinWaitActive |WinWaitClose |WinWaitNotActive" _DebugPrint($s_text) _DebugPrint(StringLen($s_text)) #Region ### START Koda GUI section ### Form=c:\documents and settings\administrator\desktop\toolbar.kxf ;~ $Toolbar = GUICreate("QuickRef Function Poster", 201, 801, 1047, 93, -1, BitOR($WS_EX_TOOLWINDOW,$WS_EX_TOPMOST)) $Toolbar = GUICreate("QuickRef Function Poster", 201, 801, -1, -1, -1, BitOR($WS_EX_TOOLWINDOW,$WS_EX_TOPMOST)) GUISetBkColor(0x716F64) $List = GUICtrlCreateListView("Function Names", 15, 120, 170, 538) $s_text = StringSplit($s_text, "|") For $x = 1 To $s_text[0] GUICtrlCreateListViewItem($s_text[$x], $List) Next GUICtrlSetData(-1, $s_text) GUICtrlSetFont(-1, 8, 800, 0, "Rockwell") GUICtrlSetBkColor(-1, 0xD4D0C8) GUICtrlCreateInput("", 15, 96, 170, 22) GUICtrlSetFont(-1, 9, 800, 0, "Rockwell") $Accept = GUICtrlCreateButton("Add To Clipboard", 15, 688, 170, 30, 0) GUICtrlCreateLabel("QuickRef Function Poster", 2, 16, 194, 22) GUICtrlSetFont(-1, 11, 800, 0, "Rockwell") GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, 0x716F64) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func _DebugPrint($s_text) $s_text = StringReplace($s_text, @LF, @LF & "-->") ConsoleWrite("!===========================================================" & @LF & _ "+===========================================================" & @LF & _ "-->" & $s_text & @LF & _ "+===========================================================" & @LF) EndFunc ;==>_DebugPrint SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now