Progammatically pressing underscore,$,% etc keys
-
************Programming Challenge********************** Hi All Again I have spent more than five hours but still fighting. I just want to type underscore in my windows textbox.I am able to type characters, Hit enter key etc etc but do not yet found how to print underscore and other special characters like @,$,%,^ I have tried following code .Discovered new things but still trying to find the solution SendKeys.SendWait(Keys.Decimal.ToString()); SendKeys.SendWait(Keys.S.ToString()); SendKeys.SendWait(Keys.A.ToString()); SendKeys.SendWait(Keys.N.ToString()); SendKeys.SendWait(Keys.D.ToString()); SendKeys.SendWait(Keys.E.ToString()); SendKeys.SendWait(Keys.Oem1.ToString()); SendKeys.SendWait(Keys.Oem102.ToString()); SendKeys.SendWait(Keys.Oem2.ToString()); SendKeys.SendWait(Keys.Oem3.ToString()); SendKeys.SendWait(Keys.Oem4.ToString()); SendKeys.SendWait(Keys.Oem5.ToString()); SendKeys.SendWait(Keys.Oem6.ToString()); // with this type of code getting Oem6 in // textbox but i wanted 6. SendKeys.SendWait(Keys.Oem7.ToString()); SendKeys.SendWait(Keys.Oem8.ToString()); SendKeys.SendWait(Keys.OemClear.ToString()); SendKeys.SendWait(Keys.OemBackslash.ToString()); SendKeys.SendWait(Keys.OemCloseBrackets.ToString()); SendKeys.SendWait(Keys.Oemcomma.ToString()); SendKeys.SendWait(Keys.OemMinus.ToString()); SendKeys.SendWait(Keys.OemOpenBrackets.ToString()); //with this code getting OemOpenBrackets in textbox but desired was (. SendKeys.SendWait(Keys.OemPeriod.ToString()); SendKeys.SendWait(Keys.OemPipe.ToString()); SendKeys.SendWait(Keys.Oemplus.ToString()); SendKeys.SendWait(Keys.OemQuestion.ToString()); SendKeys.SendWait(Keys.OemQuotes.ToString()); SendKeys.SendWait(Keys.OemSemicolon.ToString()); SendKeys.SendWait(Keys.Oemtilde.ToString()); SendKeys.SendWait("{OemSemicolon}"); //givin error SendKeys.SendWait(Keys.KeyCode== 106); //giving error SendKeys.SendWait(Keys.E.ToString());
-
************Programming Challenge********************** Hi All Again I have spent more than five hours but still fighting. I just want to type underscore in my windows textbox.I am able to type characters, Hit enter key etc etc but do not yet found how to print underscore and other special characters like @,$,%,^ I have tried following code .Discovered new things but still trying to find the solution SendKeys.SendWait(Keys.Decimal.ToString()); SendKeys.SendWait(Keys.S.ToString()); SendKeys.SendWait(Keys.A.ToString()); SendKeys.SendWait(Keys.N.ToString()); SendKeys.SendWait(Keys.D.ToString()); SendKeys.SendWait(Keys.E.ToString()); SendKeys.SendWait(Keys.Oem1.ToString()); SendKeys.SendWait(Keys.Oem102.ToString()); SendKeys.SendWait(Keys.Oem2.ToString()); SendKeys.SendWait(Keys.Oem3.ToString()); SendKeys.SendWait(Keys.Oem4.ToString()); SendKeys.SendWait(Keys.Oem5.ToString()); SendKeys.SendWait(Keys.Oem6.ToString()); // with this type of code getting Oem6 in // textbox but i wanted 6. SendKeys.SendWait(Keys.Oem7.ToString()); SendKeys.SendWait(Keys.Oem8.ToString()); SendKeys.SendWait(Keys.OemClear.ToString()); SendKeys.SendWait(Keys.OemBackslash.ToString()); SendKeys.SendWait(Keys.OemCloseBrackets.ToString()); SendKeys.SendWait(Keys.Oemcomma.ToString()); SendKeys.SendWait(Keys.OemMinus.ToString()); SendKeys.SendWait(Keys.OemOpenBrackets.ToString()); //with this code getting OemOpenBrackets in textbox but desired was (. SendKeys.SendWait(Keys.OemPeriod.ToString()); SendKeys.SendWait(Keys.OemPipe.ToString()); SendKeys.SendWait(Keys.Oemplus.ToString()); SendKeys.SendWait(Keys.OemQuestion.ToString()); SendKeys.SendWait(Keys.OemQuotes.ToString()); SendKeys.SendWait(Keys.OemSemicolon.ToString()); SendKeys.SendWait(Keys.Oemtilde.ToString()); SendKeys.SendWait("{OemSemicolon}"); //givin error SendKeys.SendWait(Keys.KeyCode== 106); //giving error SendKeys.SendWait(Keys.E.ToString());
Hi All Finally got it on below link http://msdn.microsoft.com/en-us/library/8c6yea83(VS.85).aspx The correct way is SendKeys.SendWait("{+}"); //for typing plus SendKeys.SendWait("{_}"); //for typing underscore For this spent more than five hours ... great THE SK I am the ONE
-
************Programming Challenge********************** Hi All Again I have spent more than five hours but still fighting. I just want to type underscore in my windows textbox.I am able to type characters, Hit enter key etc etc but do not yet found how to print underscore and other special characters like @,$,%,^ I have tried following code .Discovered new things but still trying to find the solution SendKeys.SendWait(Keys.Decimal.ToString()); SendKeys.SendWait(Keys.S.ToString()); SendKeys.SendWait(Keys.A.ToString()); SendKeys.SendWait(Keys.N.ToString()); SendKeys.SendWait(Keys.D.ToString()); SendKeys.SendWait(Keys.E.ToString()); SendKeys.SendWait(Keys.Oem1.ToString()); SendKeys.SendWait(Keys.Oem102.ToString()); SendKeys.SendWait(Keys.Oem2.ToString()); SendKeys.SendWait(Keys.Oem3.ToString()); SendKeys.SendWait(Keys.Oem4.ToString()); SendKeys.SendWait(Keys.Oem5.ToString()); SendKeys.SendWait(Keys.Oem6.ToString()); // with this type of code getting Oem6 in // textbox but i wanted 6. SendKeys.SendWait(Keys.Oem7.ToString()); SendKeys.SendWait(Keys.Oem8.ToString()); SendKeys.SendWait(Keys.OemClear.ToString()); SendKeys.SendWait(Keys.OemBackslash.ToString()); SendKeys.SendWait(Keys.OemCloseBrackets.ToString()); SendKeys.SendWait(Keys.Oemcomma.ToString()); SendKeys.SendWait(Keys.OemMinus.ToString()); SendKeys.SendWait(Keys.OemOpenBrackets.ToString()); //with this code getting OemOpenBrackets in textbox but desired was (. SendKeys.SendWait(Keys.OemPeriod.ToString()); SendKeys.SendWait(Keys.OemPipe.ToString()); SendKeys.SendWait(Keys.Oemplus.ToString()); SendKeys.SendWait(Keys.OemQuestion.ToString()); SendKeys.SendWait(Keys.OemQuotes.ToString()); SendKeys.SendWait(Keys.OemSemicolon.ToString()); SendKeys.SendWait(Keys.Oemtilde.ToString()); SendKeys.SendWait("{OemSemicolon}"); //givin error SendKeys.SendWait(Keys.KeyCode== 106); //giving error SendKeys.SendWait(Keys.E.ToString());
-
Sandeep Kalra wrote:
I just want to type underscore in my windows textbox.
Try using Fire_Fox. See it works I just_did_it. Oh wow, I did it again _ and again! Only took me like 5_seconds!
led mike
Hey led mike U have used Fire_Fox.I think u should use Fire_Lion now.It will take 50 years to you :laugh:
-
Sandeep Kalra wrote:
I just want to type underscore in my windows textbox.
Try using Fire_Fox. See it works I just_did_it. Oh wow, I did it again _ and again! Only took me like 5_seconds!
led mike
Programattically... Using C#...
-
************Programming Challenge********************** Hi All Again I have spent more than five hours but still fighting. I just want to type underscore in my windows textbox.I am able to type characters, Hit enter key etc etc but do not yet found how to print underscore and other special characters like @,$,%,^ I have tried following code .Discovered new things but still trying to find the solution SendKeys.SendWait(Keys.Decimal.ToString()); SendKeys.SendWait(Keys.S.ToString()); SendKeys.SendWait(Keys.A.ToString()); SendKeys.SendWait(Keys.N.ToString()); SendKeys.SendWait(Keys.D.ToString()); SendKeys.SendWait(Keys.E.ToString()); SendKeys.SendWait(Keys.Oem1.ToString()); SendKeys.SendWait(Keys.Oem102.ToString()); SendKeys.SendWait(Keys.Oem2.ToString()); SendKeys.SendWait(Keys.Oem3.ToString()); SendKeys.SendWait(Keys.Oem4.ToString()); SendKeys.SendWait(Keys.Oem5.ToString()); SendKeys.SendWait(Keys.Oem6.ToString()); // with this type of code getting Oem6 in // textbox but i wanted 6. SendKeys.SendWait(Keys.Oem7.ToString()); SendKeys.SendWait(Keys.Oem8.ToString()); SendKeys.SendWait(Keys.OemClear.ToString()); SendKeys.SendWait(Keys.OemBackslash.ToString()); SendKeys.SendWait(Keys.OemCloseBrackets.ToString()); SendKeys.SendWait(Keys.Oemcomma.ToString()); SendKeys.SendWait(Keys.OemMinus.ToString()); SendKeys.SendWait(Keys.OemOpenBrackets.ToString()); //with this code getting OemOpenBrackets in textbox but desired was (. SendKeys.SendWait(Keys.OemPeriod.ToString()); SendKeys.SendWait(Keys.OemPipe.ToString()); SendKeys.SendWait(Keys.Oemplus.ToString()); SendKeys.SendWait(Keys.OemQuestion.ToString()); SendKeys.SendWait(Keys.OemQuotes.ToString()); SendKeys.SendWait(Keys.OemSemicolon.ToString()); SendKeys.SendWait(Keys.Oemtilde.ToString()); SendKeys.SendWait("{OemSemicolon}"); //givin error SendKeys.SendWait(Keys.KeyCode== 106); //giving error SendKeys.SendWait(Keys.E.ToString());
You can't just append the character to the text? :confused: