Output window working

pull/99/head
Clive Galway 1 year ago
parent 453593bbd2
commit a8b56f832b

@ -108,18 +108,15 @@ btnClearMouse.OnEvent("Click", ClearMouse)
lowest += 30 lowest += 30
; Output ; Output
; Gui, Add, ListView, % "x" columnX.K " y" lowest " w" totalWidths.K " h" outputH " hwndhLvKeyboard", ID|Code|State|Key Name lvKeyboard := monitorGui.Add("ListView", "x" columnX["K"] " y" lowest " w" totalWidths["K"] " h" outputH, ["ID", "Code", "State", "Key Name"])
; LV_ModifyCol(4, 100) lvKeyboard.ModifyCol(4, 100)
; Gui, Add, ListView, % "x" columnX.M " yp w" totalWidths.M " h" outputH " hwndhLvMouse", ID|Code|State|X|Y|Info
; LV_ModifyCol(6, 200) lvMouse := monitorGui.Add("ListView", "x" columnX["M"] " yp w" totalWidths["M"] " h" outputH, ["ID", "Code", "State", "X", "Y", "Info"])
lvMouse.ModifyCol(6, 200)
lowest += outputH lowest += outputH
; Gui("Show", "w" (marginX * 3) + totalWidths.K + totalWidths.M " h" marginY + lowest, "AutoHotInterception Monitor")
monitorGui.Show("w" (marginX * 3) + totalWidths["K"] + totalWidths["M"] " h" marginY + lowest) monitorGui.Show("w" (marginX * 3) + totalWidths["K"] + totalWidths["M"] " h" marginY + lowest)
;~ Monitor.Subscribe(Func("KeyboardEvent"), Func("MouseEvent"))
return return
@ -186,13 +183,13 @@ FilterPress(ctrl, info){
} }
ClearKeyboard(ctrl, info){ ClearKeyboard(ctrl, info){
; Gui, ListView, % hLvKeyboard global lvKeyboard
; LV_Delete() lvKeyboard.Delete()
} }
ClearMouse(ctrl, info){ ClearMouse(ctrl, info){
; Gui, ListView, % hLvMouse global lvMouse
; LV_Delete() lvMouse.Delete()
} }
FormatHex(num){ FormatHex(num){
@ -201,31 +198,27 @@ FormatHex(num){
KeyboardEvent(id, code, state){ KeyboardEvent(id, code, state){
ToolTip("Keyboard Event`nid: " id "`ncode: " code "`nstate: " state) global lvKeyboard, filterKeyPress
; global hLvKeyboard, filterKeyPress if (filterKeyPress && state)
; if (filterKeyPress && state) return
; return scanCode := Format("{:x}", code)
; Gui, ListView, % hLvKeyboard keyName := GetKeyName("SC" scanCode)
; scanCode := Format("{:x}", code) row := lvKeyboard.Add(, id, code, state, keyName)
; keyName := GetKeyName("SC" scanCode) lvKeyboard.Modify(row, "Vis")
; row := LV_Add(, id, code, state, keyName)
; LV_Modify(row, "Vis")
} }
MouseButtonEvent(id, code, state){ MouseButtonEvent(id, code, state){
; global hLvMouse global lvMouse
; Gui, ListView, % hLvMouse row := lvMouse.Add(, id, code, state, "", "", "Button")
; row := LV_Add(, id, code, state, "", "", "Button") lvMouse.Modify(row, "Vis")
; LV_Modify(row, "Vis")
} }
MouseAxisEvent(id, info, x, y){ MouseAxisEvent(id, info, x, y){
; global hLvMouse, filterMouseMove global lvMouse, filterMouseMove
; if (filterMouseMove) if (filterMouseMove)
; return return
; Gui, ListView, % hLvMouse row := lvMouse.Add(, id, "", "", x, y, info)
; row := LV_Add(, id, "", "", x, y, info) lvMouse.Modify(row, "Vis")
; LV_Modify(row, "Vis")
} }
CopyClipboard(str, ctrl, info){ CopyClipboard(str, ctrl, info){

Loading…
Cancel
Save