Doug Porter Posted November 16, 2008 Share Posted November 16, 2008 (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 November 16, 2008 by Doug Porter Link to comment Share on other sites More sharing options...
herewasplato Posted November 16, 2008 Share Posted November 16, 2008 ... 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] Link to comment Share on other sites More sharing options...
Doug Porter Posted November 16, 2008 Author Share Posted November 16, 2008 I should be able to strip that part off, shouldn't I? Link to comment Share on other sites More sharing options...
herewasplato Posted November 16, 2008 Share Posted November 16, 2008 I should be able to strip that part off, shouldn't I?yep.StringStripWS or StringStripCR or StringReplacedepending on the data that is to remain and what is really there to be removed [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Doug Porter Posted November 16, 2008 Author Share Posted November 16, 2008 Thank you very much for your quick help. Link to comment Share on other sites More sharing options...
herewasplato Posted November 16, 2008 Share Posted November 16, 2008 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] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now