Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #149

Re: Script or software to run a GUI based application

Newsgroups comp.lang.basic.visual.misc
Subject Re: Script or software to run a GUI based application
From DanS <t.h.i.s.n.t.h.a.t@r.o.a.d.r.u.n.n.e.r.c.o.m>
References <8ccd82cf-1753-4013-aab5-3c548b396e5c@j13g2000pro.googlegroups.com>
Organization Disorganized
Message-ID <Xns9EE849C04A5EFthisnthatroadrunnern@216.196.97.131> (permalink)
Date 2011-05-17 06:14 -0500

Show all headers | View raw


Stefan Mueller <seekware@yahoo.com> wrote in
news:8ccd82cf-1753-4013-aab5-3c548b396e5c@j13g2000pro.googlegr
oups.com: 

> On my server a GUI based application is installed. If I
> start this application I can enter the name of a city and
> as result I get many information (GPS coordinates,
> population, ...). My goal is to write a script or software
> which extracts all information about a particular city. My
> current VB code opens the GUI base application (VB command:
> Shell), enters the name of the particular city (VB command:
> keybd_event), presses Enter and copies the
> result/information into the clipboard and finally saves
> them into a file.
> My problem is that this approach works only if I'm
> connected via RDP to my server where this GUI based
> application is running. If the RDP session is disconnected
> my approach doesn't work. 
> 
> Does someone know a way how to control a GUI based
> application even though the RDP session is disconnected?

The RDP session is disconneted because ?????

If there is still a network connection, you could modify your 
existing VB program to be a 'server' and write a client for it 
that simply sends a few simple commands to it.

For instance, it could open a UDP socket listening on a 
certain port for your commands. Your client (at whatever 
location you are at) would then send some simple command to 
the 'server' that tells it what to fill in in the text box, 
and it pushes the button, etc. When the function is complete, 
the 'server' sends back some type of msg over UDP saying it's 
done.

The problem is, since you can't see what's going on, you've 
got to code for the multitude of errors that can happen.

Back to comp.lang.basic.visual.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Script or software to run a GUI based application Stefan Mueller <seekware@yahoo.com> - 2011-05-11 16:13 -0700
  Re: Script or software to run a GUI based application "Nobody" <nobody@nobody.com> - 2011-05-11 21:22 -0400
    Re: Script or software to run a GUI based application Stefan Mueller <seekware@yahoo.com> - 2011-05-14 12:41 -0700
      Re: Script or software to run a GUI based application Dee Earley <dee.earley@icode.co.uk> - 2011-05-17 08:39 +0100
  Re: Script or software to run a GUI based application DanS <t.h.i.s.n.t.h.a.t@r.o.a.d.r.u.n.n.e.r.c.o.m> - 2011-05-17 06:14 -0500
    Re: Script or software to run a GUI based application Stefan Mueller <seekware@yahoo.com> - 2011-05-28 05:31 -0700
      Re: Script or software to run a GUI based application ralph <nt_consulting64@yahoo.net> - 2011-05-28 15:00 -0500

csiph-web