Custom Query (3921 matches)
Results (328 - 330 of 3921)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #3659 | Fixed | InetClose() always return "False". | ||
| Description |
The reference of InetClose() says: Return Value True: if the handle was found and closed. False: if not. But in this simple example, InetClose() alway return "False": #include <InetConstants.au3>
Local $hDownload
$hDownload = InetGet("http://www.autoitscript.com/autoit3/files/beta/update.dat", @ScriptDir & "\test.txt", $INET_FORCERELOAD, $INET_DOWNLOADBACKGROUND)
ConsoleWrite(@error)
Sleep(5000)
$bReturn = InetClose($hDownload)
MsgBox(0, "", $bReturn)
Even here while download is effectively interrupted, InetClose() return "False": Local $hDownload = InetGet("https://www.autoitscript.com/autoit3/files/archive/autoit/autoit-v3.3.14.5-setup.exe", @ScriptDir & "\test.exe", 1, 1)
ConsoleWrite($hDownload & @crlf)
ConsoleWrite(@error & @crlf)
$bReturn = InetClose($hDownload)
ConsoleWrite($bReturn & @crlf)
ConsoleWrite($hDownload & @crlf)
Output in console: 1 0 False 1 |
|||
| #3658 | No Bug | Problem Number | ||
| Description |
$Num="89304402523905652748447801781" $result=Mod($Num,97) ; = 64 $recup=StringSplit ($result,"") $math=Number ($recup [1]&"-"&$recup [2]); 6-4=2 he is wrong he is leaving 6 instead of 2 $key=Number ($result&"+"&$math) MsgBox (0,"",$result) MsgBox (0,"",$key) MsgBox (0,"",$math) |
|||
| #3657 | Fixed | Incorrect behaviour while using _GUICtrlListView_SimpleSort when no items are selected | ||
| Description |
When using a ListView (singlesel not enabled) which is populated with a number of items and none are selected using _GUICtrlListView_SimpleSort will select an single item. This is due to incorrect handling of the Stringsplit function in the _GUICtrlListView_SimpleSort function written in GuiListView.au3. If no items are selected _GUICtrlListView_GetSelectedIndices with the default settings returns an empty string. If no separatorchars are found Stringsplit will return an array with two elements being [0] = 1 and [1] = whole string = "" which is default behaviour. Later in the _GUICtrlListView_SimpleSort a for loop is used based on the first element of the Stringsplit return array. I.e. it uses the fact that there is one item selected in the Listview which is of course incorrect. This results in having one item selected after the SimpleSort. Suggested fix: After StringSplit check for errors and modify array[0] to 0 if an error. if @error = 1 Then $aSelectedItems[0] = 0 |
|||
