01-18-2012, 10:51 PM
I use QM for work a lot, and i am using the following code to copy, modify, and paste some text out of a pdf into a web window, where i submit it to an online database. I need to manipulate the string, because in the PDF any word with an 'fi' or 'fl' gets split (ie. first becomes fi rst) and i need to remove the new lines and carriage returns.
Code:
(ps. i also have the code moving my mouse back to where it started so that it doesn't progressively move further and further away on my desk)
the code is simple, but i keep receiving the following error message (on multiple machines):
"Error (RT) in My First Macro: invalid argument value"
any help is greatly appreciated
Code:
int px(xm) py(ym)
str s
s.getsel
s.replacerx("fi " "fi")
s.replacerx("fl " "fl")
s.replacerx("\n" " ")
s.replacerx("\r" " ")
s.setclip
int w1=act(win("Minimalistic Design Template - Mozilla Firefox" "MozillaWindowClass"))
lef 490 710 w1
'Cv
mou px py
(ps. i also have the code moving my mouse back to where it started so that it doesn't progressively move further and further away on my desk)
the code is simple, but i keep receiving the following error message (on multiple machines):
"Error (RT) in My First Macro: invalid argument value"
any help is greatly appreciated