You can use this function to simulate a mouse double click on a List View, Tree View or Header common control.
cDblClickItem (window-handle, item)
(i) window-handle Windows handle to a List View common control.
(i) item operates differently based on the class of the target control
SysListView32 |
Expects the one-based number of the item to double click. If -1 is specified it will double click a previously selected item on the List View control. |
SysTreeView32 |
This parameter is ignored because there is no numerical association made with the control's items. Use the cSetTvItem function to select a Tree View control item before calling this routine to simulate the double click. |
Header32 |
This parameter must be specified. This is because Header controls do not allow individual items to be pre-selected the way that List View and Tree View controls do. Expects the one-based number of the item to double click. |
(i) @TRUE, if item is not selected. @FALSE, if item could not be un-selected.
32-bit Extender
This function is designed for Windows 32-bit application controls. It cannot be used on Windows 64-bit controls.
64-bit Extender
This function is designed for Windows 64-bit application controls. It cannot be used on Windows on 32-bit controls.
AddExtender("wwctl44i.dll",0,"wwctl64i.dll") ; Explorer List View area hwndex = DllHwnd("Exploring ") hwnd = cWndbyclass(hwndex,"SHELLDLL_DefView") hwnd = cWndbyclass(hwnd,"SysListView32") myitem = "Backup" ; Get the labels from the first column of each row in the control. wintext = cGetLvText(hwnd) ;Get the index of the item select1 = ItemLocate(myitem, wintext, @TAB) If select1 > 0 cDblClickItem(hwnd, select1) EndIf
cWndByClass, cWndInfo, DLLhwnd