PDA

View Full Version : Need variable sent as keystrokes to third party applications


nhardel
05-28-2006, 01:08 PM
I am currently using Worm's keystrokes dll and have no problems when i need to send keystrokes that are predetermined. But I am currently working on a project that requires keystrokes to be sent to an active window. And the keystrokes that I need sent needs to be what is inside a variable. There are several things that I would like to get the keystrokes from. At times I can get the variable from the clipboard using a copy command on the source. Other times I would need to use a user input box from autoplay that would then send the keystrokes to a third party application running underneath. Basically, I need to get input from various sources. Store the input in some type of variable that then can be sent thru some type of sendkeys script. I am somewhat of a newbie to autoplay so my scripting knowledge is limited but learn very fast from examples. Again any help would be very appreciated.

Wonderboy
05-28-2006, 02:34 PM
have you looked at input.GetText("Name of the Input object");
stores it in the variable result as an example
result = Input.GetText("Input1");
Dialog.Message("Input result", ""..result, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
then you would use the same methode for the key to be sent, and use the resulting string variable as the key to be sent