Custom Query
Results (46 - 48 of 3827)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#145 | Fixed | IniWrite() and whitespaces | Valik | Lagoon |
Description |
The IniWrite function requires two pairs of quotes, if any white spaces are to be included in the value argument. Is this expected functionality? If it is, perhaps it could be mentioned in the documentation. const $FILE = "iniTest.ini" const $SECTION = "test" IniWrite($FILE, $SECTION, "key1", '" !"') ; In my opinion the second pair of quotes shouldn't really be necessary. $var = "whitespace:" & IniRead($FILE, $SECTION, "key1", "error") MsgBox(262144,'Debug line ~' & @ScriptLineNumber,'Selection:' & @lf & '$var' & @lf & @lf & 'Return:' & @lf & $var) ;### Debug MSGBOX FileDelete($FILE) |
|||
#148 | Fixed | _StringProper | Jos | Xenobiologist |
Description |
The func will only work this letters [a-zA-Z]. There are languages which use something like öäü. Func _StringProper($s_Str) Local $iX = 0 Local $CapNext = 1 Local $s_nStr = "" Local $s_CurChar For $iX = 1 To StringLen($s_Str) $s_CurChar = StringMid($s_Str, $iX, 1) Select Case $CapNext = 1 If StringRegExp($s_CurChar, '[a-zA-Z]') Then $s_CurChar = StringUpper($s_CurChar) $CapNext = 0 EndIf Case Not StringRegExp($s_CurChar, '[a-zA-Z]') $CapNext = 1 Case Else $s_CurChar = StringLower($s_CurChar) EndSelect $s_nStr &= $s_CurChar Next Return ($s_nStr) EndFunc ;==>_StringProper Mega |
|||
#152 | Fixed | StdoutRead maxes CPU on process (when not run from SciTe). | Valik | Saunders <admin@…> |
Description |
There appears to be a bug with StdoutRead that causes the spawned process to max out the CPU. I've provided two scripts, because this was the cleanest and simplest way I could discern to demonstrate the bug, I believe my code should work properly, although if there are errors with the code itself, feel free to ream me out for borking it. Anyway, this first piece of code is the Child script, save it in a folder as TestChild.au3. ; Very simple script that should NOT max out the CPU Do ConsoleWrite('Loop') Until MsgBox(4, '', 'Continue?') = 7 This second piece of code is the Parent script, save it in the same folder as TestChild.au3. #include <Constants.au3> Global $sOutput, $sStdoutRead Global $iScriptPID = Run(FileGetShortName(@AutoItExe) & ' ' & FileGetShortName(@ScriptDir & '\TestChild.au3'), @ScriptDir, @SW_HIDE, $STDOUT_CHILD) While 1 If $iScriptPID Then $sStdoutRead = StdoutRead($iScriptPID) If Not @error Then If @extended Then $sOutput &= $sStdoutRead & @LF ToolTip('Parent PID: ' & @AutoItPID & @LF & 'Child PID: ' & $iScriptPID & @LF & $sOutput) EndIf Else $iScriptPID = False EndIf Sleep(100) Else MsgBox(0, '', 'Parent exiting') ExitLoop EndIf WEnd Now, this is important, run the Parent script, but not through SciTe. I found that for whatever reason, running this code through SciTe doesn't give me any problems. Now, while it's running have a look at your Task Manager, you should see that the child process is maxing out the CPU, and considering that it should be stopped on a MsgBox(), I really don't think it should be doing that. |