473,385 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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...

IMsRdpClientNonScriptable::SendKeys
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 1231

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

Similar topics

2
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...
2
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...
6
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...
0
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...
0
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...
0
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...
10
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...
6
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
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.