468,249 Members | 1,470 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,249 developers. It's quick & easy.

Sending a String from php script to separate app

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?

May 30 '06 #1
1 1047
drec wrote:
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?


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.
js*******@attglobal.net
==================
May 30 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Roberto Becerril | last post: by
6 posts views Thread by Eduardo Rosa | last post: by
13 posts views Thread by yawnmoth | last post: by
4 posts views Thread by David Hirschfield | last post: by
2 posts views Thread by lstanikmas | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.