import winex.desktop; var lv = winex.desktop.listview; var index = lv.findItem("此电脑"); lv.selected = {index}; var rect = lv.getItemRect(index); var pos = (rect.top+20)<<16|(rect.left+20); ::SendMessageInt(lv.hwnd,0x203/*_WM_LBUTTONDBLCLK*/,0,pos);
方法2:
import winex.desktop; var lv = winex.desktop.listview; var index = lv.findItem("此电脑"); lv.selected = {index}; ::SendMessageInt(lv.hwnd,0x100/*_WM_KEYDOWN*/,13,0);