How do i send it to clipboard
Spoiler
I tried this.Spoiler
Code: Select all
table := [1, 2, 56, 32, 54]
meow := ""
Loop % table.count() {
meow := table[A_Index] "`n"
}
Clipboard := meow
Code: Select all
table := [1, 2, 56, 32, " ", 54]
clipboard := ""
Loop % table.MaxIndex() {
meow := table[A_Index]
Clipboard .= meow "`r"
}
https://www.autohotkey.com/docs/Variables.htm#AssignOp wrote:Var .= "abc" is a shorthand way of writing Var := Var . "abc".
Its work!gregster wrote: ↑20 Jul 2019, 15:57Something like this (concatenation)?Code: Select all
table := [1, 2, 56, 32, " ", 54] clipboard := "" Loop % table.MaxIndex() { meow := table[A_Index] Clipboard .= meow "`r" }
https://www.autohotkey.com/docs/Variables.htm#AssignOp wrote:Var .= "abc" is a shorthand way of writing Var := Var . "abc".
And this code"• $121.71
• $125.05
• $125.05
• $125.05"
Code: Select all
^+v:: ; открытие продаж
table := Array()
ClipboardArray := StrSplit(clipboard, "`r")
Loop % ClipboardArray.MaxIndex()
{
this_price := ClipboardArray[A_Index]
quote = `"
FoundPos := RegExMatch(this_price, quote)
; MsgBox, Color number %A_Index% is %this_price%
if (FoundPos = 2 or FoundPos = 1) {
table.Push(SubStr(this_price, 5))
} else if (RegExMatch(this_price, " ") = 0) {
this_price := " "
table.Push(this_price)
}
}
Clipboard := ""
Loop % table.MaxIndex() {
meow := table[A_Index]
Clipboard .= meow "`r"
}
Return
Code: Select all
this_price[A_index +1]
Users browsing this forum: Bing [Bot], Felix Siano and 66 guests