Hi im posting this here because i feel the problem is being caused by the timer (specifically UI thread) and not office, but im not sure.
i have various posts trying to solve a problem of checking userinput on an almost realtime basis in word, since it doesnt have and event for that.
after a long process of trying diferent approaches(and failing at some point) i found dispatcher timer.
PROBLEM:
after the timer is started it works fine and does what its surposed to do which is just check the text on the document basically, i have an option to turn on a table and as the user types its being updated(basically variables are being updated first then i update the ui with the variables), after the table is drawn the first time i type another letter and no problem on the second letter its repeating keypresses 3 times, it doesnt have this behaviour if i use a threading timer or a loop its the first time this has happened.
NOTE: there is no editing programmatically whatsoever with the text on the document, only adding a table so theres nothing in the code that would cause letters to be typed.
im assuming the dispatchertimer is causing a problem with the sendkeys event of office.
any ideas?
also any tips on how to debug this, i cant step through becasue the timer keeps ticking lol,
thanks
i have various posts trying to solve a problem of checking userinput on an almost realtime basis in word, since it doesnt have and event for that.
after a long process of trying diferent approaches(and failing at some point) i found dispatcher timer.
PROBLEM:
after the timer is started it works fine and does what its surposed to do which is just check the text on the document basically, i have an option to turn on a table and as the user types its being updated(basically variables are being updated first then i update the ui with the variables), after the table is drawn the first time i type another letter and no problem on the second letter its repeating keypresses 3 times, it doesnt have this behaviour if i use a threading timer or a loop its the first time this has happened.
NOTE: there is no editing programmatically whatsoever with the text on the document, only adding a table so theres nothing in the code that would cause letters to be typed.
im assuming the dispatchertimer is causing a problem with the sendkeys event of office.
any ideas?
also any tips on how to debug this, i cant step through becasue the timer keeps ticking lol,
thanks