Click here to Skip to main content
15,846,004 members
Home / Discussions / C#
   

C#

 
AnswerRe: Peak Search Algorithm with sliding window and peak excursion Pin
Gerry Schmitz1-Feb-18 11:25
mveGerry Schmitz1-Feb-18 11:25 
GeneralRe: Peak Search Algorithm with sliding window and peak excursion Pin
Krellon1-Feb-18 13:17
Krellon1-Feb-18 13:17 
GeneralRe: Peak Search Algorithm with sliding window and peak excursion Pin
Gerry Schmitz1-Feb-18 13:46
mveGerry Schmitz1-Feb-18 13:46 
GeneralRe: Peak Search Algorithm with sliding window and peak excursion Pin
Eddy Vluggen1-Feb-18 15:36
professionalEddy Vluggen1-Feb-18 15:36 
QuestionHow do I make a program that reacts to a specific word entered on the keyboard? Pin
Member 1365479431-Jan-18 16:11
Member 1365479431-Jan-18 16:11 
AnswerRe: How do I make a program that reacts to a specific word entered on the keyboard? Pin
Dave Kreskowiak31-Jan-18 17:11
mveDave Kreskowiak31-Jan-18 17:11 
GeneralRe: How do I make a program that reacts to a specific word entered on the keyboard? Pin
Member 1365479431-Jan-18 18:04
Member 1365479431-Jan-18 18:04 
AnswerRe: How do I make a program that reacts to a specific word entered on the keyboard? Pin
BillWoodruff31-Jan-18 20:54
professionalBillWoodruff31-Jan-18 20:54 
Big picture: if you are "New to coding," I think pursuing something this complex ... inter-op with Word ... is not a good strategy to maximize what you learn. Why not take one of the many extended Rich TextBoxes for WinForms, and use that for your editing control ?

To tango with Word, you need to research, and learn to use, inter-operation between MS Word and C#. Lots of resources on this: search here, and on the net [^]

Then, you need to determine what are the possibilities for intercepting Key Events in MS Word from C#: can you install/hook your own KeyDown handler from C# into the running instance of MS Word ? , [^], For all I know, this may require writing a Word add-in.

If you get that far, then you have to implement your own equivalent to an auto-completion facility: that's not hard: if you ask a specific question on that, I will respond with code.

If you can't get MS Word key events in C# as described above: then you are going to need some form of hook, as Dave K. mentions.

If you do get a hook working, then every keystroke in Word is going to require a call though the hook to your code: I suspect that will have a real impact on performance, depending on your hardware, memory, etc.
«... thank the gods that they have made you superior to those events which they have not placed within your own control, rendered you accountable for that only which is within you own control For what, then, have they made you responsible? For that which is alone in your own power—a right use of things as they appear.» Discourses of Epictetus Book I:12

GeneralRe: How do I make a program that reacts to a specific word entered on the keyboard? Pin
Member 136547942-Feb-18 11:25
Member 136547942-Feb-18 11:25 
AnswerRe: How do I make a program that reacts to a specific word entered on the keyboard? Pin
OriginalGriff31-Jan-18 22:02
mveOriginalGriff31-Jan-18 22:02 
AnswerRe: How do I make a program that reacts to a specific word entered on the keyboard? Pin
Gerry Schmitz1-Feb-18 8:53
mveGerry Schmitz1-Feb-18 8:53 
QuestionIs it possible to make a class whose objects are castable into ints? Pin
arnold_w31-Jan-18 11:33
arnold_w31-Jan-18 11:33 
AnswerRe: Is it possible to make a class whose objects are castable into ints? Pin
Dave Kreskowiak31-Jan-18 12:24
mveDave Kreskowiak31-Jan-18 12:24 
GeneralRe: Is it possible to make a class whose objects are castable into ints? Pin
arnold_w6-Feb-18 1:25
arnold_w6-Feb-18 1:25 
QuestionRe: Is it possible to make a class whose objects are castable into ints? Pin
Eddy Vluggen31-Jan-18 14:15
professionalEddy Vluggen31-Jan-18 14:15 
AnswerRe: Is it possible to make a class whose objects are castable into ints? Pin
BillWoodruff5-Feb-18 19:51
professionalBillWoodruff5-Feb-18 19:51 
GeneralRe: Is it possible to make a class whose objects are castable into ints? Pin
arnold_w6-Feb-18 1:34
arnold_w6-Feb-18 1:34 
Questionautomatic start, Pin
Member 1363217131-Jan-18 4:55
Member 1363217131-Jan-18 4:55 
AnswerRe: automatic start, Pin
OriginalGriff31-Jan-18 5:13
mveOriginalGriff31-Jan-18 5:13 
GeneralRe: automatic start, Pin
Member 1363217131-Jan-18 6:00
Member 1363217131-Jan-18 6:00 
GeneralRe: automatic start, Pin
OriginalGriff31-Jan-18 6:39
mveOriginalGriff31-Jan-18 6:39 
AnswerRe: automatic start, Pin
Richard MacCutchan31-Jan-18 7:08
mveRichard MacCutchan31-Jan-18 7:08 
AnswerRe: automatic start, Pin
Eddy Vluggen31-Jan-18 14:16
professionalEddy Vluggen31-Jan-18 14:16 
Questiontime task scheduler class Pin
Member 1363217131-Jan-18 3:46
Member 1363217131-Jan-18 3:46 
AnswerRe: time task scheduler class Pin
OriginalGriff31-Jan-18 3:53
mveOriginalGriff31-Jan-18 3:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.