Sign in to follow this  
Followers 0
Doug Porter

Send funtion sending unwanted ENTER

6 posts in this topic

#1 ·  Posted (edited)

I have a script that is reading my clipboard and setting to a variable:

$var=clipget()

And then later on, I am using send to key that variable.

send($var)

Now this is being sent into a prompt box with other "TABable" entry boxes, each of which will be sent a different variable throught the same method. However, before my Send("{TAB}") is sent, the prompt box closes as if an ENTER was sent to the OK box.

Any ideas, could a captured string from the clipboard contain the ENTER command?

Thanks for looking.

Edited by Doug Porter

Share this post


Link to post
Share on other sites



... could a captured string from the clipboard contain the ENTER command? ...

Yep.

It can have a carriage return or a line feed or both.


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

I should be able to strip that part off, shouldn't I?

Share this post


Link to post
Share on other sites

I should be able to strip that part off, shouldn't I?

yep.

StringStripWS or StringStripCR or StringReplace

depending on the data that is to remain and what is really there to be removed


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

Thank you very much for your quick help.

Share this post


Link to post
Share on other sites

Thank you very much for your quick help.

You are welcome.

I'm sure that there are smarter ways to "see" what is in the data that you have in the clipboard - but pasting it into SciTE and then selecting View > End of Line might be all you need to know.


[size="1"][font="Arial"].[u].[/u][/font][/size]

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  
Followers 0