Sending a String from php script to separate app

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have a very simple mysql/php script that is being used to store
program keys in a db for multiple users.  I would like to add the
ability to send these string values to another application.  In doing
some research it looks like the VB function SendKeys is what I would
like to be able to do using PHP.  Simply copy and pasting these values
will not work, because the string is 20 + characters long, and the
applications where these strings are being pasted into break these
strings into 4 or more separate entry blanks.  Therefore, only pasting
the first 5-6 characters.

In order for this to work correctly, I need to somehow make the
application think the string to be copied is being typed in, or if
there is some way to emulate tab spacing in the copied string.

Any ideas?

Re: Sending a String from php script to separate app

drec wrote:
Quoted text here. Click to load it

Sorry, you can't emulate keyboard input in PHP.  And if the copied string had  
tabs, they would be handled as tab characters within the window, not as commands  
to switch to another window.

If this is on Windows, you may be able to do it with an ActiveX control.  But  
there's no way to do it natively in PHP.

Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

Site Timeline