I have never used sendkeys, but if you can use it to pass control keys,
try sending a ctrl-J. I've tried that sequence manually and it works, so
if sendkeys can send control keys it should work.
ctrl anything produces the windows default sound.
It's not working the way the other windows do because it's not a WindowsĂ’,
window. The interface is (I guess:) either a Java program, or a highly
modified ASP web page (modified not to look at all like a normal browser
window). When the program is first activated, if the mouse pointer is never
moved over it's window, tab does move the focus. However, if it ever sees
the pointer, focus follows the pointer, and tab no longer functions to move
the focus.
I suppose the modules that have been suggested could work if I could
determine the X,Y position of the click point. I assume that must be
relative to the window that has focus. Is that correct? If it isn't, things
could get crazy real fast if the window were ever dragged.
Enter BTW at any point makes the window totally invisible, from the
taskbar as well, Yet Ctrl -- Alt -- Delete shows the program still running,
and a second enter will bring it back. It seems to be a side effect with
this program but that's a trick I would really like to know how to do.
I'm trying to use Perl to start a program, and that program's only reason
for existence is to start a program. In this case, determine from a among a
number of servers, if any is active, and connect to it. A reaction of a
business about a mile from the WTC to 9/11. They now have servers in NY and
in Jersey. Woopie, The entire northeast power grid once went down because a
car ran into a substation. I recommended at least California, possibly even
Australia or England but does anybody listen to me:)
Probably what I need to do is cut through all the muck, determine in my
script which, if any of the servers are active, perhaps even which has the
lowest latency if all are functioning (a little fluff of my own:), and make
the connection in my script. It doesn't sound that difficult, and it would
certainly eliminate about 95% of fluff stuff that I'm just plain not using
anyway. Not that speed is an issue but elegance in a program is something
that anyone who's ever written a line of code they're proud of has a soft
spot in their heart for.
That would be all of us. Right? :)
ms
At 05:49 PM 8/1/02, you wrote:
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Michael D. Smith
Sent: Thursday, August 01, 2002 12:38 PM
To: [EMAIL PROTECTED]
Subject: Sendkeys and strange program behavior
I've been using sendkeys to start some username/password programs. A \n
works the same as pressing the enter key. But, I've ran into a program on
which the enter key, and a mouse click do not produce the same results.
Which is totally weird and unexplainable in itself. I thought all Windows
programs would work without a mouse, if you just knew the keyboard trick.
Most of which of course most of us (especially me:), never bother with, but
still, there must be something, and if it's not enter, what could it be?
Does anyone know how to sendkeys a mouse click?
ms
Randy
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs