Hi, there is an application running on a remote desktop (under Citrix ICA,
but the same problem applies for RDC or PC Anywhere). Now, I want to send
keys to the remote application from a local app. I tried sending keys in VB
with SendKeys, as well as using keybd_event API, but I'm not able to send
any keys. It works very well for any local applications, but I can't pass
the keys remotely. Is there any way to do it?
Thanks!
Etienne 9 5862
Never use send keys....it's a hack at best. Only the app with focus will
get the message, which is never guaranteed.
Look under Remoting in VS.NET help
Jeff
"Etienne Charland" <mysteryx93 at hotmail> wrote in message
news:HL********************@b2b2c.ca... Hi, there is an application running on a remote desktop (under Citrix ICA, but the same problem applies for RDC or PC Anywhere). Now, I want to send keys to the remote application from a local app. I tried sending keys in
VB with SendKeys, as well as using keybd_event API, but I'm not able to send any keys. It works very well for any local applications, but I can't pass the keys remotely. Is there any way to do it?
Thanks! Etienne
What I am trying to achieve is a hack around an existing system! The remote
interface is too crappy, so I want to automate data entry with a local
application.
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message
news:ut*************@TK2MSFTNGP09.phx.gbl... Never use send keys....it's a hack at best. Only the app with focus will get the message, which is never guaranteed.
Look under Remoting in VS.NET help
Jeff "Etienne Charland" <mysteryx93 at hotmail> wrote in message news:HL********************@b2b2c.ca... Hi, there is an application running on a remote desktop (under Citrix ICA, but the same problem applies for RDC or PC Anywhere). Now, I want to send keys to the remote application from a local app. I tried sending keys in VB with SendKeys, as well as using keybd_event API, but I'm not able to send any keys. It works very well for any local applications, but I can't pass the keys remotely. Is there any way to do it?
Thanks! Etienne
Not with Send Keys! Speaking of hack
Remote interface is crappy? Is that a technical term? Perhaps you
misunderstood my suggestion...Remoting is a new feature of .NET that takes
over from NETDDE and sockets.
And you are trying to operate through PC Anywhere to control a remote app?
Jeff
"Etienne Charland" <mysteryx93 at hotmail> wrote in message
news:IN********************@b2b2c.ca... What I am trying to achieve is a hack around an existing system! The
remote interface is too crappy, so I want to automate data entry with a local application.
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message news:ut*************@TK2MSFTNGP09.phx.gbl... Never use send keys....it's a hack at best. Only the app with focus
will get the message, which is never guaranteed.
Look under Remoting in VS.NET help
Jeff "Etienne Charland" <mysteryx93 at hotmail> wrote in message news:HL********************@b2b2c.ca... Hi, there is an application running on a remote desktop (under Citrix ICA, but the same problem applies for RDC or PC Anywhere). Now, I want to
send keys to the remote application from a local app. I tried sending keys
in VB with SendKeys, as well as using keybd_event API, but I'm not able to
send any keys. It works very well for any local applications, but I can't
pass the keys remotely. Is there any way to do it?
Thanks! Etienne
Look, I haven't written the application and I'm not the administrator. It
runs remotely and I access it through Citrix ICA (which is the same thing as
RDC or PC Anywhere). I can't run any utility server-side. If I want to
automate tasks, the best I can do is to send a serie of keyboard keys.
Etienne
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message
news:eB*************@TK2MSFTNGP10.phx.gbl... Not with Send Keys! Speaking of hack
Remote interface is crappy? Is that a technical term? Perhaps you misunderstood my suggestion...Remoting is a new feature of .NET that takes over from NETDDE and sockets.
And you are trying to operate through PC Anywhere to control a remote app?
Jeff
"Etienne Charland" <mysteryx93 at hotmail> wrote in message news:IN********************@b2b2c.ca... What I am trying to achieve is a hack around an existing system! The remote interface is too crappy, so I want to automate data entry with a local application.
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message news:ut*************@TK2MSFTNGP09.phx.gbl... > Never use send keys....it's a hack at best. Only the app with focus will > get the message, which is never guaranteed. > > Look under Remoting in VS.NET help > > Jeff > "Etienne Charland" <mysteryx93 at hotmail> wrote in message > news:HL********************@b2b2c.ca... >> Hi, there is an application running on a remote desktop (under Citrix >> ICA, >> but the same problem applies for RDC or PC Anywhere). Now, I want to send >> keys to the remote application from a local app. I tried sending keys in > VB >> with SendKeys, as well as using keybd_event API, but I'm not able to send >> any keys. It works very well for any local applications, but I can't pass >> the keys remotely. Is there any way to do it? >> >> Thanks! >> Etienne >> >> > >
So you're gonna write an app that runs on your desktop, that sends keys to a
Citrix session, that passes the keys onto the remote desktop? Destined to
fail, sorry. Too many things to go wrong.
What exactly is the remote app? Is it a mainframe application by chance? So
you can't run this same application locally?
So they've given you the task of managing this remote application, but won't
let you touch the remote machine? So they've chosen an unreliable approach?
Perhaps you need to educate management? Find a new job? Just checking, and
just joking :-)
You posted here asking for answers, and we've given you some. Your choice to
listen or not.
Jeff
"Etienne Charland" <mysteryx93 at hotmail> wrote in message
news:Md********************@b2b2c.ca... Look, I haven't written the application and I'm not the administrator. It runs remotely and I access it through Citrix ICA (which is the same thing
as RDC or PC Anywhere). I can't run any utility server-side. If I want to automate tasks, the best I can do is to send a serie of keyboard keys.
Etienne
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message news:eB*************@TK2MSFTNGP10.phx.gbl... Not with Send Keys! Speaking of hack
Remote interface is crappy? Is that a technical term? Perhaps you misunderstood my suggestion...Remoting is a new feature of .NET that
takes over from NETDDE and sockets.
And you are trying to operate through PC Anywhere to control a remote
app? Jeff
"Etienne Charland" <mysteryx93 at hotmail> wrote in message news:IN********************@b2b2c.ca... What I am trying to achieve is a hack around an existing system! The remote interface is too crappy, so I want to automate data entry with a local application.
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message news:ut*************@TK2MSFTNGP09.phx.gbl... > Never use send keys....it's a hack at best. Only the app with focus will > get the message, which is never guaranteed. > > Look under Remoting in VS.NET help > > Jeff > "Etienne Charland" <mysteryx93 at hotmail> wrote in message > news:HL********************@b2b2c.ca... >> Hi, there is an application running on a remote desktop (under
Citrix >> ICA, >> but the same problem applies for RDC or PC Anywhere). Now, I want to send >> keys to the remote application from a local app. I tried sending
keys in > VB >> with SendKeys, as well as using keybd_event API, but I'm not able to send >> any keys. It works very well for any local applications, but I can't pass >> the keys remotely. Is there any way to do it? >> >> Thanks! >> Etienne >> >> > >
I am not paid to develop the system; I am paid to use it. I just want to use
it more efficiently. And I must to do without having admin access to the
server in any way. Although I am very limited in the solutions, there is
something I can do: send keys to fill fields with the right data. I can't
get this to work for an unknown reason and I don't see any other way to
communicate with the software.
Etienne
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message
news:e2**************@TK2MSFTNGP11.phx.gbl... So you're gonna write an app that runs on your desktop, that sends keys to a Citrix session, that passes the keys onto the remote desktop? Destined to fail, sorry. Too many things to go wrong.
What exactly is the remote app? Is it a mainframe application by chance? So you can't run this same application locally?
So they've given you the task of managing this remote application, but won't let you touch the remote machine? So they've chosen an unreliable approach? Perhaps you need to educate management? Find a new job? Just checking, and just joking :-)
You posted here asking for answers, and we've given you some. Your choice to listen or not.
Jeff
"Etienne Charland" <mysteryx93 at hotmail> wrote in message news:Md********************@b2b2c.ca... Look, I haven't written the application and I'm not the administrator. It runs remotely and I access it through Citrix ICA (which is the same thing as RDC or PC Anywhere). I can't run any utility server-side. If I want to automate tasks, the best I can do is to send a serie of keyboard keys.
Etienne
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message news:eB*************@TK2MSFTNGP10.phx.gbl... > Not with Send Keys! Speaking of hack > > Remote interface is crappy? Is that a technical term? Perhaps you > misunderstood my suggestion...Remoting is a new feature of .NET that takes > over from NETDDE and sockets. > > And you are trying to operate through PC Anywhere to control a remote app? > > Jeff > > "Etienne Charland" <mysteryx93 at hotmail> wrote in message > news:IN********************@b2b2c.ca... >> What I am trying to achieve is a hack around an existing system! The > remote >> interface is too crappy, so I want to automate data entry with a local >> application. >> >> "Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message >> news:ut*************@TK2MSFTNGP09.phx.gbl... >> > Never use send keys....it's a hack at best. Only the app with focus > will >> > get the message, which is never guaranteed. >> > >> > Look under Remoting in VS.NET help >> > >> > Jeff >> > "Etienne Charland" <mysteryx93 at hotmail> wrote in message >> > news:HL********************@b2b2c.ca... >> >> Hi, there is an application running on a remote desktop (under Citrix >> >> ICA, >> >> but the same problem applies for RDC or PC Anywhere). Now, I want >> >> to > send >> >> keys to the remote application from a local app. I tried sending keys > in >> > VB >> >> with SendKeys, as well as using keybd_event API, but I'm not able >> >> to > send >> >> any keys. It works very well for any local applications, but I >> >> can't > pass >> >> the keys remotely. Is there any way to do it? >> >> >> >> Thanks! >> >> Etienne >> >> >> >> >> > >> > >> >> > >
So you are sending keys to the Citrix window??
Please define "can't get this to work". How are you obtaining the window
handle to send keys to? Do you get an error?
jeff
"Etienne Charland" <mysteryx93 at hotmail> wrote in message
news:9q********************@b2b2c.ca... I am not paid to develop the system; I am paid to use it. I just want to
use it more efficiently. And I must to do without having admin access to the server in any way. Although I am very limited in the solutions, there is something I can do: send keys to fill fields with the right data. I can't get this to work for an unknown reason and I don't see any other way to communicate with the software.
Etienne
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message news:e2**************@TK2MSFTNGP11.phx.gbl... So you're gonna write an app that runs on your desktop, that sends keys
to a Citrix session, that passes the keys onto the remote desktop? Destined
to fail, sorry. Too many things to go wrong.
What exactly is the remote app? Is it a mainframe application by
chance? So you can't run this same application locally?
So they've given you the task of managing this remote application, but won't let you touch the remote machine? So they've chosen an unreliable approach? Perhaps you need to educate management? Find a new job? Just checking, and just joking :-)
You posted here asking for answers, and we've given you some. Your
choice to listen or not.
Jeff
"Etienne Charland" <mysteryx93 at hotmail> wrote in message news:Md********************@b2b2c.ca... Look, I haven't written the application and I'm not the administrator.
It runs remotely and I access it through Citrix ICA (which is the same
thing as RDC or PC Anywhere). I can't run any utility server-side. If I want to automate tasks, the best I can do is to send a serie of keyboard keys.
Etienne
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message news:eB*************@TK2MSFTNGP10.phx.gbl... > Not with Send Keys! Speaking of hack > > Remote interface is crappy? Is that a technical term? Perhaps you > misunderstood my suggestion...Remoting is a new feature of .NET that takes > over from NETDDE and sockets. > > And you are trying to operate through PC Anywhere to control a remote app? > > Jeff > > "Etienne Charland" <mysteryx93 at hotmail> wrote in message > news:IN********************@b2b2c.ca... >> What I am trying to achieve is a hack around an existing system! The > remote >> interface is too crappy, so I want to automate data entry with a
local >> application. >> >> "Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message >> news:ut*************@TK2MSFTNGP09.phx.gbl... >> > Never use send keys....it's a hack at best. Only the app with
focus > will >> > get the message, which is never guaranteed. >> > >> > Look under Remoting in VS.NET help >> > >> > Jeff >> > "Etienne Charland" <mysteryx93 at hotmail> wrote in message >> > news:HL********************@b2b2c.ca... >> >> Hi, there is an application running on a remote desktop (under Citrix >> >> ICA, >> >> but the same problem applies for RDC or PC Anywhere). Now, I want >> >> to > send >> >> keys to the remote application from a local app. I tried sending keys > in >> > VB >> >> with SendKeys, as well as using keybd_event API, but I'm not able >> >> to > send >> >> any keys. It works very well for any local applications, but I >> >> can't > pass >> >> the keys remotely. Is there any way to do it? >> >> >> >> Thanks! >> >> Etienne >> >> >> >> >> > >> > >> >> > >
I use FindWindow and BringWindowToTop APIs to activate the window. Then, I
send keys as if the user was typing something. It it working for any local
application, but it doesn't work on Remote Desktop. There is no error; the
keys are just not passed. However, in some circonstances something happens
on the Remote Desktop. For example, I send 2 tabs, the first tab closes the
window (and an error is then displayed). The 2nd tab closes that error
message. That makes no sense lol. The only action I've been able to do is
canceling (sometimes). I don't know why.
Etienne
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message
news:eS***************@TK2MSFTNGP11.phx.gbl... So you are sending keys to the Citrix window??
Please define "can't get this to work". How are you obtaining the window handle to send keys to? Do you get an error?
jeff "Etienne Charland" <mysteryx93 at hotmail> wrote in message news:9q********************@b2b2c.ca... I am not paid to develop the system; I am paid to use it. I just want to use it more efficiently. And I must to do without having admin access to the server in any way. Although I am very limited in the solutions, there is something I can do: send keys to fill fields with the right data. I can't get this to work for an unknown reason and I don't see any other way to communicate with the software.
Etienne
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message news:e2**************@TK2MSFTNGP11.phx.gbl... > So you're gonna write an app that runs on your desktop, that sends keys to > a > Citrix session, that passes the keys onto the remote desktop? Destined to > fail, sorry. Too many things to go wrong. > > What exactly is the remote app? Is it a mainframe application by chance? > So > you can't run this same application locally? > > So they've given you the task of managing this remote application, but > won't > let you touch the remote machine? So they've chosen an unreliable > approach? > Perhaps you need to educate management? Find a new job? Just > checking, > and > just joking :-) > > You posted here asking for answers, and we've given you some. Your choice > to > listen or not. > > Jeff > > "Etienne Charland" <mysteryx93 at hotmail> wrote in message > news:Md********************@b2b2c.ca... >> Look, I haven't written the application and I'm not the administrator. It >> runs remotely and I access it through Citrix ICA (which is the same thing > as >> RDC or PC Anywhere). I can't run any utility server-side. If I want to >> automate tasks, the best I can do is to send a serie of keyboard keys. >> >> Etienne >> >> "Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message >> news:eB*************@TK2MSFTNGP10.phx.gbl... >> > Not with Send Keys! Speaking of hack >> > >> > Remote interface is crappy? Is that a technical term? Perhaps you >> > misunderstood my suggestion...Remoting is a new feature of .NET that > takes >> > over from NETDDE and sockets. >> > >> > And you are trying to operate through PC Anywhere to control a >> > remote > app? >> > >> > Jeff >> > >> > "Etienne Charland" <mysteryx93 at hotmail> wrote in message >> > news:IN********************@b2b2c.ca... >> >> What I am trying to achieve is a hack around an existing system! >> >> The >> > remote >> >> interface is too crappy, so I want to automate data entry with a local >> >> application. >> >> >> >> "Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message >> >> news:ut*************@TK2MSFTNGP09.phx.gbl... >> >> > Never use send keys....it's a hack at best. Only the app with focus >> > will >> >> > get the message, which is never guaranteed. >> >> > >> >> > Look under Remoting in VS.NET help >> >> > >> >> > Jeff >> >> > "Etienne Charland" <mysteryx93 at hotmail> wrote in message >> >> > news:HL********************@b2b2c.ca... >> >> >> Hi, there is an application running on a remote desktop (under > Citrix >> >> >> ICA, >> >> >> but the same problem applies for RDC or PC Anywhere). Now, I >> >> >> want >> >> >> to >> > send >> >> >> keys to the remote application from a local app. I tried sending > keys >> > in >> >> > VB >> >> >> with SendKeys, as well as using keybd_event API, but I'm not >> >> >> able >> >> >> to >> > send >> >> >> any keys. It works very well for any local applications, but I >> >> >> can't >> > pass >> >> >> the keys remotely. Is there any way to do it? >> >> >> >> >> >> Thanks! >> >> >> Etienne >> >> >> >> >> >> >> >> > >> >> > >> >> >> >> >> > >> > >> >> > >
So it took 4 responses to answer my original question?
You've successfully then brought the Citrix window to focus. But then, what
has the focus in the remote window? Can you be guaranteed to have your
remote app be the focus in the session window? FindWindow used again
doesn't work inside a terminal session.
You need to rethink the architecture, in my opinion. Be nice, and I (we) can
help.
So you are paid to USE a system? Do they pay you by the hour? Does the
app log you in, and keep track of your time? Define "system"
Do you want this to work? (that is a simple yes/no question). Often
accepting answers requires a paradigm shift.
There is something definitely missing here.
Jeff
"Etienne Charland" <mysteryx93 at hotmail> wrote in message
news:j-********************@b2b2c.ca... I use FindWindow and BringWindowToTop APIs to activate the window. Then, I send keys as if the user was typing something. It it working for any local application, but it doesn't work on Remote Desktop. There is no error; the keys are just not passed. However, in some circonstances something happens on the Remote Desktop. For example, I send 2 tabs, the first tab closes
the window (and an error is then displayed). The 2nd tab closes that error message. That makes no sense lol. The only action I've been able to do is canceling (sometimes). I don't know why.
Etienne
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message news:eS***************@TK2MSFTNGP11.phx.gbl... So you are sending keys to the Citrix window??
Please define "can't get this to work". How are you obtaining the window handle to send keys to? Do you get an error?
jeff "Etienne Charland" <mysteryx93 at hotmail> wrote in message news:9q********************@b2b2c.ca... I am not paid to develop the system; I am paid to use it. I just want
to use it more efficiently. And I must to do without having admin access to
the server in any way. Although I am very limited in the solutions, there
is something I can do: send keys to fill fields with the right data. I
can't get this to work for an unknown reason and I don't see any other way to communicate with the software.
Etienne
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message news:e2**************@TK2MSFTNGP11.phx.gbl... > So you're gonna write an app that runs on your desktop, that sends
keys to > a > Citrix session, that passes the keys onto the remote desktop?
Destined to > fail, sorry. Too many things to go wrong. > > What exactly is the remote app? Is it a mainframe application by chance? > So > you can't run this same application locally? > > So they've given you the task of managing this remote application,
but > won't > let you touch the remote machine? So they've chosen an unreliable > approach? > Perhaps you need to educate management? Find a new job? Just > checking, > and > just joking :-) > > You posted here asking for answers, and we've given you some. Your choice > to > listen or not. > > Jeff > > "Etienne Charland" <mysteryx93 at hotmail> wrote in message > news:Md********************@b2b2c.ca... >> Look, I haven't written the application and I'm not the
administrator. It >> runs remotely and I access it through Citrix ICA (which is the same thing > as >> RDC or PC Anywhere). I can't run any utility server-side. If I want
to >> automate tasks, the best I can do is to send a serie of keyboard
keys. >> >> Etienne >> >> "Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message >> news:eB*************@TK2MSFTNGP10.phx.gbl... >> > Not with Send Keys! Speaking of hack >> > >> > Remote interface is crappy? Is that a technical term? Perhaps you >> > misunderstood my suggestion...Remoting is a new feature of .NET
that > takes >> > over from NETDDE and sockets. >> > >> > And you are trying to operate through PC Anywhere to control a >> > remote > app? >> > >> > Jeff >> > >> > "Etienne Charland" <mysteryx93 at hotmail> wrote in message >> > news:IN********************@b2b2c.ca... >> >> What I am trying to achieve is a hack around an existing system! >> >> The >> > remote >> >> interface is too crappy, so I want to automate data entry with a local >> >> application. >> >> >> >> "Jeff Dillon" <je**@removeemergencyreporting.com> wrote in
message >> >> news:ut*************@TK2MSFTNGP09.phx.gbl... >> >> > Never use send keys....it's a hack at best. Only the app with focus >> > will >> >> > get the message, which is never guaranteed. >> >> > >> >> > Look under Remoting in VS.NET help >> >> > >> >> > Jeff >> >> > "Etienne Charland" <mysteryx93 at hotmail> wrote in message >> >> > news:HL********************@b2b2c.ca... >> >> >> Hi, there is an application running on a remote desktop (under > Citrix >> >> >> ICA, >> >> >> but the same problem applies for RDC or PC Anywhere). Now, I >> >> >> want >> >> >> to >> > send >> >> >> keys to the remote application from a local app. I tried
sending > keys >> > in >> >> > VB >> >> >> with SendKeys, as well as using keybd_event API, but I'm not >> >> >> able >> >> >> to >> > send >> >> >> any keys. It works very well for any local applications, but I >> >> >> can't >> > pass >> >> >> the keys remotely. Is there any way to do it? >> >> >> >> >> >> Thanks! >> >> >> Etienne >> >> >> >> >> >> >> >> > >> >> > >> >> >> >> >> > >> > >> >> > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Etienne Charland |
last post by:
Hi, there is an application running on a remote desktop (under Citrix ICA,
but the same problem applies for RDC or PC Anywhere). Now, I want to send
keys to the remote application from a local app....
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |