RE: Sendkeys and strange program behavior

2002-08-01 Thread Fernando Madruga


 Does anyone know how to sendkeys a mouse click?

Nope. And you'll have to use something different.

You may, however, be able to TAB into the button control, maybe it's
just not focused...

HTH,
  Fernando Madruga

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



RE: Sendkeys and strange program behavior

2002-08-01 Thread Jamie . Echlin

AutoIt might be more what you're looking for, or you could certainly control it from 
perl. Search on google for it.
hth, jamie

-Original Message-
From: Fernando Madruga [mailto:[EMAIL PROTECTED]]
Sent: 01 August 2002 18:36
To: [EMAIL PROTECTED]
Subject: RE: Sendkeys and strange program behavior



 Does anyone know how to sendkeys a mouse click?

Nope. And you'll have to use something different.

You may, however, be able to TAB into the button control, maybe it's
just not focused...

HTH,
  Fernando Madruga

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



RE: Sendkeys and strange program behavior

2002-08-01 Thread Randy W. Sims

 -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


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.

HTH,

Randy


___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



RE: Sendkeys and strange program behavior

2002-08-01 Thread Michael D. Smith


 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