lawonama Posted November 20, 2017 Share Posted November 20, 2017 Right now I have the following code: Func message() ClipPut("0 1 1 0 2 0 2 1") Sleep(250) StringStripWS(ClipGet(), 8) Sleep(250) Send("^v") EndFunc The spaces between 0 and 1 are extra whitespace that the button "tab" does in notepad. How do I remove these from clipboard? Link to comment Share on other sites More sharing options...
mikell Posted November 20, 2017 Share Posted November 20, 2017 ? Func message() ClipPut("0 1 1 0 2 0 2 1") Sleep(250) $s = StringStripWS(ClipGet(), 8) ClipPut($s) Sleep(250) Send("^v") EndFunc Link to comment Share on other sites More sharing options...
mexykanu Posted November 21, 2017 Share Posted November 21, 2017 On 11/20/2017 at 7:45 PM, mikell said: ? Func message() ClipPut("0 1 1 0 2 0 2 1") Sleep(250) $s = StringStripWS(ClipGet(), 8) ClipPut($s) Sleep(250) Send("^v") EndFunc Or, with one less variable: Func message() ClipPut("0 1 1 0 2 0 2 1") Sleep(250) ClipPut(StringStripWS(ClipGet(), 8)) Sleep(250) Send("^v") EndFunc 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