In fact,DoubleClick: The user has double-clicked a row. The variable A_EventInfo contains the row number.
A_EventInfo keeps unchanged whenever the user double-clicks on an empty area within the ListView. The (0-based) iItem member of the NMITEMACTIVATE structure provided by the NM_DBLCLK notification contains -1 in this case, so A_EventInfo has to be set to 0 (1-based row index).Alternatively AHK might suppress the "DoubleClick" event in this case, because the user has not double-clicked a row (an item).




