Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
General hook for keyboard.
#8
what I did

put int+ timeold in hook function declaration (not proc)

then

Function TraiteTouches
Code:
Copy      Help
function int'hwnd int'time int'code
_i=0
int+ timeold
_s.getwinexe(hwnd)
str jj
str chacun g
str monitor="qm"

int h=time-timeold
out h
timeold=time
foreach chacun monitor
,if(findrx(_s chacun 0 1 g)!=-1)
,,_i+1
,,break
if(_i=0) ret 1
;_s.getwintext(hwnd)
FormatKeyString code 0 &jj;

but the output is double, like this, and don't know which number is the real elapsed time. Can't understand why....



171
719
156
391
188
546
172
422
188
515
188
422
203
797
187
391
172
140
157
171


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)