473,466 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Remote Control App

Hello!
Started a new job as a novice c# developer. My line manager has asked
our team to do a test on an application the company has already made.
Basically, he wants a small tool that can control the app, remotly.
Basically, the app needs to send a command to the app, and theapp will
open certain screens.
He mentioned the use of some sockets. The app will be in another city,
so we need to connect to it over a WAN.
I was thinking of maybe sending a command string over the WAN to the
app. Something like

%TebUsername=username%TedPassword=password%CbtnLog in%CbtnOpenaccount
%CClose%CExit

This string could then be sent to the app, and it would basically be 6
commands, separated by %. The first being "TebUsername=username"
which would mean Type (T) in ebUsername the string "username". Then
Type into ebPassword the world "password". Then Click btnLogin.

Not sure if that's clear.

If itis, would this be a method to use to try control the application
remotly?

There would be a listening socket on the app that basically handles
the commands. Maybe then put the commands into a List<Stringand then
passes that last from form to form as things happen.

Would this be a good method, and possible?

Jul 5 '07 #1
2 2179
On Wed, 04 Jul 2007 21:27:27 -0700, Cralis <ad***@myschoolmates.comwrote:
[...]
%TebUsername=username%TedPassword=password%CbtnLog in%CbtnOpenaccount
%CClose%CExit

This string could then be sent to the app, and it would basically be 6
commands, separated by %. The first being "TebUsername=username"
which would mean Type (T) in ebUsername the string "username". Then
Type into ebPassword the world "password". Then Click btnLogin.

Not sure if that's clear.

If itis, would this be a method to use to try control the application
remotly?
Sure, other than the fact that you sort of glossed over the "hard" part:
sending the string. :)

I haven't used it, but others recommend using either .NET Remoting, part
of earlier versions of .NET, or the WCF ("Windows Communication
Foundation", I think it stands for) that is part of .NET 3.0. It may be
tht using those technologies, you won't have to mess with the string at
all, and that there's some better more-abstract way to represent commands.
There would be a listening socket on the app that basically handles
the commands. Maybe then put the commands into a List<Stringand then
passes that last from form to form as things happen.
If you think sending string command is fine, then using the Socket class
is probably fine too. It's nice and simple, with only a few traps for new
users, and it's relatively easy to send strings with it. You'll have to
implement everything manually, but personally I haven't found basic
network i/o to be all that complicated to begin with. If you're not
moving complicated data structures around, you probably don't need all
that Remoting or WCF offer.
Would this be a good method, and possible?
"Good" depends on a variety of things, and mostly that's for you to
decide. Possible? Definitely yes.

Pete
Jul 5 '07 #2
Thanks Pete.

Looks like Remote objects would be the way to go, but I am now
battling to find a simple example to build from. Something like a form
with a button, that just shows a messagebox saying 'clicked' or
something. And how I can click that button remoting from another
controlling app.

Any help available on a simple example?

Jul 5 '07 #3

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

Similar topics

2
by: BadOmen | last post by:
I have just ordered a IR remote control that uses a serial port. This is the one: http://www.rbmods.com/Articles/Eksitdata/IRremote/1.php There is some program out there I can use to con troll...
0
by: James Watts | last post by:
Hi I am running 2003 server. A program that I use called Maximizer uses portals into addressbooks. The portals run on ASP.NET (I think... *.aspx) When I try to log on to the portals from a...
9
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....
12
by: Mike MacSween | last post by:
Sorry if this is a bit off topic, but I can't seem to find a 'remote control' newsgroup on my news server. And anyway I know Tony has some experience of this. The app is split FE/BE. I'd like...
3
by: Elp | last post by:
Hi, I have developped a Windows applcation (in C#) that allows, among other things, users to view and control the desktop of a remote Windows XP Pro machine. I have actually simply embedded the...
2
by: Jeff | last post by:
I have an ASP.NET web page accessing a SQL database. I've used VS to build the app and stored it in the eNPTest02 directory of my localhost on my development machine. The database is on the web. ...
5
by: felecha | last post by:
I have a VB.Net application that runs as a Windows Service and monitors a MessageQueue on another machine. At times that machine will have to be rebooted, so I've been working on how to get my...
0
by: aboutjav.com | last post by:
Hi, I need some help. I am getting this error after I complete the asp.net register control and click on the continue button. It crashed when it tries to get it calls this Profile property ...
5
by: Cirene | last post by:
I just deployed my new ASP.NET (3.5 FW) site to the hosting company I'm using, webhost4life. NOTE: I HAVE deployed other SQL Server sites to the same account with no issues. Now I'm getting...
0
by: =?Utf-8?B?dG9t?= | last post by:
Hi, I have a .net 2.0 windows client that connects to webservices. In most cases it works fine. However I have one client that gets 'Unable to connect to the remote server'. If on that client...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.