Custom Query (3927 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (139 - 141 of 3927)

Ticket Resolution Summary Owner Reporter
#2318 No Bug simple _isPressed middle mouse is not working trettt@…
Description

hold middle button in notepad, only one 'a' gets pressed

Local $hDLL = DllOpen("user32.dll")

While 1

If _IsPressed("04", $hDLL) Then

Send("{a down}")

While _IsPressed("04", $hDLL)

Sleep(2)

WEnd Send("{a up}") sleep(2)

EndIf

WEnd

DllClose($hDLL)

#721 No Bug _Atan2() returns wrong trancexx
Description

It's function from Math.au3 Returns wrong for points located in third quadrant.

#include <Math.au3>
ConsoleWrite(_Atan2(-1, -3) & @CRLF)

The result should be -2.8198420991932 but it's returning 3.46334320798644

Link to one online calculator to verify result: http://ostermiller.org/calc/calculator.html

#723 No Bug Structure problem trancexx
Description

Unexpected behaviour with function DllStructureCreate()when created with pointer and "dword":

ConsoleWrite("Binary data is 0x3378FF453D1133" & @CRLF & @CRLF)

$structure_Binary_1 = DllStructCreate("byte[7]")
DllStructSetData($structure_Binary_1, 1, "0x3378FF453D1133"); that is 0x3378 and 0xFF453D11, last byte 0x33 is just for testing 

; Testing on "short;dword"
$struct_1 =  DllStructCreate("short;dword", DllStructGetPtr($structure_Binary_1))
ConsoleWrite("Before align:" & @CRLF)
ConsoleWrite(Binary(DllStructGetData($struct_1, 1)) & " <-- Binary(short) - ok" & @CRLF)
ConsoleWrite(Binary(DllStructGetData($struct_1, 2)) & " <-- Binary(dword) - 0xFF is missing and 0x33 is there" & @CRLF)

ConsoleWrite(@CRLF)


; New structure is "short;dword" with keyword align
$structure_Binary_2 = DllStructCreate("byte[7]")
DllStructSetData($structure_Binary_2, 1, "0x3378FF453D1133")

$struct_2 =  DllStructCreate("align 1;short;dword", DllStructGetPtr($structure_Binary_2)) ; or "align 2"
ConsoleWrite("After:" & @CRLF)
ConsoleWrite(Binary(DllStructGetData($struct_2, 1)) & " <-- Binary(short)" & @CRLF)
ConsoleWrite(Binary(DllStructGetData($struct_2, 2)) & " <-- Binary(dword), this appears ok" & @CRLF)


ConsoleWrite(@CRLF)


; Testing on "dword;short"
$structure_Binary_3 = DllStructCreate("byte[7]")
DllStructSetData($structure_Binary_3, 1, "0x3378FF453D1133")

$struct_3 =  DllStructCreate("dword;short", DllStructGetPtr($structure_Binary_3)) 
ConsoleWrite("Reoganized (no align):" & @CRLF)
ConsoleWrite(Binary(DllStructGetData($struct_3, 1)) & " <-- Binary(dword) - ok" & @CRLF)
ConsoleWrite(Binary(DllStructGetData($struct_3, 2)) & " <-- Binary(short) - ok" & @CRLF)

Thread on forum: http://www.autoitscript.com/forum/index.php?showtopic=85213

Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.