Code: Select all
ListCtrlEvent(ctrlHwnd:=0, guiEvent:="", eventInfo:="", errLvl:="") {
If A_GuiEvent
LvSel := A_GuiControl
GuiControlGet, ctrlName, Name, %CtrlHwnd%
rownumber := eventInfo
If (guiEvent = "DoubleClick") {
Thread, NoTimers , True
;eventInfo ;event info is rownumber
If ctrlName = MyFirstListView
{
Gui, ListView, MyFirstListView
LV_GetText(Desc,eventInfo,1)
LV_GetText(Qty,eventInfo,2)
;Set of instructions
}
If (guiEvent = "Normal") {
Thread, NoTimers , True
;eventInfo ;event info is rownumber
If ctrlName = MyFirstListView
{
Gui, ListView, MyFirstListView
LV_GetText(Desc,eventInfo,1)
LV_GetText(Qty,eventInfo,2)
;Set of instructions
}
}
Code: Select all
If (A_TimeSincePriorHotkey<400) and (A_TimeSincePriorHotkey<>-1)