In Chrome, when I copy the information from 3 columns (for example First Name, Last Name, Age) there is only 1 return between the information when I paste it
For example, when I copy:
In Chrome, it's shown as Bob | Smith | 56
When I copy and paste this, it is shown as:
Code: Select all
Bob
Smith
56
First Name: Bob
Last Name: Smith
Age: 56
Code: Select all
::#css::
StringReplace, clipboard, clipboard, `r`n, /, All
StringSplit, data, clipboard, /,
Send, First Name: %data1%`nLast Name: %data2%`nAge: %data3%
Return
When I copy and paste the values, it outputs as:
Code: Select all
Bob
Smith
56
First Name: Bob
Last Name:
Age: Smith
The reason why this is happening is because when I copy the values from Firefox:
data1 is "Bob"
data2 is
data3 is "Smith"
How would I get this one command to work from both Chrome and Firefox?
Would it be best to have it detect which is the active browser or
To detect if a data is empty, skip?
Thank you!