473,546 Members | 2,239 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Terminal Server ActiveX Control

I am trying to send a string of data to a remote Terminal Server session via
the ActiveX client. I can start the session login or logout okay but I
can't send data very well. I can send any data that is a "single key
stroke" meaning that if I send the letter "A" or the letter "a", I always
get "a". I don't understand how to send the shift keys or control keys. Is
this the correct interface? I would like to use this interface because it
does not get user input mixed in with it's key strokes. If I send...

"@#$", I get "234". So, what is the proper way to use this interface to
send mixed case data...

Here is information on the interface I am trying to use...

IMsRdpClientNon Scriptable::Sen dKeys
Sends a series of keystrokes to the Remote Desktop ActiveX control. The
keystrokes are in scan code form, which is the keyboard data from the actual
physical keys. This interface was added for Windows XP.

HRESULT SendKeys(
LONG numKeys,
VARIANT_BOOL* pbArrayKeyUp,
LONG* plKeyData
);
Parameters
numKeys
[in] The number of keystrokes to send. The maximum number of keys that can
be sent in one operation is 20. The method returns E_INVALIDARG if this
parameter is greater than 20. For more information, see the following
Remarks section.
pbArrayKeyUp
[in] An array whose size is equal to numKeys. An element is TRUE if the
corresponding key is UP and FALSE if the corresponding key is DOWN.
plKeyData
[in] An array whose size is equal to numKeys. The array contains keystroke
data and corresponds to the value of the lParam parameter of the WM_KEYDOWN
message. The data specifies the repeat count, scan code, extended-key flag,
context code, previous key-state flag, and transition-state flag. For a
description of the bits in this array, see WM_KEYDOWN.
The corresponding element in pbArrayKeyUp indicates if the key is UP or
DOWN.

Return Values
Return S_OK if successful.

Return a nonzero error code if an error occurs.

Remarks
The SendKeys method does not mix keystrokes made by the local user with
keystrokes that the method is sending. All keystrokes passed to the method
are sent to the remote session in a single atomic sequence.

For requirements information, see Requirements for Remote Desktop Web
Connection.
See Also

Nov 20 '05 #1
0 1239

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1736
by: quotto | last post by:
I have written a web server application using ASP.Net that handles requests from an HTTP client. I wrote a small test client in VB6 using the MSINet ActiveX control, to load test the server. The client makes repeated requests of the server and keeps track of the number per second it is able to get processed. When I run both the client and server...
2
2169
by: Wayne Gillespie | last post by:
I have an app currently in service which runs using the Access97 runtime. Each user has the runtimes installed on their local PC and the db links to common datafiles on the server. I have now been asked to expand this to allow use of the db by users off site via Terminal Server. Is it possible to install the Access 97 runtime on Terminal...
6
1335
by: trinitypete | last post by:
Hi All, Here is what I would like to do, any advice would be greatly appreciated. I have a forms authenticated web page that accepts user credentials, these credentials are then looked up in a SQL DB, from these credentials we can tell if the the user is an employee or customer. If the user is a customer they are redirected to an...
0
2005
by: MS Newsgroups | last post by:
Hi, I would like to create a "Remote Desktop" session from a Windows forms application. I found the control "Microsoft RDPclient (redist)" under the COM components tab and have added the control to the Toolbox. When dragging this control to a form i get the message "Compiler errors occured when generating a Windows forms wrapper for ActiveX...
0
1207
by: Brian Young | last post by:
My department is responsible for creating custom internal applications for many of our departments. Our strategy has always been to develop our applications as ActiveX controls (VB6) that get hosted in Internet Explorer. I've been tasked with coming up with a strategy for our migration to using VB.Net. So far, I've experienced a number of...
0
1267
by: swong4 | last post by:
Hi all, I am trying to use an ActiveX control on the server-side of an ASP.NET 2.0 application written in C#. The ActiveX control is a 3rd-party interface to a data feed used by my application and does not have a GUI. To accomplish this, I am trying to create a Windows.Form to host the ActiveX control with the intent that the events...
10
32187
by: Marcin Zmyslowski | last post by:
Hello all! I have a database created in MS Access 2003 which works fine in Win2000. This database shows me the following message in WinXP: "The expression On Load you entered as the event property setting produced the following error: A problem occured while Microsoft Access was communicating with the Ole server or ActiveX Control" I...
6
1804
by: Smokey Grindle | last post by:
is there any way to detect if yoru app is runnign on a terminal server in ..net? so we can slim down graphics and such for it? thanks!
0
1922
by: shehzadmajeed | last post by:
I am a Point of Sale Terminal Programmer/Developer and currently assigned to develop a VTI Simulator (Virtual Terminal Interface) than can exchange messages as per Specification through RS232-COM Port. Using VB MSCOMM ActiveX control, I am managed to receive Data from POS Terminal but when i try to send data (Less than 100 Bytes) to POS...
0
7504
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7694
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7461
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6026
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3491
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3470
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1921
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1046
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
747
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.