Custom Query (3926 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (100 - 102 of 3926)

Ticket Resolution Summary Owner Reporter
#3936 No Bug PixelChecksum not working correctly, tried PixelCoordMode options ribo75016@…
Description

Hello, I'm using an i7 6700T CPU with internal Intel 530 GPU And this piece of code:

HotKeySet("{F8}", "F8")

Func F8()

;Opt("PixelCoordMode", 2) ; Tried 0 1 and 2 without significant differences Local $tmp = MouseGetPos() Local $Checksum = PixelChecksum($tmp[0], $tmp[1], $tmp[0] + 50, $tmp[1] + 50) MsgBox(0, "Cksum", $tmp[0] & '/' & $tmp[1] & '/' & $tmp[0] + 50 & '/' & $tmp[1] + 50 & '/' & $Checksum)

EndFunc

While (1)

Sleep(100)

Wend

Checksum is often same value (only coord is modified), whereas I move the mouse cursor on different texts

Regards, Philippe

#3934 Completed _WinAPI_SetTimer TimerID must be nonzero Jpm KaFu
Description

"A nonzero timer identifier" should be added to the TimerID description in _WinAPI_SetTimer().

Otherwise if set to 0, the return value of the function is not the TimerID.

See also: https://www.autoitscript.com/forum/topic/209219-centered-fileopendialog-using-self-terminating-wm_timer-call/?do=findComment&comment=1509811

Maybe add a second example for this scenario without a callback function.

#include <GUIConstantsEx.au3>
#include <Misc.au3>
#include <WinAPISysWin.au3>
#include <WindowsConstants.au3>

Opt('TrayAutoPause', 0)

Global $g_iCount = 0
Local $iTimerID = 999

Local $hGUI = GUICreate("Example")
GUIRegisterMsg($WM_TIMER, "WM_TIMER")

$iTimerID = _WinAPI_SetTimer($hGUI, $iTimerID, 1000, 0)

Do
    Sleep(100)
Until _IsPressed('1B')

_WinAPI_KillTimer($hGUI, $iTimerID)


Func WM_TIMER($hWnd, $iMsg, $iwParam, $ilParam)
    #forceref $hWnd, $iMsg, $iwParam, $ilParam

    ConsoleWrite($g_iCount & @CRLF)
    $g_iCount += 1

    Return $GUI_RUNDEFMSG
EndFunc   ;==>WM_TIMER
#3932 Completed _WinAPI_GetRawInputData Helpfile Example Jpm KaFu
Description

Playing around with above example and wondering why nothing's happening I saw that the bitmap path do not work, when you test outside of installation dir.

Please replace

$g_ahPart[$i] = _WinAPI_LoadImage(0, @ScriptDir & '\Extras\Mice' & $i & '.bmp', $IMAGE_BITMAP, 0, 0, $LR_LOADFROMFILE)

with something like

$g_ahPart[$i] = _WinAPI_LoadImage(0, StringReplace(@AutoItExe, "autoit3.exe", "Examples\Helpfile") & '\Extras\Mice' & $i & '.bmp', $IMAGE_BITMAP, 0, 0, $LR_LOADFROMFILE)

or better path alternatives :).

Best Regards

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