Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Double click for Listview

$
0
0

I'm trying to adapt this:

GUIRegisterMsg($WM_LBUTTONDBLCLK, "_WM_LBUTTONDBLCLK") Local $fDblClk = False Local $iDoubleClickTime = 200 ; _WinAPI_GetDoubleClickTime() ; 500 by default Func _WM_LBUTTONDBLCLK($hWnd, $iMsg, $iwParam, $ilParam)     Local $iX = BitAND($ilParam, 0xFFFF), $iY = BitShift($ilParam, 16)     $fDblClk = True     ConsoleWrite("!Double click on: [" & $iX & "," & $iY & "]" & @CRLF)     Return $GUI_RUNDEFMSG EndFunc

To work on my List view. I already have a button called $Edit_Btn and I want to make it so when I doubleclick in the list view, it triggers the Edit_Btn case.

 

The code above seems to print out where I clicked on the console, but only when I click on the GUI background and not on the list view. Is there a easier way to make it so when I double click in a list view, it triggers the edit button?


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>