Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Record PC Activity based on file/app focus
#4
Very quick
not a complete "app" of course
I sure Gintaras could answer a trillion times better - maybe something with the win or acc triggers. Here I just used the left click

Look in the help file under win and also check out the text dialog in the QM toolbar

Macro
Trigger #L 0x9     Help - how to add the trigger to the macro
Code:
Copy      Help
out
int+ Time1 = GetTickCount
int TimeBetweenLtClicks = Time1 - Time2
out "TimeBetweenLtClicks = %i ms" TimeBetweenLtClicks
str TimeStamp.time("ddd',' MMM dd yyyy" "HH:mm:ss")

int h=win(mouse)
str sn sc
out sc.getwinclass(h)
out sn.getwintext(h)

int+ Time2 = GetTickCount

_s.format("TimeStamp:[9]%s[]TimeBetweenLtClicks:[9]%i ms[]Window Name:[9]%s[]Wndow Class:[9]%s" TimeStamp TimeBetweenLtClicks sn sc); _s.setfile("Sample.txt")
out _s



Stuart


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)