Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using terminal control on csharp

Status
Not open for further replies.

luisve

Programmer
Jun 24, 2005
29
US
hi i am triying to use the terminal control on csharp, i dont want to create an odject just use the active x control, my question is i can send any key to the session using session.screen.sendkeys("hi",1) my question is can i use this to send keys like enter? i have been usin send.sendkeys after i get the focus bu i have not been able to send the BREAK key, can some one help me?
 
Sendkeys should be able to send all keys assuming you can keep the timing synched.

VBA shows that sendkyes "{BREAK}",1 should work.

calculus
 
i try:
System.Windows.Forms.SendKeys.SendWait("{BREAK}")

and

terminal1.Session.Screen.SendKeys ("{break}",1)

the second one just writtes {break} and the first one appear to be sending a key but it does not have the same effect on the session as if a manually press BREAK.

any help??
 
By default EXTRA! sends the CLEAR aid key when the Break button is pressed.

Try System.Windows.Forms.SendKeys.SendWait("{CLEAR}")
 
i try System.Windows.Forms.SendKeys.SendWait("{CLEAR}") but does not work, i use the same statment to send the enter key, and other keys and always work but for some reason in does not work for the pause/break key, any other sugestion?, by the way i am using the attachmate terminal control in visual.net and c#
 
to what application are you sending the break key?

What is the break key mapped to in that application?
 
i am sending the keys to ATTACHMATE TERMINAL CONTROL, is not an application it is a control, and the key is mapped as CLEAR in the original app, i try to send the clear but doesnt(using sendkeys.send("{clear}") work also i would like to use terminal1.screen.session.sendkeys to send "special" keys like enter but it always send only like letters, any clue??
 
That only work whe you are using the session as an odject, but i am triying to use attachmate terminal control active x.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top