Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Macro reading from file/clipboard
#1
I am writing a macro that will copy and paste information from an online database to a Notepad file, such that it would look like

Page 1
...
several lines of data
...

and then the macro goes back into the online DB and goes to page 2 and pastes it to Notepad

Page 2
...
several lines of data
...

and so on until the last page has a file to indicate End Of File, it looks something like

Page x
...
...
...
End of File

is there a way for a macro to analyze the text it is cutting / pasting to detect that the data it just pasted has the String "End of File" in it?

Or, if this makes the question clearer, is there a way for QM to read and analyze text from a file? The only way I saw for a user to send information to QM for QM to analyze was using the inp statement, but you cannot execute command key Cv while the inp is active as far as I can see
#2
Code:
Copy      Help
[color=blue]str [/color]s
[color=green];...[/color]
s.getsel [color=green];;copy selected text to variable s[/color]
[color=blue]if[/color]([color=blue]find[/color](s "End of File" 0 1)>=0) [color=blue]ret [/color][color=green];;if string is found (case insensitive), exit
;...[/color]
s.setsel [color=green];;paste s. Or key (s)
;...
[/color]


Forum Jump:


Users browsing this thread: 1 Guest(s)