Custom Query
Results (16 - 18 of 3866)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#2283 | No Bug | Array access when using nested arrays | Mat | |
Description |
If arrays are nested then it is not possible to access them using brackets directly. Local $a1[3] = [0, 0, 0] Local $a2[3] = [1, 2, 3] $a1[2] = $a2 ;MsgBox(0, "Test", ($a1[2])[1]) ; Works MsgBox(0, "Test", $a1[2][1]) ; Doesn't Furthermore, using parenthesis like above to try and assign to that does nothing at all (no error, no effect): #include<Array.au3> Local $a1[3] = [0, 0, 0] Local $a2[3] = [1, 2, 3] $a1[2] = $a2 ($a1[2])[1] = 42 _ArrayDisplay($a1[2]) |
|||
#2347 | Fixed | _WinAPI_GetMonitorInfo() returns incorrect data. | Valik | |
Description |
The following line of _WinAPI_GetMonitorInfo() is incorrect: If Not _WinAPI_MoveMemory(DllStructGetPtr($Result[$i]), DllStructGetPtr($tMIEX, $i + 1), 16) Then DllStructGetPtr() is 1-indexed, not 0, so the code as originally written returns garbage. Actually it causes rcMonitor to return cbSize and the first 3 elements of rcMonitor and it causes rcWork to return rcMonitor. None of which is correct. The fix is simple enough: If Not _WinAPI_MoveMemory(DllStructGetPtr($Result[$i]), DllStructGetPtr($tMIEX, $i + 2), 16) Then Better yet rewrite that part of the code to be less "clever" and more sane. Remember folks, clean and working code is better than clever broken code. |
|||
#17 | Rejected | _WinAPI_MessageBeep with parameter 3 | Xenobiologist | |
Description |
Hi, I do not get any sound on number 3. Why? #Include <WinAPI.au3> FOr $i = 0 To 5 Switch $i case 0 ToolTip('Simple beep. If a sound card is not available, the speaker is used.') case 1 ToolTip('OK.') case 2 ToolTip('Hand') case 3 ToolTip('Question') case 4 ToolTip('Exclamation') case 5 ToolTip('Asterisk') EndSwitch _WinAPI_MessageBeep($i) Sleep(2000) Next Thanks! So long, Mega |