WebSentinel Posted October 12, 2005 Report Share Posted October 12, 2005 ok heres my problem. I used the VARIABLE SET STRING to prompt the user for a value. But I need to save this value and then place it in a TEXT BOX FIELD in another program. How do I do this??? Quote Link to comment Share on other sites More sharing options...
joe Posted October 12, 2005 Report Share Posted October 12, 2005 Welcome to the group! One option is to use the text Type command. Let's say you saved the user's input to string T1 using the command Variable Set String %T1% from Prompt. Now you just need to activate the other program, move to the text box and then enter the text into it using the Text Type: %T1% command. Quote Link to comment Share on other sites More sharing options...
WebSentinel Posted October 12, 2005 Author Report Share Posted October 12, 2005 Thanks for the welcome and for the help. That should help out a fair bit. So the text type: %T1% enters the data stored in the variable T1. Is there anyway I could set a limit on it, for example: the prompt appears; user types in value; prompt doesnt appear the next time I use the macro; after the macro is used ten times it asks for a new value; Is that possible to do with a macro? or does that go beyond its capabilities? Quote Link to comment Share on other sites More sharing options...
kevin Posted October 12, 2005 Report Share Posted October 12, 2005 I have a macro that does the first half of that. It attempts to read a value from the registry. If it is not found, then the macro asks the user for it. After the user has entered it once, they do not have to enter it again. You could take this one step farther by saving the an integer in the registry. Each time the macro runs it could read the value, increment it, and save it back into the registry. Then you could ask for the first value again when this integer reaches 10. Quote Link to comment Share on other sites More sharing options...
WebSentinel Posted October 12, 2005 Author Report Share Posted October 12, 2005 I think that would work for me. I will give it a go kevin and then if it doesnt work out right I will post another message. Thanks for your help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.