Sign in to follow this  
Followers 0
WiSp

Insert a TAB into the Clipboard Text

3 posts in this topic

I did a search on this and didn't find anything helpful, maybe I just do know how to word it to get results...anywho...

I'm trying to get AutoIT to take some input that I feed it and put it in a form that can pasted easily into Excel. In order to get paste to span cells, I need to give it the "TAB" command. I have no idea how to embed a tab marker inside of a text string.

I tried:

CODE

$var = "First Element" & Send("{TAB}") & "Second Element" & Send("{TAB}") & "Third Element"

ClipPut($var)

But the output I get when hitting "CTRL+V" is "First Element1Second Element1Third Element". Do I need to embed hex/ascii codes? How do I go about doing that?

Any ideas? This seems so simple yet I have no idea where to go from here.

Share this post


Link to post
Share on other sites



$string = "Value1" & @TAB & "Value2" & @TAB & "Value3"

Share this post


Link to post
Share on other sites

$string = "Value1" & @TAB & "Value2" & @TAB & "Value3"

Thank you, that worked.

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