Jump to content
Sign in to follow this  
mickisup

Can Send be used with a declared variable?

Recommended Posts

mickisup

I would like to declare a variable(s) and then later in the same script use the Send function to control screen input for performance test purposes.

e.g.

user a variable rather than search_term as below?

Send("!sd{DOWN}{ENTER}{BACKSPACE}{TAB}{TAB}!,search_term,!s!ha")

Is this possible?

Thanks

Share this post


Link to post
Share on other sites
LurchMan

yes, this can be done, I've done it in a few of my scripts. Make sure you use the format of:

Send ("a{Enter}" & $var & "h{Enter}")

Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You'll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.