I'm probably getting the quotation marks wrong, but I can't figure out how to get it right.
I'm trying to prevent "clipboard" from being understood as A_Clipboard and also have quotations around the 4 numbers stored in variables. Which is proving to be quite a headache
This is what I have so far.
Code: Select all
x1 := 0, x2 :=100, y1 := 0, y2 := 100
cmd := """D:\Program Files 2\Capture2Text (OCR)\Capture2Text_CLI.exe""" "--clipboard -s """%x1% %y1% %x2% %y2% ""
RunWait, %cmd%
MsgBox % Clipboard "`n\\\\\\\\\\\\\\\`n" cmd
"D:\Program Files 2\Capture2Text (OCR)\Capture2Text_CLI.exe" --clipboard -s "0 0 100 100"
"D:\Program Files 2\Capture2Text (OCR)\Capture2Text_CLI.exe" "--clipboard" -s "0 0 100 100"